[Android] Add leak canary dependency if property is set

Nicolas Pomepuy git at videolan.org
Thu Sep 7 08:21:03 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jul 26 10:00:59 2023 +0200| [7851481364e4bdf75e4c4a5218a9cd0b71df645a] | committer: Nicolas Pomepuy

Add leak canary dependency if property is set

> https://code.videolan.org/videolan/vlc-android/commit/7851481364e4bdf75e4c4a5218a9cd0b71df645a
---

 application/vlc-android/build.gradle | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/application/vlc-android/build.gradle b/application/vlc-android/build.gradle
index 40b504601d..ea878db606 100644
--- a/application/vlc-android/build.gradle
+++ b/application/vlc-android/build.gradle
@@ -217,6 +217,11 @@ dependencies {
     androidTestImplementation 'com.jraska:falcon:2.2.0'
     androidTestImplementation 'tools.fastlane:screengrab:2.1.0'
 
+    if (project.hasProperty('leakCanaryEnabled') && project.getProperty('leakCanaryEnabled')) {
+        debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
+        devImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
+    }
+
 }
 
 



More information about the Android mailing list