diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/build.gradle | 60 |
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 } |