From a5fc8231a45e3f1ef3d4851d28e71c909a9df539 Mon Sep 17 00:00:00 2001 From: reocat Date: Thu, 6 Feb 2025 07:17:45 +0300 Subject: [PATCH] feat: Enable LeakCanary --- app/build.gradle.kts | 2 ++ gradle/libs.versions.toml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bd648e135..45c16ec2d 100755 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -184,4 +184,6 @@ dependencies { implementation(libs.ktor.client.encoding) implementation(libs.taglib) + + debugImplementation(libs.leakcanary) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 83913f975..92ffab901 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -14,6 +14,7 @@ ksp = "2.1.20-Beta2-1.0.29" multidex = "2.0.1" newpipe = "dev-SNAPSHOT" taglib = "1.0.0-alpha25" +leakcanary = "2.14" [libraries] annotation = { module = "androidx.annotation:annotation", version.ref = "annotation" } @@ -83,6 +84,8 @@ multidex = { group = "androidx.multidex", name = "multidex", version.ref = "mult newpipe-extractor = { group = "com.github.TeamNewPipe", name = "NewPipeExtractor", version.ref = "newpipe" } +leakcanary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version.ref = "leakcanary" } + [plugins] kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }