chore(deps): Add leakcanary to debug memleaks

This commit is contained in:
Ahmad Ansori Palembani 2024-12-10 07:43:12 +07:00
parent e45baf6ab4
commit fe59d7f4ec
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 9 additions and 0 deletions

View file

@ -269,6 +269,11 @@ dependencies {
testRuntimeOnly(libs.bundles.test.runtime) testRuntimeOnly(libs.bundles.test.runtime)
androidTestImplementation(libs.bundles.test.android) androidTestImplementation(libs.bundles.test.android)
testImplementation(kotlinx.coroutines.test) testImplementation(kotlinx.coroutines.test)
// For detecting memory leaks
// REF: https://square.github.io/leakcanary/
// debugImplementation(libs.leakcanary.android)
implementation(libs.leakcanary.plumber)
} }
tasks { tasks {

View file

@ -13,6 +13,7 @@ sqldelight = "2.0.2"
junit = "5.11.3" junit = "5.11.3"
kermit = "2.0.5" kermit = "2.0.5"
koin = "4.0.0" koin = "4.0.0"
leakcanary = "2.14"
voyager = "1.1.0-beta02" voyager = "1.1.0-beta02"
[libraries] [libraries]
@ -50,6 +51,9 @@ koin-injekt = { module = "com.github.null2264:injekt-koin", version = "aad18b614
kotest-assertions = { module = "io.kotest:kotest-assertions-core", version = "5.9.1" } kotest-assertions = { module = "io.kotest:kotest-assertions-core", version = "5.9.1" }
leakcanary-android = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
leakcanary-plumber = { module = "com.squareup.leakcanary:plumber-android", version.ref = "leakcanary" }
libarchive = { module = "me.zhanghai.android.libarchive:library", version = "1.1.4" } libarchive = { module = "me.zhanghai.android.libarchive:library", version = "1.1.4" }
material = { module = "com.google.android.material:material", version = "1.12.0" } material = { module = "com.google.android.material:material", version = "1.12.0" }