diff options
author | Allan Wang <me@allanwang.ca> | 2019-06-08 02:05:30 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-06-08 02:05:30 -0400 |
commit | 318e42c7f3c8e4bff605f1bdc8352b81eec1d812 (patch) | |
tree | f7d9594cc269f75d3fbbe38af7de3943cf2629af | |
parent | ce7a582285ac89c1a5a0b76315b28156b6355c94 (diff) | |
download | kau-318e42c7f3c8e4bff605f1bdc8352b81eec1d812.tar.gz kau-318e42c7f3c8e4bff605f1bdc8352b81eec1d812.tar.bz2 kau-318e42c7f3c8e4bff605f1bdc8352b81eec1d812.zip |
Update fastadapter dependencies
-rw-r--r-- | buildSrc/src/main/kotlin/kau/Dependencies.kt | 8 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/kau/Versions.kt | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/buildSrc/src/main/kotlin/kau/Dependencies.kt b/buildSrc/src/main/kotlin/kau/Dependencies.kt index df0f1fa..c704500 100644 --- a/buildSrc/src/main/kotlin/kau/Dependencies.kt +++ b/buildSrc/src/main/kotlin/kau/Dependencies.kt @@ -6,6 +6,7 @@ package kau object Dependencies { @JvmStatic fun kotlin(type: String) = "org.jetbrains.kotlin:kotlin-$type:${Versions.kotlin}" + @JvmField val kotlin = kotlin("stdlib") @JvmField @@ -36,16 +37,21 @@ object Dependencies { @JvmStatic fun materialDialog(type: String) = "com.afollestad.material-dialogs:$type:${Versions.materialDialog}" + @JvmField val materialDialog = materialDialog("core") const val fastAdapter = "com.mikepenz:fastadapter:${Versions.fastAdapter}" - const val fastAdapterCommons = "com.mikepenz:fastadapter-commons:${Versions.fastAdapterCommons}" + @JvmStatic + fun fastAdapter(type: String) = "com.mikepenz:fastadapter-$type:${Versions.fastAdapter}" + @JvmField + val fastAdapterCommons = fastAdapter("commons") const val bugsnag = "com.bugsnag:bugsnag-android:${Versions.bugsnag}" @JvmStatic fun espresso(type: String) = "androidx.test.espresso:espresso-$type:${Versions.espresso}" + @JvmField val espresso = espresso("core") diff --git a/buildSrc/src/main/kotlin/kau/Versions.kt b/buildSrc/src/main/kotlin/kau/Versions.kt index 2405638..e953929 100644 --- a/buildSrc/src/main/kotlin/kau/Versions.kt +++ b/buildSrc/src/main/kotlin/kau/Versions.kt @@ -37,7 +37,6 @@ object Versions { // https://github.com/mikepenz/FastAdapter#using-maven const val fastAdapter = "3.3.1" - const val fastAdapterCommons = fastAdapter // https://github.com/bumptech/glide/releases const val glide = "4.9.0" |