Make using LeakCanary in debug builds optional
@@ -26,7 +26,9 @@ dependencies {
implementation "com.github.bumptech.glide:glide:${versions.glide}"
annotationProcessor "com.github.bumptech.glide:compiler:${versions.glide}"
+ if (project.hasProperty('k9mail.enableLeakCanary') && project.property('k9mail.enableLeakCanary') == "true") {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
+ }
// Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager
testImplementation project(':plugins:openpgp-api-lib:openpgp-api')
