Make using LeakCanary in debug builds optional
This commit is contained in:
parent
152b9e3952
commit
ba8834d3f7
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue