diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-05-08 21:29:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 21:29:43 +0200 |
commit | bfb811d29e611146855f77df5dd97b9fb664cf25 (patch) | |
tree | 19eefd9331d3b1f53b150ff15a211063e430facb /app | |
parent | 4f82be769875cd4cfb245d2c9ff7d56d44b59c80 (diff) | |
parent | 0ea973cef1b7d3c58d465ecc0c6ffca6bc2b8c9f (diff) | |
download | AntennaPod-bfb811d29e611146855f77df5dd97b9fb664cf25.zip |
Merge pull request #5877 from ByteHamster/gradle-cleanup
Remove Gradle plugins that are no longer needed
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 41 | ||||
-rw-r--r-- | app/src/main/res/xml/shortcuts.xml | 8 |
2 files changed, 10 insertions, 39 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'] -} diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml index 03042f224..c802e2bba 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/src/main/res/xml/shortcuts.xml @@ -8,7 +8,7 @@ <intent android:action="android.intent.action.VIEW" android:targetClass="de.danoeh.antennapod.activity.MainActivity" - android:targetPackage="${applicationId}"> + android:targetPackage="@string/application_id"> <extra android:name="fragment_tag" android:value="QueueFragment" /> @@ -23,7 +23,7 @@ <intent android:action="android.intent.action.VIEW" android:targetClass="de.danoeh.antennapod.activity.MainActivity" - android:targetPackage="${applicationId}"> + android:targetPackage="@string/application_id"> <extra android:name="fragment_tag" android:value="EpisodesFragment" /> @@ -38,7 +38,7 @@ <intent android:action="android.intent.action.VIEW" android:targetClass="de.danoeh.antennapod.activity.MainActivity" - android:targetPackage="${applicationId}"> + android:targetPackage="@string/application_id"> <extra android:name="fragment_tag" android:value="SubscriptionFragment" /> @@ -53,7 +53,7 @@ <intent android:action="android.intent.action.VIEW" android:targetClass="de.danoeh.antennapod.activity.MainActivity" - android:targetPackage="${applicationId}"> + android:targetPackage="@string/application_id"> <extra android:name="refresh_on_start" android:value="true" /> |