summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authororionlee <orionlee@yahoo.com>2018-05-03 14:00:48 -0700
committerorionlee <orionlee@yahoo.com>2018-05-03 14:00:48 -0700
commit2e38cf3a40abb7ad18ea58b61c12450e69ab84fa (patch)
treea484b12106effba3aa0d593407c18920da608dfe /app/build.gradle
parent9d3d92cc9d98a908a5e2147aee0c6d5cb6b4db47 (diff)
downloadAntennaPod-2e38cf3a40abb7ad18ea58b61c12450e69ab84fa.zip
Build tweak: Speed up debug build by making dexcount optional in debug
build, configured with a new gradle property enableDexcountInDebug.
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index e4f66fe64..0efe9df73 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -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"