Merge pull request #5877 from ByteHamster/gradle-cleanup

Remove Gradle plugins that are no longer needed
This commit is contained in:
ByteHamster 2022-05-08 21:29:43 +02:00 committed by GitHub
commit bfb811d29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 41 deletions

View File

@ -1,6 +1,5 @@
plugins { plugins {
id('com.android.application') id('com.android.application')
id('com.getkeepsafe.dexcount')
id('com.github.triplet.play') version '3.7.0-agp4.2' apply false id('com.github.triplet.play') version '3.7.0-agp4.2' apply false
} }
apply from: "../common.gradle" apply from: "../common.gradle"
@ -37,27 +36,10 @@ android {
releaseConfig { releaseConfig {
enableV1Signing true enableV1Signing true
enableV2Signing true enableV2Signing true
storeFile file(project.getProperties().getOrDefault("releaseStoreFile", "keystore"))
if (project.hasProperty("releaseStoreFile")) { storePassword project.getProperties().getOrDefault("releaseStorePassword", "password")
storeFile file(releaseStoreFile) keyAlias project.getProperties().getOrDefault("releaseKeyAlias", "alias")
} else { keyPassword project.getProperties().getOrDefault("releaseKeyPassword", "password")
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"
}
} }
} }
@ -65,17 +47,11 @@ android {
debug { debug {
applicationIdSuffix ".debug" applicationIdSuffix ".debug"
resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider" resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider"
resValue "string", "application_id", "de.danoeh.antennapod.debug"
dexcount {
if (project.hasProperty("enableDexcountInDebug")) {
runOnEachPackage = enableDexcountInDebug.toBoolean()
} else { // default to not running dexcount
runOnEachPackage = false
}
}
} }
release { release {
resValue "string", "provider_authority", "de.danoeh.antennapod.provider" resValue "string", "provider_authority", "de.danoeh.antennapod.provider"
resValue "string", "application_id", "de.danoeh.antennapod"
minifyEnabled true minifyEnabled true
shrinkResources true shrinkResources true
signingConfig signingConfigs.releaseConfig signingConfig signingConfigs.releaseConfig
@ -187,8 +163,3 @@ task copyLicense(type: Copy) {
} }
preBuild.dependsOn copyLicense preBuild.dependsOn copyLicense
apply plugin: 'de.timfreiheit.resourceplaceholders.plugin'
resourcePlaceholders {
files = ['xml/shortcuts.xml']
}

View File

@ -8,7 +8,7 @@
<intent <intent
android:action="android.intent.action.VIEW" android:action="android.intent.action.VIEW"
android:targetClass="de.danoeh.antennapod.activity.MainActivity" android:targetClass="de.danoeh.antennapod.activity.MainActivity"
android:targetPackage="${applicationId}"> android:targetPackage="@string/application_id">
<extra <extra
android:name="fragment_tag" android:name="fragment_tag"
android:value="QueueFragment" /> android:value="QueueFragment" />
@ -23,7 +23,7 @@
<intent <intent
android:action="android.intent.action.VIEW" android:action="android.intent.action.VIEW"
android:targetClass="de.danoeh.antennapod.activity.MainActivity" android:targetClass="de.danoeh.antennapod.activity.MainActivity"
android:targetPackage="${applicationId}"> android:targetPackage="@string/application_id">
<extra <extra
android:name="fragment_tag" android:name="fragment_tag"
android:value="EpisodesFragment" /> android:value="EpisodesFragment" />
@ -38,7 +38,7 @@
<intent <intent
android:action="android.intent.action.VIEW" android:action="android.intent.action.VIEW"
android:targetClass="de.danoeh.antennapod.activity.MainActivity" android:targetClass="de.danoeh.antennapod.activity.MainActivity"
android:targetPackage="${applicationId}"> android:targetPackage="@string/application_id">
<extra <extra
android:name="fragment_tag" android:name="fragment_tag"
android:value="SubscriptionFragment" /> android:value="SubscriptionFragment" />
@ -53,7 +53,7 @@
<intent <intent
android:action="android.intent.action.VIEW" android:action="android.intent.action.VIEW"
android:targetClass="de.danoeh.antennapod.activity.MainActivity" android:targetClass="de.danoeh.antennapod.activity.MainActivity"
android:targetPackage="${applicationId}"> android:targetPackage="@string/application_id">
<extra <extra
android:name="refresh_on_start" android:name="refresh_on_start"
android:value="true" /> android:value="true" />

View File

@ -6,8 +6,6 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.2.2' classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:3.0.1'
classpath 'de.timfreiheit.resourceplaceholders:placeholders:0.4'
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.0" classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.0"
classpath 'org.codehaus.groovy:groovy-xml:3.0.9' classpath 'org.codehaus.groovy:groovy-xml:3.0.9'
} }