diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a6326ad233..b8eda7304c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -269,6 +269,11 @@ dependencies { testRuntimeOnly(libs.bundles.test.runtime) androidTestImplementation(libs.bundles.test.android) testImplementation(kotlinx.coroutines.test) + + // For detecting memory leaks + // REF: https://square.github.io/leakcanary/ + // debugImplementation(libs.leakcanary.android) + implementation(libs.leakcanary.plumber) } tasks { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 78bee4df5f..cc94fa7fb5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,6 +13,7 @@ sqldelight = "2.0.2" junit = "5.11.3" kermit = "2.0.5" koin = "4.0.0" +leakcanary = "2.14" voyager = "1.1.0-beta02" [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" } +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" } material = { module = "com.google.android.material:material", version = "1.12.0" }