Disable debug build for apk size measurements.
Android Gradle Plugin does not guarantee that debug build produces
reproducible artifacts. This will make sure the size measurements
are stable.
@@ -51,6 +51,18 @@ android {
signingConfig signingConfigs.debug
matchingFallbacks = ['release']
}
+ release {
+ debuggable false
+ minifyEnabled false
+ shrinkResources false
+ }
+ }
+
+ variantFilter { variant ->
+ def buildTypeName = variant.buildType*.name
+ if (buildTypeName.contains('debug')) {
+ setIgnore(true)
+ }
}
}
