mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 12:53:08 +00:00
108 lines
No EOL
3.4 KiB
Groovy
108 lines
No EOL
3.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSDK
|
|
targetSdkVersion rootProject.ext.targetSDK
|
|
versionCode 1
|
|
versionName '2.0.0'
|
|
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
|
|
}
|
|
}
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled false
|
|
useProguard false
|
|
}
|
|
|
|
release {
|
|
minifyEnabled true
|
|
useProguard true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
flavorDimensions "streaming"
|
|
|
|
productFlavors {
|
|
prod {
|
|
buildConfigField "String", "STREAMING_API_BASE_URL", "\"https://streaming.media.ccc.de\""
|
|
buildConfigField "String", "STREAMING_API_OFFERS_PATH", "\"/streams/v2.json\""
|
|
}
|
|
|
|
mock {
|
|
buildConfigField "String", "STREAMING_API_BASE_URL", "\"https://gist.githubusercontent.com\""
|
|
buildConfigField "String", "STREAMING_API_OFFERS_PATH", "\"/NiciDieNase/1ca017f180242f0ee683a1f592efc4ed/raw/0104592b57f4b29863fd0684a510462af276f30e/example_streams_v2.json\""
|
|
}
|
|
}
|
|
|
|
variantFilter { variant ->
|
|
if (variant.buildType.name == "mockRelease") {
|
|
setIgnore(true)
|
|
}
|
|
}
|
|
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api "com.android.support:appcompat-v7:${rootProject.ext.supportLibraryVersion}"
|
|
|
|
api "android.arch.lifecycle:extensions:${rootProject.ext.archCompVersion}"
|
|
kapt "android.arch.lifecycle:compiler:${rootProject.ext.archCompVersion}"
|
|
api "android.arch.lifecycle:common-java8:${rootProject.ext.archCompVersion}"
|
|
|
|
api "android.arch.persistence.room:runtime:${rootProject.ext.archCompVersion}"
|
|
kapt "android.arch.persistence.room:compiler:${rootProject.ext.archCompVersion}"
|
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
|
|
|
|
api 'com.google.android.exoplayer:exoplayer:2.9.6'
|
|
|
|
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0'
|
|
|
|
api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
api 'commons-io:commons-io:2.4'
|
|
|
|
debugImplementation 'com.facebook.stetho:stetho:1.4.2'
|
|
debugImplementation 'com.facebook.stetho:stetho-okhttp3:1.4.2'
|
|
debugImplementation 'com.facebook.stetho:stetho-okhttp:1.4.2'
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
|
|
|
|
testImplementation "org.mockito:mockito-core:2.11.0"
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'org.robolectric:robolectric:4.1'
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
|
|
} |