summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2021-05-13 19:11:02 +0200
committerGitHub <noreply@github.com>2021-05-13 19:11:02 +0200
commitc6aee572fbf1dbf01291fd850aef511aa0f526a7 (patch)
treeb5f564b3e8c0a068aa753b6a02aeb76a13739570 /app
parent65bf8bf70c008947b45991cb8c1df2e7a8e5ec42 (diff)
parentc72fd8188614acf981ddfd9b9078927322e3c229 (diff)
downloadAntennaPod-c6aee572fbf1dbf01291fd850aef511aa0f526a7.zip
Merge pull request #5156 from ByteHamster/common-gradle
Move common gradle setup to a single file
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle60
1 files changed, 4 insertions, 56 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 2c622cd91..658e52a0e 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,34 +3,17 @@ plugins {
id('com.getkeepsafe.dexcount')
id('com.github.triplet.play') version '2.7.5' apply false
}
+apply from: "../common.gradle"
+apply from: "../playFlavor.gradle"
android {
- compileSdkVersion rootProject.ext.compileSdkVersion
-
- viewBinding {
- enabled = true
- }
-
- lintOptions {
- checkGeneratedSources = true
- }
-
defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
// Version code schema:
// "1.2.3-beta4" -> 1020304
// "1.2.3" -> 1020395
versionCode 2020003
versionName "2.2.0-beta3"
- multiDexEnabled false
- vectorDrawables.useSupportLibrary true
- vectorDrawables.generatedDensities = []
-
- testApplicationId "de.test.antennapod"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
-
def commit = ""
try {
def hashStdOut = new ByteArrayOutputStream()
@@ -91,13 +74,6 @@ android {
applicationIdSuffix ".debug"
resValue "string", "provider_authority", "de.danoeh.antennapod.debug.provider"
- // 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 {
if (project.hasProperty("enableDexcountInDebug")) {
runOnEachPackage enableDexcountInDebug.toBoolean()
@@ -110,52 +86,24 @@ android {
resValue "string", "provider_authority", "de.danoeh.antennapod.provider"
minifyEnabled true
shrinkResources true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), "proguard.cfg"
signingConfig signingConfigs.releaseConfig
}
}
- packagingOptions {
- exclude "META-INF/LICENSE.txt"
- exclude "META-INF/NOTICE.txt"
- }
-
lintOptions {
disable 'ObsoleteLintCustomCheck', 'CheckResult', 'UnusedAttribute', 'BatteryLife', 'InflateParams',
- 'GradleDependency', 'RestrictedApi', 'TrustAllX509TrustManager', 'ExportedReceiver', 'AllowBackup',
+ 'RestrictedApi', 'TrustAllX509TrustManager', 'ExportedReceiver', 'AllowBackup', 'VectorDrawableCompat',
'StaticFieldLeak', 'UseCompoundDrawables', 'NestedWeights', 'Overdraw', 'UselessParent', 'TextFields',
'AlwaysShowAction', 'Autofill', 'ClickableViewAccessibility', 'ContentDescription',
'KeyboardInaccessibleWidget', 'LabelFor', 'SetTextI18n', 'HardcodedText', 'RelativeOverlap',
'RtlCompat', 'RtlHardcoded', 'MissingMediaBrowserServiceIntentFilter', 'VectorPath',
- 'InvalidPeriodicWorkRequestInterval', 'VectorDrawableCompat'
- checkDependencies true
- warningsAsErrors true
- abortOnError true
- }
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
+ 'InvalidPeriodicWorkRequestInterval'
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
- testOptions {
- animationsDisabled = true
- }
-
- flavorDimensions "market"
- productFlavors {
- free {
- dimension "market"
- }
- play {
- dimension "market"
- }
- }
-
dexOptions {
jumboMode true
}