From 2bd3792b8ff2357ad9e693bc7155f2c6779f4f8d Mon Sep 17 00:00:00 2001 From: Terry Schmidt Date: Mon, 20 Feb 2023 01:34:01 -0500 Subject: [PATCH] add leak canary to detect memory leaks in debug builds --- app/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 3f9d62c3e..e75a3c3ee 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -136,6 +136,9 @@ dependencies { implementation 'com.google.mlkit:language-id:17.0.4' implementation 'com.google.android.gms:play-services-mlkit-language-id:17.0.0' + // Automatic memory leak detection + debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10' + testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'