From f1126c55ca1bb0ae4fac941656d893776dedb912 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 24 Apr 2022 16:28:09 -0400 Subject: [PATCH] Add Plumber to handle some system leaks automatically --- app/build.gradle.kts | 1 + gradle/libs.versions.toml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 075638913..d8ce6dab5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -265,6 +265,7 @@ dependencies { // For detecting memory leaks; see 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 27938a0a2..d89d3480e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,6 +7,7 @@ conductor_version = "3.1.2" flowbinding_version = "1.2.0" shizuku_version = "12.1.0" sqldelight = "1.5.3" +leakcanary = "2.9.1" [libraries] android-shortcut-gradle = "com.github.zellius:android-shortcut-gradle-plugin:0.1.2" @@ -88,7 +89,8 @@ aboutLibraries-compose = { module = "com.mikepenz:aboutlibraries-compose", versi shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizuku_version" } shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku_version" } -leakcanary-android = "com.squareup.leakcanary:leakcanary-android:2.7" +leakcanary-android = { module = "com.squareup.leakcanary:leakcanary-android", version.ref ="leakcanary" } +leakcanary-plumber = { module = "com.squareup.leakcanary:plumber-android", version.ref ="leakcanary" } sqldelight-android-driver = { module = "com.squareup.sqldelight:android-driver", version.ref ="sqldelight" } sqldelight-coroutines = { module = "com.squareup.sqldelight:coroutines-extensions-jvm", version.ref ="sqldelight" }