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:
parent
9d3d92cc9d
commit
2e38cf3a40
|
@ -83,7 +83,14 @@ android {
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debug"
|
||||||
resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider"
|
resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider"
|
||||||
buildConfigField STRING, FLATTR_APP_KEY, mFlattrAppKey
|
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 {
|
release {
|
||||||
resValue "string", "provider_authority", "de.danoeh.antennapod.provider"
|
resValue "string", "provider_authority", "de.danoeh.antennapod.provider"
|
||||||
|
|
Loading…
Reference in New Issue