Update compileSdkVersion

This commit is contained in:
Jannis Mattheis
2018-06-23 10:30:05 +02:00
parent e88409ccba
commit 08a978b372
3 changed files with 21 additions and 10 deletions

View File

@@ -17,8 +17,8 @@ android:
components: components:
- tools - tools
- platform-tools - platform-tools
- build-tools-23.0.1 - build-tools-27.0.3
- android-23 - android-27
- extra-google-m2repository - extra-google-m2repository
- extra-android-m2repository - extra-android-m2repository
licenses: licenses:
@@ -27,7 +27,7 @@ android:
- google-gdk-license-.+ - google-gdk-license-.+
before_install: before_install:
- yes | sdkmanager "platforms;android-26" - yes | sdkmanager "platforms;android-27"
- nvm install 8 - nvm install 8
- node --version - node --version
- openssl aes-256-cbc -K $encrypted_f6e0f94759d3_key -iv $encrypted_f6e0f94759d3_iv - openssl aes-256-cbc -K $encrypted_f6e0f94759d3_key -iv $encrypted_f6e0f94759d3_iv
@@ -45,7 +45,7 @@ before_deploy:
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/gotify-release-key.jks - jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/gotify-release-key.jks
-storepass $STOREPASS -keypass $KEYPASS app-release-unsigned.apk gotify-release-key -storepass $STOREPASS -keypass $KEYPASS app-release-unsigned.apk gotify-release-key
- jarsigner -verify app-release-unsigned.apk - jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/23.0.1/zipalign -v 4 app-release-unsigned.apk Gotify.apk" - "${ANDROID_HOME}/build-tools/27.0.3/zipalign -v 4 app-release-unsigned.apk Gotify.apk"
deploy: deploy:
provider: releases provider: releases

View File

@@ -102,15 +102,15 @@ def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false def enableProguardInReleaseBuilds = false
android { android {
compileSdkVersion 23 compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion '23.0.1' buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig { defaultConfig {
applicationId "de.gotify" applicationId "de.gotify"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 27
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0.0"
ndk { ndk {
abiFilters "armeabi-v7a", "x86" abiFilters "armeabi-v7a", "x86"
} }
@@ -149,10 +149,10 @@ dependencies {
compile project(':react-native-device-info') compile project(':react-native-device-info')
compile project(':react-native-vector-icons') compile project(':react-native-vector-icons')
compile fileTree(include: ['*.jar'], dir: 'libs') compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:appcompat-v7:27.1.1'
compile 'com.squareup.okhttp3:okhttp:3.9.1' compile 'com.squareup.okhttp3:okhttp:3.9.1'
compile 'com.google.code.gson:gson:2.8.4' compile 'com.google.code.gson:gson:2.8.4'
compile 'com.facebook.react:react-native:+' compile 'com.facebook.react:react-native:0.55.3'
// From node_modules // From node_modules
} }

View File

@@ -27,6 +27,11 @@ allprojects {
} }
ext {
compileSdkVersion = 27
buildToolsVersion = '27.0.3'
}
subprojects { subprojects {
afterEvaluate { afterEvaluate {
android { android {
@@ -34,5 +39,11 @@ subprojects {
abortOnError false abortOnError false
} }
} }
if (project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library')) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
} }
} }