summaryrefslogtreecommitdiff
path: root/ui/common
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-05-11 22:14:56 +0200
committerByteHamster <info@bytehamster.com>2021-05-11 22:38:46 +0200
commitc72fd8188614acf981ddfd9b9078927322e3c229 (patch)
treeb5f564b3e8c0a068aa753b6a02aeb76a13739570 /ui/common
parent65bf8bf70c008947b45991cb8c1df2e7a8e5ec42 (diff)
downloadAntennaPod-c72fd8188614acf981ddfd9b9078927322e3c229.zip
Move common gradle setup to a single file
Original idea by @TacoTheDank
Diffstat (limited to 'ui/common')
-rw-r--r--ui/common/build.gradle47
1 files changed, 1 insertions, 46 deletions
diff --git a/ui/common/build.gradle b/ui/common/build.gradle
index b05569b04..5390b85d8 100644
--- a/ui/common/build.gradle
+++ b/ui/common/build.gradle
@@ -1,50 +1,5 @@
apply plugin: "com.android.library"
-
-android {
- compileSdkVersion rootProject.ext.compileSdkVersion
-
- defaultConfig {
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
-
- multiDexEnabled false
-
- testApplicationId "de.danoeh.antennapod.core.tests"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile("proguard-android.txt")
- }
- debug {
- // 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
- }
- }
-
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
- testOptions {
- unitTests {
- includeAndroidResources = true
- }
- }
-
- lintOptions {
- disable 'GradleDependency'
- checkDependencies true
- warningsAsErrors true
- abortOnError true
- }
-}
+apply from: "../../common.gradle"
dependencies {
annotationProcessor "androidx.annotation:annotation:$annotationVersion"