From 318e42c7f3c8e4bff605f1bdc8352b81eec1d812 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 8 Jun 2019 02:05:30 -0400 Subject: Update fastadapter dependencies --- buildSrc/src/main/kotlin/kau/Dependencies.kt | 8 +++++++- buildSrc/src/main/kotlin/kau/Versions.kt | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'buildSrc') 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" -- cgit v1.2.3