From 804b57ea7b61b207336bb90052ce98274aeb97cb Mon Sep 17 00:00:00 2001 From: tonihei Date: Thu, 4 May 2023 13:29:08 +0000 Subject: [PATCH] Add LeakCanary to session demo app debug builds This helps to detect accidental service/activity leaks. PiperOrigin-RevId: 529391523 --- demos/session/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/session/build.gradle b/demos/session/build.gradle index 376c69534d..fb5ff78288 100644 --- a/demos/session/build.gradle +++ b/demos/session/build.gradle @@ -57,6 +57,8 @@ android { } dependencies { + // For detecting and debugging leaks only. LeakCanary is not needed for demo app to work. + debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10' implementation 'androidx.core:core-ktx:' + androidxCoreVersion implementation 'androidx.appcompat:appcompat:' + androidxAppCompatVersion implementation 'androidx.multidex:multidex:' + androidxMultidexVersion