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"