aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-06-08 02:05:30 -0400
committerAllan Wang <me@allanwang.ca>2019-06-08 02:05:30 -0400
commit318e42c7f3c8e4bff605f1bdc8352b81eec1d812 (patch)
treef7d9594cc269f75d3fbbe38af7de3943cf2629af
parentce7a582285ac89c1a5a0b76315b28156b6355c94 (diff)
downloadkau-318e42c7f3c8e4bff605f1bdc8352b81eec1d812.tar.gz
kau-318e42c7f3c8e4bff605f1bdc8352b81eec1d812.tar.bz2
kau-318e42c7f3c8e4bff605f1bdc8352b81eec1d812.zip
Update fastadapter dependencies
-rw-r--r--buildSrc/src/main/kotlin/kau/Dependencies.kt8
-rw-r--r--buildSrc/src/main/kotlin/kau/Versions.kt1
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"