aboutsummaryrefslogtreecommitdiff
path: root/buildSrc
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-06-27 23:10:57 -0700
committerGitHub <noreply@github.com>2020-06-27 23:10:57 -0700
commit813f3867839d015c123625eb0a4586e79e210200 (patch)
tree322e6852a59ef773577a19ee5dc01f2cd8f1ac23 /buildSrc
parent9aff74e3f14cc257e53dc2b8a18658b91e0a2802 (diff)
parent2368c3fe526b99427560332e2ec3ecec57870294 (diff)
downloadkau-813f3867839d015c123625eb0a4586e79e210200.tar.gz
kau-813f3867839d015c123625eb0a4586e79e210200.tar.bz2
kau-813f3867839d015c123625eb0a4586e79e210200.zip
Merge pull request #254 from AllanWang/hilt
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/src/main/kotlin/kau/Dependencies.kt12
-rw-r--r--buildSrc/src/main/kotlin/kau/Versions.kt16
2 files changed, 22 insertions, 6 deletions
diff --git a/buildSrc/src/main/kotlin/kau/Dependencies.kt b/buildSrc/src/main/kotlin/kau/Dependencies.kt
index d7a3757..b59ba91 100644
--- a/buildSrc/src/main/kotlin/kau/Dependencies.kt
+++ b/buildSrc/src/main/kotlin/kau/Dependencies.kt
@@ -59,6 +59,18 @@ object Dependencies {
@JvmStatic
fun koin(type: String) = "org.koin:koin-$type:${Versions.koin}"
+ @JvmField
+ val hilt = "com.google.dagger:hilt-android:${Versions.hilt}"
+
+ @JvmField
+ val hiltCompiler = hilt("compiler")
+
+ @JvmField
+ val hiltTest = hilt("testing")
+
+ @JvmStatic
+ fun hilt(type: String) = "com.google.dagger:hilt-android-$type:${Versions.hilt}"
+
const val junit = "junit:junit:${Versions.junit}"
const val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.coroutines}"
diff --git a/buildSrc/src/main/kotlin/kau/Versions.kt b/buildSrc/src/main/kotlin/kau/Versions.kt
index 40f8b70..f0ed129 100644
--- a/buildSrc/src/main/kotlin/kau/Versions.kt
+++ b/buildSrc/src/main/kotlin/kau/Versions.kt
@@ -54,21 +54,25 @@ object Versions {
const val materialDialog = "3.3.0"
// https://github.com/InsertKoinIO/koin/blob/master/CHANGELOG.md
- const val koin = "2.1.5"
+ const val koin = "2.1.6"
+
+ // https://mvnrepository.com/artifact/com.google.dagger/hilt-android
+ const val hilt = "2.28.1-alpha"
// https://square.github.io/leakcanary/changelog/
const val leakCanary = "2.2"
// https://mvnrepository.com/artifact/androidx.test.espresso/espresso-core?repo=google
- const val espresso = "3.2.0"
+ const val espresso = "3.3.0-rc01"
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
- const val junit = "4.12"
+ const val junit = "4.13"
- const val testRunner = "1.1.0"
+ // https://mvnrepository.com/artifact/androidx.test.ext/junit
+ const val testRunner = "1.1.2-rc01"
// https://mvnrepository.com/artifact/androidx.test/rules?repo=google
- const val testRules = "1.2.0"
+ const val testRules = "1.3.0-rc01"
// Keep version for now, see https://github.com/diffplug/spotless/issues/521
// https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md
@@ -81,7 +85,7 @@ object Versions {
const val bugsnagPlugin="4.7.4"
// https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google
- const val gradlePlugin = "4.0.0-rc01"
+ const val gradlePlugin = "4.1.0-beta02"
// https://github.com/dcendents/android-maven-gradle-plugin/releases
const val mavenPlugin = "2.1"
// https://github.com/Triple-T/gradle-play-publisher/releases