Skip to content

Commit

Permalink
Add: LeakCanary to debug memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Jul 19, 2024
1 parent 73cb663 commit 1b26837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ dependencies {
implementation(libs.preference)
implementation(libs.activity.compose)
implementation(libs.collections.immutable)
debugImplementation(libs.leakcanary)

// use the new WorkInfo.stopReason (report stopReason), setNextScheduleTimeOverride (Precise scheduling), Configuration.Builder.setContentUriTriggerWorkersLimit (limit for content uri workers)
implementation(libs.work.runtime)
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ koin-ksp = "1.3.1"
kotlin = "2.0.0"
ksp = "2.0.0-1.0.23"
ktor = "2.3.12"
leakcanary = "2.14"
libsu = "5.2.2"
lifecycle = "2.8.3"
markdown = "0.7.3"
Expand All @@ -30,6 +31,7 @@ zxing = "3.5.3"
[libraries]
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }
leakcanary = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanary" }
preference = { module = "androidx.preference:preference-ktx", version.ref = "preference" }
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activity" }
collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "immutables" }
Expand Down

0 comments on commit 1b26837

Please sign in to comment.