Add Leak Canary to debug build

And increase minSdk for the debug build to 14 for Leak Canary.
This commit is contained in:
Markus Fisch
2020-05-04 13:42:32 +02:00
parent ea0212c58e
commit 45eb24036f
+4
View File
@@ -38,6 +38,8 @@ android {
buildTypes {
debug {
// necessary for leak canary
defaultConfig.minSdkVersion 14
applicationIdSuffix '.debug'
}
@@ -75,4 +77,6 @@ dependencies {
implementation 'com.google.zxing:core:3.3.3'
implementation 'com.github.markusfisch:CameraView:1.9.1'
implementation 'com.github.markusfisch:ScalingImageView:1.2.0'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
}