chaosflix/touch/build.gradle

110 lines
4.1 KiB
Groovy
Raw Normal View History

2017-09-18 22:27:10 +02:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2017-10-12 18:27:41 +02:00
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
2017-09-18 22:27:10 +02:00
2018-12-17 20:08:59 +01:00
String appName = "Chaosflix"
2017-09-18 22:27:10 +02:00
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
2017-09-18 22:27:10 +02:00
defaultConfig {
applicationId "de.nicidienase.chaosflix"
minSdkVersion rootProject.ext.minSDK
targetSdkVersion rootProject.ext.targetSDK
2018-12-17 20:08:59 +01:00
manifestPlaceholders = [label: appName]
2017-11-11 16:12:21 +01:00
// odd for touch, even for leanback
versionCode rootProject.ext.touchVersionCode
versionName rootProject.ext.touchVersionName
// multiDexEnabled true
2017-09-18 22:27:10 +02:00
}
buildTypes {
debug {
2018-12-17 20:08:59 +01:00
applicationIdSuffix ".dev"
manifestPlaceholders = [label: appName + "-dev"]
2017-09-18 22:27:10 +02:00
minifyEnabled false
useProguard false
}
release {
2018-12-23 19:37:32 +01:00
useProguard false
minifyEnabled false
shrinkResources false
2017-09-18 22:27:10 +02:00
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
2018-12-21 17:15:53 +01:00
flavorDimensions "streaming"
productFlavors {
prod {}
mock {}
}
2018-12-23 19:23:05 +01:00
variantFilter { variant ->
if (variant.buildType.name == "mockRelease") {
setIgnore(true)
}
}
2017-09-18 22:27:10 +02:00
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}
2017-09-24 20:53:12 +02:00
dataBinding {
enabled = true
}
2017-09-18 22:27:10 +02:00
}
2018-12-21 17:15:53 +01:00
configurations {
mockDebugCompile
prodDebugCompile
prodReleaseCompile
}
2017-09-18 22:27:10 +02:00
dependencies {
2018-09-08 18:54:21 +02:00
implementation project(':common')
2018-09-07 08:35:11 +02:00
implementation('com.mikepenz:aboutlibraries:6.1.1@aar') {
2017-11-25 00:13:58 +01:00
transitive = true
}
2017-12-25 14:52:42 +01:00
implementation 'com.github.medyo:android-about-page:1.2.2'
implementation "com.android.support:support-v4:${rootProject.ext.supportLibraryVersion}"
implementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibraryVersion}"
implementation "com.android.support:cardview-v7:${rootProject.ext.supportLibraryVersion}"
2018-12-10 01:27:02 +01:00
implementation "com.android.support.constraint:constraint-layout:${rootProject.ext.constraintLayoutVersion}"
2017-10-31 20:49:43 +01:00
implementation "com.android.support:design:${rootProject.ext.supportLibraryVersion}"
2017-12-25 15:55:21 +01:00
implementation "com.android.support:preference-v14:${rootProject.ext.supportLibraryVersion}"
implementation "com.android.support:mediarouter-v7:${rootProject.ext.supportLibraryVersion}"
implementation 'com.google.android.gms:play-services-cast-framework:16.1.0'
2018-12-23 19:37:32 +01:00
implementation('pl.droidsonroids:casty:1.0.8') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
2018-12-23 19:37:32 +01:00
implementation 'com.google.android.exoplayer:exoplayer:r2.5.2'
2017-10-31 20:49:43 +01:00
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
2018-12-10 01:27:02 +01:00
implementation 'net.opacapp:multiline-collapsingtoolbar:27.1.0'
implementation 'net.rdrei.android.dirchooser:library:3.2@aar'
2018-12-23 19:37:32 +01:00
// implementation 'com.gu:option:1.3'
implementation 'com.github.guardian:Option:-SNAPSHOT'
2018-12-10 01:27:02 +01:00
testImplementation 'org.mockito:mockito-core:2.11.0'
androidTestImplementation('com.android.support.test:rules:0.5') {
2017-09-18 22:27:10 +02:00
exclude module: 'support-annotations'
}
androidTestImplementation('com.android.support.test:runner:0.5') {
2017-09-18 22:27:10 +02:00
exclude module: 'support-annotations'
}
2017-10-31 20:49:43 +01:00
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2', {
2017-09-18 22:27:10 +02:00
exclude group: 'com.android.support', module: 'support-annotations'
}
}