2015-11-01 17:48:33 +01:00
|
|
|
apply plugin: "com.android.library"
|
2014-10-11 17:43:07 +02:00
|
|
|
|
|
|
|
android {
|
2015-11-01 17:48:33 +01:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
2014-10-11 17:43:07 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2015-11-01 17:48:33 +01:00
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
2020-05-07 17:38:01 +02:00
|
|
|
|
2019-08-11 15:00:37 +02:00
|
|
|
multiDexEnabled false
|
2020-05-07 17:38:01 +02:00
|
|
|
|
2015-05-20 11:06:45 +02:00
|
|
|
testApplicationId "de.danoeh.antennapod.core.tests"
|
2019-10-04 11:22:39 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2019-05-28 17:26:09 +02:00
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
2020-04-26 03:03:16 +02:00
|
|
|
arguments = [eventBusIndex: 'de.danoeh.antennapod.core.ApCoreEventBusIndex']
|
2019-05-28 17:26:09 +02:00
|
|
|
}
|
|
|
|
}
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2014-11-05 20:40:24 +01:00
|
|
|
minifyEnabled false
|
2015-11-01 17:48:33 +01:00
|
|
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
2019-08-11 15:00:37 +02:00
|
|
|
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
|
|
|
|
}
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
2014-11-10 12:45:11 +01:00
|
|
|
|
|
|
|
packagingOptions {
|
2015-11-01 17:48:33 +01:00
|
|
|
exclude "META-INF/LICENSE.txt"
|
|
|
|
exclude "META-INF/NOTICE.txt"
|
2014-11-10 12:45:11 +01:00
|
|
|
}
|
2014-11-12 18:46:36 +01:00
|
|
|
|
|
|
|
compileOptions {
|
2015-08-18 17:38:51 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2014-11-12 18:46:36 +01:00
|
|
|
}
|
|
|
|
|
2018-03-13 17:51:50 +01:00
|
|
|
flavorDimensions "market"
|
2016-06-04 01:36:25 +02:00
|
|
|
productFlavors {
|
|
|
|
free {
|
2018-03-13 17:51:50 +01:00
|
|
|
dimension "market"
|
2016-06-04 01:36:25 +02:00
|
|
|
}
|
|
|
|
play {
|
2018-03-13 17:51:50 +01:00
|
|
|
dimension "market"
|
2016-06-04 01:36:25 +02:00
|
|
|
}
|
|
|
|
}
|
2020-10-25 17:22:36 +01:00
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
2020-10-25 17:31:47 +01:00
|
|
|
|
2020-10-01 11:06:01 +02:00
|
|
|
lintOptions {
|
|
|
|
disable "InvalidPeriodicWorkRequestInterval", "ObsoleteLintCustomCheck", "DefaultLocale", "UnusedAttribute",
|
|
|
|
"GradleDependency", "ParcelClassLoader", "Typos", "ExtraTranslation", "ImpliedQuantity",
|
|
|
|
"PluralsCandidate", "UnusedQuantity", "StringFormatCount", "TrustAllX509TrustManager",
|
2020-10-01 11:07:23 +02:00
|
|
|
"StaticFieldLeak", "TypographyEllipsis", "IconDensities", "IconDuplicates", "CheckResult"
|
2021-04-17 17:25:45 +02:00
|
|
|
checkDependencies true
|
2020-10-01 11:06:01 +02:00
|
|
|
warningsAsErrors true
|
|
|
|
abortOnError true
|
|
|
|
}
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-03-01 16:21:39 +01:00
|
|
|
implementation project(':net:ssl')
|
2021-02-07 11:29:39 +01:00
|
|
|
implementation project(':ui:app-start-intent')
|
2021-02-12 21:00:39 +01:00
|
|
|
implementation project(':ui:common')
|
2021-02-07 11:29:39 +01:00
|
|
|
|
2020-05-07 17:38:01 +02:00
|
|
|
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
|
|
|
|
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
2020-05-25 22:30:14 +02:00
|
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
2020-05-07 17:38:01 +02:00
|
|
|
implementation "androidx.media:media:$mediaVersion"
|
|
|
|
implementation "androidx.preference:preference:$preferenceVersion"
|
2020-04-10 12:28:59 +02:00
|
|
|
implementation "androidx.work:work-runtime:$workManagerVersion"
|
2020-05-07 17:38:01 +02:00
|
|
|
implementation "com.google.android.material:material:$googleMaterialVersion"
|
2020-04-26 03:03:16 +02:00
|
|
|
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
|
|
|
|
implementation "commons-io:commons-io:$commonsioVersion"
|
|
|
|
implementation "org.jsoup:jsoup:$jsoupVersion"
|
|
|
|
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
2019-01-03 18:43:19 +01:00
|
|
|
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
|
2020-05-07 17:38:01 +02:00
|
|
|
implementation "com.github.bumptech.glide:okhttp3-integration:$glideVersion@aar"
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
|
|
|
implementation "com.squareup.okio:okio:$okioVersion"
|
2019-04-12 11:28:29 +02:00
|
|
|
implementation "org.greenrobot:eventbus:$eventbusVersion"
|
2019-05-28 17:26:09 +02:00
|
|
|
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
|
2018-09-30 19:58:53 +02:00
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
|
|
|
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
|
2015-11-01 17:48:33 +01:00
|
|
|
|
2020-08-29 05:23:18 +02:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer:2.11.8'
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
2016-03-19 05:31:41 +01:00
|
|
|
|
2021-02-23 17:11:32 +01:00
|
|
|
// Non-free dependencies:
|
|
|
|
playApi 'com.google.android.libraries.cast.companionlibrary:ccl:2.9.1'
|
|
|
|
playApi 'androidx.mediarouter:mediarouter:1.0.0'
|
2021-03-01 16:21:39 +01:00
|
|
|
playApi "com.google.android.gms:play-services-cast:$playServicesVersion"
|
2021-02-23 17:11:32 +01:00
|
|
|
playApi "com.google.android.support:wearable:$wearableSupportVersion"
|
|
|
|
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
2018-05-18 22:21:36 +02:00
|
|
|
|
2021-04-06 18:15:14 +02:00
|
|
|
testImplementation 'androidx.test:core:1.2.0'
|
2019-09-01 19:56:42 +02:00
|
|
|
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
|
2020-05-01 15:31:04 +02:00
|
|
|
testImplementation 'junit:junit:4.13'
|
2020-10-25 17:22:36 +01:00
|
|
|
testImplementation 'org.mockito:mockito-inline:3.5.13'
|
2020-10-25 18:45:30 +01:00
|
|
|
testImplementation 'org.robolectric:robolectric:4.5-alpha-1'
|
2020-10-25 17:22:36 +01:00
|
|
|
testImplementation 'javax.inject:javax.inject:1'
|
2019-11-06 18:47:13 +01:00
|
|
|
androidTestImplementation "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
2019-09-29 13:24:11 +02:00
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
|
2020-05-07 17:38:01 +02:00
|
|
|
androidTestImplementation "androidx.test:runner:$runnerVersion"
|
|
|
|
androidTestImplementation "androidx.test:rules:$rulesVersion"
|
2015-03-04 14:34:35 +01:00
|
|
|
}
|
2016-05-16 08:42:43 +02:00
|
|
|
|
2018-05-27 19:30:01 +02:00
|
|
|
tasks.withType(Test) {
|
|
|
|
testLogging {
|
|
|
|
exceptionFormat "full"
|
|
|
|
events "skipped", "passed", "failed"
|
|
|
|
showStandardStreams true
|
|
|
|
displayGranularity 2
|
|
|
|
}
|
2015-03-04 14:34:35 +01:00
|
|
|
}
|