aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-29 18:19:47 -0800
committerAllan Wang <me@allanwang.ca>2020-02-29 18:19:47 -0800
commit4f34109fe93ba4654be19bbe37fcd30c76a0b9c7 (patch)
tree923244d33bbf3d5d294eb776cac4200707d4ef47
parenteb4c4ae2aa084179881dac92bb3469f326545e04 (diff)
downloadkau-4f34109fe93ba4654be19bbe37fcd30c76a0b9c7.tar.gz
kau-4f34109fe93ba4654be19bbe37fcd30c76a0b9c7.tar.bz2
kau-4f34109fe93ba4654be19bbe37fcd30c76a0b9c7.zip
Add leak canary
-rw-r--r--buildSrc/src/main/kotlin/kau/Dependencies.kt2
-rw-r--r--buildSrc/src/main/kotlin/kau/Versions.kt3
-rw-r--r--docs/Migration.md5
3 files changed, 10 insertions, 0 deletions
diff --git a/buildSrc/src/main/kotlin/kau/Dependencies.kt b/buildSrc/src/main/kotlin/kau/Dependencies.kt
index b543dc3..d7a3757 100644
--- a/buildSrc/src/main/kotlin/kau/Dependencies.kt
+++ b/buildSrc/src/main/kotlin/kau/Dependencies.kt
@@ -101,6 +101,8 @@ object Dependencies {
const val bugsnag = "com.bugsnag:bugsnag-android:${Versions.bugsnag}"
+ const val leakCanary = "com.squareup.leakcanary:leakcanary-android:${Versions.leakCanary}"
+
@JvmStatic
fun espresso(type: String) = "androidx.test.espresso:espresso-$type:${Versions.espresso}"
diff --git a/buildSrc/src/main/kotlin/kau/Versions.kt b/buildSrc/src/main/kotlin/kau/Versions.kt
index 8a94a83..3ff23cb 100644
--- a/buildSrc/src/main/kotlin/kau/Versions.kt
+++ b/buildSrc/src/main/kotlin/kau/Versions.kt
@@ -56,6 +56,9 @@ object Versions {
// https://github.com/InsertKoinIO/koin/blob/master/CHANGELOG.md
const val koin = "2.1.0"
+ // 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"
diff --git a/docs/Migration.md b/docs/Migration.md
index 0941667..7d50456 100644
--- a/docs/Migration.md
+++ b/docs/Migration.md
@@ -18,6 +18,11 @@ meaning that in memory preferences will reset to default. Previously, in memory
`configBuilder` was previously required in the constructor, but is now an open function so that activity fields can be used in the builder.
+## Gradle
+
+* Due to Spotless updates, gradle should not include the `clean` task ([#521](https://github.com/diffplug/spotless/issues/521)).
+* `buildToolsVersion` is already included in Android Studio, so you no longer need to specify the link with KAU.
+
# v5.1.0
## KPref