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
1 changed files with 8 additions and 1 deletions

View File

@ -83,7 +83,14 @@ android {
applicationIdSuffix ".debug"
resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider"
buildConfigField STRING, FLATTR_APP_KEY, mFlattrAppKey
buildConfigField STRING, FLATTR_APP_SECRET, mFlattrAppSecret
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"