Build tweak: Speed up debug build by making dexcount optional in debug

build, configured with a new gradle property enableDexcountInDebug.
This commit is contained in:
orionlee 2018-05-03 14:00:48 -07:00
parent 9d3d92cc9d
commit 2e38cf3a40

View File

@ -84,6 +84,13 @@ android {
resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider"
buildConfigField STRING, FLATTR_APP_KEY, mFlattrAppKey
buildConfigField STRING, FLATTR_APP_SECRET, mFlattrAppSecret
dexcount {
// Optionally, can disable Dexcount by setting the property
// in gradle.properties file or via -P command line argument.
if (project.hasProperty("enableDexcountInDebug")) {
runOnEachPackage enableDexcountInDebug.toBoolean()
} // else default to true
}
}
release {
resValue "string", "provider_authority", "de.danoeh.antennapod.provider"