From 4d99f62759fd499366db279c4274e03abf351a66 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Mon, 1 Nov 2021 09:35:30 +0100 Subject: [PATCH 1/2] Use LeakCanary in debug mode Signed-off-by: tobiasKaminsky --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index cf41a04e54..166a1d385b 100644 --- a/build.gradle +++ b/build.gradle @@ -338,6 +338,8 @@ dependencies { } } + debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' + // dependencies for local unit tests testImplementation 'junit:junit:4.13.2' testImplementation "org.mockito:mockito-core:$mockitoVersion" From aa417537dff65e0cc3e4aced7dbd3a64c3c58536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey=20Vilas?= Date: Thu, 4 Nov 2021 13:10:56 +0100 Subject: [PATCH 2/2] Disable leakCanary for CI builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Brey Vilas --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 166a1d385b..b247a00e97 100644 --- a/build.gradle +++ b/build.gradle @@ -338,7 +338,9 @@ dependencies { } } - debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' + if (!ciBuild) { + debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7' + } // dependencies for local unit tests testImplementation 'junit:junit:4.13.2'