aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android-lib.gradle1
-rw-r--r--buildSrc/src/main/kotlin/kau/Versions.kt3
-rw-r--r--fastadapter-viewbinding/build.gradle4
-rw-r--r--sample/build.gradle5
4 files changed, 4 insertions, 9 deletions
diff --git a/android-lib.gradle b/android-lib.gradle
index aa8aad7..bc97f11 100644
--- a/android-lib.gradle
+++ b/android-lib.gradle
@@ -10,7 +10,6 @@ group = "ca.allanwang"
android {
compileSdkVersion Versions.targetSdk
- buildToolsVersion Versions.buildTools
androidGitVersion {
codeFormat = 'MMNNPPXX'
diff --git a/buildSrc/src/main/kotlin/kau/Versions.kt b/buildSrc/src/main/kotlin/kau/Versions.kt
index a90d80e..8a94a83 100644
--- a/buildSrc/src/main/kotlin/kau/Versions.kt
+++ b/buildSrc/src/main/kotlin/kau/Versions.kt
@@ -5,9 +5,6 @@ object Versions {
const val minSdk = 21
const val targetSdk = 29
- // https://developer.android.com/studio/releases/build-tools
- const val buildTools = "29.0.0"
-
// https://mvnrepository.com/artifact/androidx.appcompat/appcompat?repo=google
const val appcompat = "1.1.0"
diff --git a/fastadapter-viewbinding/build.gradle b/fastadapter-viewbinding/build.gradle
index a786edb..ad1a0a2 100644
--- a/fastadapter-viewbinding/build.gradle
+++ b/fastadapter-viewbinding/build.gradle
@@ -6,8 +6,8 @@ ext.kauSubModuleMinSdk = Versions.coreMinSdk
apply from: '../android-lib.gradle'
android {
- viewBinding {
- enabled = true
+ buildFeatures {
+ viewBinding = true
}
}
diff --git a/sample/build.gradle b/sample/build.gradle
index 77165e8..96ed78f 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -12,7 +12,6 @@ play {
android {
compileSdkVersion kau.Versions.targetSdk
- buildToolsVersion kau.Versions.buildTools
androidGitVersion {
codeFormat = 'MMNNPPXX'
@@ -28,8 +27,8 @@ android {
multiDexEnabled true
testInstrumentationRunner "ca.allanwang.kau.sample.SampleTestRunner"
}
- viewBinding {
- enabled = true
+ buildFeatures {
+ viewBinding = true
}
def releaseSigning = file("../files/kau.properties")