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

@@ -102,15 +102,15 @@ def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "de.gotify"
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 27
versionCode 1
versionName "1.0"
versionName "1.0.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
@@ -149,10 +149,10 @@ dependencies {
compile project(':react-native-device-info')
compile project(':react-native-vector-icons')
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.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
}

View File

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