diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2e4a817cc..e266f7f00 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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") diff --git a/gradle.properties b/gradle.properties index 17dc6934f..e65dc46c6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,3 +10,6 @@ kotlin.incremental=true # Android android.enableJetifier=true android.useAndroidX=true + +# Enable LeakCanary +leakcanary.enable=false