Make using LeakCanary in debug builds optional

This commit is contained in:
cketti 2020-10-18 16:27:14 +02:00
parent 152b9e3952
commit ba8834d3f7

View file

@ -26,7 +26,9 @@ dependencies {
implementation "com.github.bumptech.glide:glide:${versions.glide}"
annotationProcessor "com.github.bumptech.glide:compiler:${versions.glide}"
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
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')