Disable LeakCanary by default and add option to gradle properties to enable

This commit is contained in:
Niels van Velzen committed 2021-01-29 19:30:01 +01:00
1 parent f75f35d421
commit a32fee80c4
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -127,7 +127,8 @@ dependencies {
implementation("com.jakewharton.timber:timber:4.7.1")
// Debugging
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.6")
if (getProperty("leakcanary.enable")?.toBoolean() == true)
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.6")
// Testing
testImplementation("junit:junit:4.12")
+3
View File
@@ -10,3 +10,6 @@ kotlin.incremental=true
# Android
android.enableJetifier=true
android.useAndroidX=true
# Enable LeakCanary
leakcanary.enable=false