From c72fd8188614acf981ddfd9b9078927322e3c229 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 11 May 2021 22:14:56 +0200 Subject: Move common gradle setup to a single file Original idea by @TacoTheDank --- model/build.gradle | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) (limited to 'model') diff --git a/model/build.gradle b/model/build.gradle index 4d6d5b56d..3abbd8e24 100644 --- a/model/build.gradle +++ b/model/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 - - vectorDrawables.useSupportLibrary false - 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' - warningsAsErrors true - abortOnError true - } -} +apply from: "../common.gradle" dependencies { annotationProcessor "androidx.annotation:annotation:$annotationVersion" -- cgit v1.2.3