2018-09-09 13:26:33 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
2018-09-11 19:43:25 +00:00
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2018-12-17 19:08:59 +00:00
|
|
|
|
|
|
|
String appName = "Chaosflix"
|
|
|
|
|
2018-09-09 13:26:33 +00:00
|
|
|
android {
|
2018-09-09 13:56:56 +00:00
|
|
|
buildToolsVersion '27.0.3'
|
2018-09-09 13:26:33 +00:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "de.nicidienase.chaosflix"
|
2018-12-17 19:08:59 +00:00
|
|
|
manifestPlaceholders = [label: appName]
|
2018-09-09 13:26:33 +00:00
|
|
|
minSdkVersion rootProject.ext.minSDK
|
|
|
|
targetSdkVersion rootProject.ext.targetSDK
|
|
|
|
// odd for touch, even for leanback
|
2018-12-11 23:03:49 +00:00
|
|
|
versionCode 14
|
|
|
|
versionName "0.4"
|
2018-12-10 23:43:49 +00:00
|
|
|
// multiDexEnabled true
|
2018-09-09 13:26:33 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
2018-12-17 19:08:59 +00:00
|
|
|
applicationIdSuffix ".dev"
|
|
|
|
manifestPlaceholders = [label: appName + "-dev"]
|
2018-09-09 13:26:33 +00:00
|
|
|
minifyEnabled false
|
|
|
|
useProguard false
|
|
|
|
}
|
2018-12-18 23:16:51 +00:00
|
|
|
streamDebug{
|
|
|
|
initWith debug
|
|
|
|
}
|
2018-09-09 13:26:33 +00:00
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
useProguard false
|
|
|
|
// shrinkResources true
|
|
|
|
// minifyEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
|
|
|
'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2018-09-11 19:20:31 +00:00
|
|
|
dataBinding {
|
|
|
|
enabled = true
|
|
|
|
}
|
2018-12-10 23:43:49 +00:00
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2018-09-09 13:26:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-10 21:03:24 +00:00
|
|
|
implementation project(':common')
|
|
|
|
|
2018-09-09 13:26:33 +00:00
|
|
|
implementation "com.android.support:cardview-v7:${rootProject.ext.supportLibraryVersion}"
|
|
|
|
implementation "com.android.support:design:${rootProject.ext.supportLibraryVersion}"
|
2018-09-10 21:03:24 +00:00
|
|
|
implementation "com.android.support:leanback-v17:${rootProject.ext.supportLibraryVersion}"
|
|
|
|
implementation "com.android.support:preference-leanback-v17:${rootProject.ext.supportLibraryVersion}"
|
2018-12-09 22:07:39 +00:00
|
|
|
implementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibraryVersion}"
|
2018-09-10 21:03:24 +00:00
|
|
|
|
2018-12-10 22:03:23 +00:00
|
|
|
implementation "com.google.android.exoplayer:exoplayer:2.6.1"
|
|
|
|
implementation "com.google.android.exoplayer:extension-leanback:2.6.1"
|
2018-10-23 16:20:17 +00:00
|
|
|
|
2018-12-10 22:04:43 +00:00
|
|
|
implementation 'com.github.bumptech.glide:glide:4.6.1'
|
2018-12-09 22:07:39 +00:00
|
|
|
|
2018-09-09 13:26:33 +00:00
|
|
|
|
|
|
|
androidTestImplementation('com.android.support.test:rules:0.5') {
|
|
|
|
exclude module: 'support-annotations'
|
|
|
|
}
|
|
|
|
androidTestImplementation('com.android.support.test:runner:0.5') {
|
|
|
|
exclude module: 'support-annotations'
|
|
|
|
}
|
|
|
|
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
|
|
|
|
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
|
|
|
|
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:3.6.0'
|
|
|
|
}
|