From 421b1f889bc0901ddeeba6ab915e4a1fd6201ad5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 27 Sep 2019 13:09:23 +0530 Subject: Add LeakCanary to debug builds LeakCanary is an advanced memory leak detection library for Android designed by the fine folks at Square. Signed-off-by: Harsh Shandilya --- app/build.gradle | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 71ba01c9..34a471cf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -71,6 +71,7 @@ ext { appcompatVersion = '1.0.2' cardviewVersion = '1.0.0' databindingVersion = '3.3.1' + leakCanaryVersion = "2.0-beta-3" materialComponentsVersion = '1.0.0' jsr305Version = '3.0.2' preferenceVersion = '1.0.0' @@ -91,6 +92,7 @@ dependencies { implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion" implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion" implementation "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion" + debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" } tasks.withType(JavaCompile) { -- cgit v1.2.3