diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-29 18:10:34 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-29 18:10:34 -0800 |
commit | eb4c4ae2aa084179881dac92bb3469f326545e04 (patch) | |
tree | 5ed45a783f5cda57c67c271fb39cecfa1d91a432 | |
parent | 25bd1b90509fe2b979e3461e0015f71085cb5dc9 (diff) | |
download | kau-eb4c4ae2aa084179881dac92bb3469f326545e04.tar.gz kau-eb4c4ae2aa084179881dac92bb3469f326545e04.tar.bz2 kau-eb4c4ae2aa084179881dac92bb3469f326545e04.zip |
Remove explicit build tools and update viewbinding api usage
-rw-r--r-- | android-lib.gradle | 1 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/kau/Versions.kt | 3 | ||||
-rw-r--r-- | fastadapter-viewbinding/build.gradle | 4 | ||||
-rw-r--r-- | sample/build.gradle | 5 |
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") |