diff options
Diffstat (limited to 'buildSrc')
-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" |