diff options
author | ByteHamster <info@bytehamster.com> | 2022-05-07 21:54:00 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-05-07 21:54:02 +0200 |
commit | 0ea973cef1b7d3c58d465ecc0c6ffca6bc2b8c9f (patch) | |
tree | 63fc089aa643c85a8c562e05b4b6f0131aac8419 /app/build.gradle | |
parent | 25679c2aae1a11b36f3b2725cc028dfe9cc01770 (diff) | |
download | AntennaPod-0ea973cef1b7d3c58d465ecc0c6ffca6bc2b8c9f.zip |
Remove Gradle plugins that are no longer needed
- We use MultiDex now, so we no longer need dexcount
- We can use a resValue instead of a resourcePlaceholder
- Simplify getting default value of properties
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/app/build.gradle b/app/build.gradle index baa206519..6cba6549b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,5 @@ plugins { id('com.android.application') - id('com.getkeepsafe.dexcount') id('com.github.triplet.play') version '3.7.0-agp4.2' apply false } apply from: "../common.gradle" @@ -37,27 +36,10 @@ android { releaseConfig { enableV1Signing true enableV2Signing true - - if (project.hasProperty("releaseStoreFile")) { - storeFile file(releaseStoreFile) - } else { - storeFile file("keystore") - } - if (project.hasProperty("releaseStorePassword")) { - storePassword releaseStorePassword - } else { - storePassword "password" - } - if (project.hasProperty("releaseKeyAlias")) { - keyAlias releaseKeyAlias - } else { - keyAlias "alias" - } - if (project.hasProperty("releaseKeyPassword")) { - keyPassword releaseKeyPassword - } else { - keyPassword "password" - } + storeFile file(project.getProperties().getOrDefault("releaseStoreFile", "keystore")) + storePassword project.getProperties().getOrDefault("releaseStorePassword", "password") + keyAlias project.getProperties().getOrDefault("releaseKeyAlias", "alias") + keyPassword project.getProperties().getOrDefault("releaseKeyPassword", "password") } } @@ -65,17 +47,11 @@ android { debug { applicationIdSuffix ".debug" resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider" - - dexcount { - if (project.hasProperty("enableDexcountInDebug")) { - runOnEachPackage = enableDexcountInDebug.toBoolean() - } else { // default to not running dexcount - runOnEachPackage = false - } - } + resValue "string", "application_id", "de.danoeh.antennapod.debug" } release { resValue "string", "provider_authority", "de.danoeh.antennapod.provider" + resValue "string", "application_id", "de.danoeh.antennapod" minifyEnabled true shrinkResources true signingConfig signingConfigs.releaseConfig @@ -187,8 +163,3 @@ task copyLicense(type: Copy) { } preBuild.dependsOn copyLicense - -apply plugin: 'de.timfreiheit.resourceplaceholders.plugin' -resourcePlaceholders { - files = ['xml/shortcuts.xml'] -} |