build: Install LeakCanary in debug builds (#308)

This commit is contained in:
Nik Clayton 2023-12-09 18:06:01 +01:00 committed by GitHub
parent 0251801d7e
commit 6ee41177cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,8 @@ dependencies {
implementation(libs.kotlin.result) implementation(libs.kotlin.result)
implementation(libs.semver) implementation(libs.semver)
debugImplementation(libs.leakcanary)
testImplementation(projects.core.testing) testImplementation(projects.core.testing)
testImplementation(libs.androidx.test.junit) testImplementation(libs.androidx.test.junit)
testImplementation(libs.robolectric) testImplementation(libs.robolectric)

View File

@ -42,6 +42,7 @@ kotlin = "1.9.20"
kotlin-result = "1.1.8" kotlin-result = "1.1.8"
ksp = "1.9.20-1.0.14" ksp = "1.9.20-1.0.14"
image-cropper = "4.3.2" image-cropper = "4.3.2"
leakcanary = "2.12"
lint = "31.2.0" # = agp + 23.0.0 (= 8.2.0), see https://github.com/googlesamples/android-custom-lint-rules#lint-version lint = "31.2.0" # = agp + 23.0.0 (= 8.2.0), see https://github.com/googlesamples/android-custom-lint-rules#lint-version
material = "1.10.0" material = "1.10.0"
material-drawer = "9.0.2" material-drawer = "9.0.2"
@ -153,6 +154,7 @@ kotlinx-coroutines-rx3 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-rx
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" } kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" } kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
image-cropper = { module = "com.github.CanHub:Android-Image-Cropper", version.ref = "image-cropper" } image-cropper = { module = "com.github.CanHub:Android-Image-Cropper", version.ref = "image-cropper" }
leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" } lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" }
lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "lint" } lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "lint" }
lint-cli = { module = "com.android.tools.lint:lint", version.ref = "lint" } lint-cli = { module = "com.android.tools.lint:lint", version.ref = "lint" }