mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-29 10:13:58 +01:00
87 lines
2.8 KiB
Groovy
87 lines
2.8 KiB
Groovy
apply plugin: "com.android.library"
|
|
apply plugin: "me.tatarka.retrolambda"
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testApplicationId "de.danoeh.antennapod.core.tests"
|
|
testInstrumentationRunner "de.danoeh.antennapod.core.tests.AntennaPodTestRunner"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude "META-INF/LICENSE.txt"
|
|
exclude "META-INF/NOTICE.txt"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
publishNonDefault true
|
|
productFlavors {
|
|
free {
|
|
}
|
|
play {
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
maven { url "https://jitpack.io" }
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
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"
|
|
}
|
|
compile "commons-io:commons-io:$commonsioVersion"
|
|
compile "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
|
compile "org.jsoup:jsoup:$jsoupVersion"
|
|
compile "com.github.bumptech.glide:glide:$glideVersion"
|
|
compile "com.github.bumptech.glide:okhttp-integration:$glideOkhttpIntegrationVersion"
|
|
compile "com.squareup.okhttp:okhttp:$okhttpVersion"
|
|
compile "com.squareup.okhttp:okhttp-urlconnection:$okhttpVersion"
|
|
compile "com.squareup.okio:okio:$okioVersion"
|
|
compile "com.nineoldandroids:library:2.4.0"
|
|
compile "de.greenrobot:eventbus:$eventbusVersion"
|
|
compile "io.reactivex:rxandroid:$rxAndroidVersion"
|
|
|
|
compile "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
|
|
|
// Add casting features
|
|
// 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"
|
|
} else {
|
|
System.out.println("core: free build hack, skipping some dependencies")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
gradle.projectsEvaluated {
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint" << "-Xlint:-deprecation" << "-Xlint:-serial"
|
|
}
|
|
}
|
|
}
|