mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-11 16:37:01 +01:00
enable multidex for debug build only, speeding up release build time
This commit is contained in:
parent
8252f6a41d
commit
ab864cd171
@ -39,7 +39,7 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
multiDexEnabled true
|
multiDexEnabled false
|
||||||
versionCode getMyVersionCode()
|
versionCode getMyVersionCode()
|
||||||
versionName "${getMyVersionName()}"
|
versionName "${getMyVersionName()}"
|
||||||
testApplicationId "de.test.antennapod"
|
testApplicationId "de.test.antennapod"
|
||||||
@ -84,6 +84,12 @@ android {
|
|||||||
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
|
||||||
|
// debug build has method count over 64k single-dex threshold.
|
||||||
|
// For building debug build to use on Android < 21 (pre-Android 5) devices,
|
||||||
|
// you need to manually change class
|
||||||
|
// de.danoeh.antennapod.PodcastApp to extend MultiDexApplication .
|
||||||
|
// See Issue #2813
|
||||||
|
multiDexEnabled true
|
||||||
dexcount {
|
dexcount {
|
||||||
if (project.hasProperty("enableDexcountInDebug")) {
|
if (project.hasProperty("enableDexcountInDebug")) {
|
||||||
runOnEachPackage enableDexcountInDebug.toBoolean()
|
runOnEachPackage enableDexcountInDebug.toBoolean()
|
||||||
|
Loading…
Reference in New Issue
Block a user