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
|
2014-10-11 17:43:07 +02:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2015-05-20 11:06:45 +02:00
|
|
|
testApplicationId "de.danoeh.antennapod.core.tests"
|
2018-10-21 22:12:07 +02:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
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
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "com.android.support:support-v4:$supportVersion"
|
|
|
|
implementation "com.android.support:appcompat-v7:$supportVersion"
|
2018-05-06 23:15:55 +02:00
|
|
|
implementation "com.android.support:preference-v14:$supportVersion"
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
|
2018-04-21 16:17:41 +02:00
|
|
|
implementation "org.apache.commons:commons-text:$commonstextVersion"
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation ("org.shredzone.flattr4j:flattr4j-core:$flattr4jVersion") {
|
2015-11-01 17:48:33 +01:00
|
|
|
exclude group: "org.json", module: "json"
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "commons-io:commons-io:$commonsioVersion"
|
2018-03-13 20:35:48 +01:00
|
|
|
implementation "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
2018-03-13 19:34:29 +01:00
|
|
|
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"
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "com.github.bumptech.glide:okhttp3-integration:$glideOkhttpIntegrationVersion@aar"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
|
|
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
|
|
|
implementation "com.squareup.okio:okio:$okioVersion"
|
|
|
|
implementation "de.greenrobot:eventbus:$eventbusVersion"
|
2018-09-30 19:58:53 +02:00
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
|
|
|
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
|
2018-09-30 17:08:17 +02:00
|
|
|
implementation "org.awaitility:awaitility:$awaitilityVersion"
|
2015-11-01 17:48:33 +01:00
|
|
|
|
2018-04-21 18:39:30 +02:00
|
|
|
implementation "com.google.android.exoplayer:exoplayer:$exoPlayerVersion"
|
2018-03-13 19:34:29 +01:00
|
|
|
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
2016-03-19 05:31:41 +01:00
|
|
|
|
|
|
|
// Add casting features
|
2016-06-08 20:11:26 +02:00
|
|
|
// free build hack: skip some dependencies
|
|
|
|
if (!doFreeBuild()) {
|
2018-03-13 19:34:29 +01:00
|
|
|
playApi "com.google.android.libraries.cast.companionlibrary:ccl:$castCompanionLibVer"
|
|
|
|
api "com.android.support:mediarouter-v7:$supportVersion"
|
|
|
|
playApi "com.google.android.gms:play-services-cast:$playServicesVersion"
|
|
|
|
api "com.google.android.support:wearable:$wearableSupportVersion"
|
2016-06-08 20:11:26 +02:00
|
|
|
} else {
|
|
|
|
System.out.println("core: free build hack, skipping some dependencies")
|
|
|
|
}
|
2018-05-18 22:21:36 +02:00
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2019-03-31 16:17:55 +02:00
|
|
|
testImplementation 'org.mockito:mockito-core:1.10.19'
|
2018-10-21 22:12:07 +02:00
|
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
2018-05-18 22:21:36 +02:00
|
|
|
|
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
|
|
|
}
|