2015-11-01 17:48:33 +01:00
|
|
|
apply plugin: "com.android.library"
|
|
|
|
apply plugin: "me.tatarka.retrolambda"
|
2014-10-11 17:43:07 +02:00
|
|
|
|
|
|
|
android {
|
2015-11-01 17:48:33 +01:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
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"
|
|
|
|
testInstrumentationRunner "de.danoeh.antennapod.core.tests.AntennaPodTestRunner"
|
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
|
|
|
}
|
|
|
|
|
2016-06-04 01:36:25 +02:00
|
|
|
publishNonDefault true
|
|
|
|
productFlavors {
|
|
|
|
free {
|
|
|
|
}
|
|
|
|
play {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
|
|
|
|
2015-09-19 01:36:52 +02:00
|
|
|
repositories {
|
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2014-10-11 17:43:07 +02:00
|
|
|
dependencies {
|
2015-11-01 17:48:33 +01:00
|
|
|
compile "com.android.support:support-v4:$supportVersion"
|
|
|
|
compile "com.android.support:appcompat-v7:$supportVersion"
|
|
|
|
compile "org.apache.commons:commons-lang3:$commonslangVersion"
|
|
|
|
compile ("org.shredzone.flattr4j:flattr4j-core:$flattr4jVersion") {
|
|
|
|
exclude group: "org.json", module: "json"
|
2014-10-11 17:43:07 +02:00
|
|
|
}
|
2015-11-01 17:48:33 +01:00
|
|
|
compile "commons-io:commons-io:$commonsioVersion"
|
2016-03-13 09:47:43 +01:00
|
|
|
compile "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
2015-11-01 17:48:33 +01:00
|
|
|
compile "org.jsoup:jsoup:$jsoupVersion"
|
|
|
|
compile "com.github.bumptech.glide:glide:$glideVersion"
|
2016-11-13 22:04:08 +01:00
|
|
|
compile "com.github.bumptech.glide:okhttp3-integration:$glideOkhttpIntegrationVersion@aar"
|
|
|
|
compile "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
|
|
|
compile "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
2015-11-01 17:48:33 +01:00
|
|
|
compile "com.squareup.okio:okio:$okioVersion"
|
|
|
|
compile "com.nineoldandroids:library:2.4.0"
|
|
|
|
compile "de.greenrobot:eventbus:$eventbusVersion"
|
|
|
|
compile "io.reactivex:rxandroid:$rxAndroidVersion"
|
|
|
|
|
2016-01-02 02:39:58 +01:00
|
|
|
compile "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()) {
|
|
|
|
playCompile "com.google.android.libraries.cast.companionlibrary:ccl:$castCompanionLibVer"
|
|
|
|
compile "com.android.support:mediarouter-v7:$supportVersion"
|
|
|
|
playCompile "com.google.android.gms:play-services-cast:$playServicesVersion"
|
2017-08-14 21:54:31 +02:00
|
|
|
compile "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")
|
|
|
|
}
|
2015-03-04 14:34:35 +01:00
|
|
|
}
|
2016-05-16 08:42:43 +02:00
|
|
|
|
|
|
|
allprojects {
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|