Define SDK/build tool versions in buildSrc

This commit is contained in:
arkon 2020-07-01 11:53:30 -04:00
parent c2114bbd4f
commit ed1123feb0
2 changed files with 12 additions and 6 deletions

View File

@ -32,13 +32,13 @@ ext {
} }
android { android {
compileSdkVersion 29 compileSdkVersion AndroidConfig.compileSdk
buildToolsVersion '29.0.3' buildToolsVersion AndroidConfig.buildTools
defaultConfig { defaultConfig {
applicationId "eu.kanade.tachiyomi" applicationId "eu.kanade.tachiyomi"
minSdkVersion 21 minSdkVersion AndroidConfig.minSdk
targetSdkVersion 29 targetSdkVersion AndroidConfig.targetSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 45 versionCode 45
versionName "0.9.2" versionName "0.9.2"
@ -108,8 +108,8 @@ android {
} }
compileOptions { compileOptions {
sourceCompatibility = 1.8 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = 1.8 targetCompatibility = JavaVersion.VERSION_1_8
} }
kotlinOptions { kotlinOptions {

View File

@ -0,0 +1,6 @@
object AndroidConfig {
const val compileSdk = 29
const val minSdk = 21
const val targetSdk = 29
const val buildTools = "29.0.3"
}