mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-11 08:28:52 +01:00
67 lines
1.8 KiB
Groovy
67 lines
1.8 KiB
Groovy
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
|
|
}
|
|
}
|
|
|
|
flavorDimensions "market"
|
|
productFlavors {
|
|
free {
|
|
dimension "market"
|
|
}
|
|
play {
|
|
dimension "market"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'GradleDependency'
|
|
checkDependencies true
|
|
warningsAsErrors true
|
|
abortOnError true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
|
|
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
|
|
|
playImplementation "com.google.android.gms:play-services-base:$playServicesVersion"
|
|
freeImplementation "org.conscrypt:conscrypt-android:$conscryptVersion"
|
|
}
|