2015-07-26 17:03:28 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2017-03-02 06:37:51 +01:00
|
|
|
apply plugin: 'kotlin-android'
|
2018-09-11 22:21:55 +02:00
|
|
|
apply plugin: 'jacoco'
|
2017-07-29 22:31:20 +02:00
|
|
|
apply from: "../gradle_scripts/code_quality.gradle"
|
2015-07-26 17:03:28 +02:00
|
|
|
|
|
|
|
android {
|
2017-01-14 21:44:28 +01:00
|
|
|
compileSdkVersion versions.compileSdk
|
2015-07-26 17:03:28 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2015-07-26 18:15:07 +02:00
|
|
|
applicationId "org.moire.ultrasonic"
|
2020-08-11 10:20:28 +02:00
|
|
|
versionCode 74
|
|
|
|
versionName "2.9.0"
|
2018-01-29 17:48:34 +01:00
|
|
|
|
2017-01-14 21:44:28 +01:00
|
|
|
minSdkVersion versions.minSdk
|
|
|
|
targetSdkVersion versions.targetSdk
|
2017-08-02 22:21:44 +02:00
|
|
|
|
2020-02-07 10:54:21 +01:00
|
|
|
resConfigs "de", "en", "es", "fr", "hu", "nl", "pl", "pt", "pt-rBR"
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2018-03-18 18:09:42 +01:00
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
2018-03-21 22:10:37 +01:00
|
|
|
'minify/proguard-main.pro',
|
2018-03-18 18:09:42 +01:00
|
|
|
'minify/proguard-okhttp.pro',
|
|
|
|
'minify/proguard-retrofit.pro',
|
2018-03-21 22:10:37 +01:00
|
|
|
'minify/proguard-jackson.pro',
|
|
|
|
'minify/proguard-kotlin-reflect.pro',
|
|
|
|
'minify/proguard-kotlin.pro'
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
2017-08-09 21:56:20 +02:00
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
2020-06-05 17:09:33 +02:00
|
|
|
multiDexEnabled true
|
2017-08-09 21:56:20 +02:00
|
|
|
testCoverageEnabled true
|
2018-03-21 22:10:37 +01:00
|
|
|
applicationIdSuffix ".debug"
|
2017-08-09 21:56:20 +02:00
|
|
|
}
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
2017-03-02 06:37:51 +01:00
|
|
|
sourceSets {
|
2017-08-09 21:56:20 +02:00
|
|
|
main.java.srcDirs += "${projectDir}/src/main/kotlin"
|
|
|
|
test.java.srcDirs += "${projectDir}/src/test/kotlin"
|
2017-03-02 06:37:51 +01:00
|
|
|
}
|
2017-07-24 22:41:22 +02:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
}
|
2017-07-31 22:44:51 +02:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
baselineFile file("lint-baseline.xml")
|
|
|
|
abortOnError true
|
|
|
|
}
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
|
|
|
|
2018-10-06 14:54:28 +02:00
|
|
|
tasks.withType(Test) {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
2015-07-26 17:03:28 +02:00
|
|
|
dependencies {
|
2018-10-06 14:20:33 +02:00
|
|
|
implementation project(':core:menudrawer')
|
2018-10-06 14:29:54 +02:00
|
|
|
implementation project(':core:pulltorefresh')
|
2018-10-06 14:15:27 +02:00
|
|
|
implementation project(':core:library')
|
2018-10-06 14:13:57 +02:00
|
|
|
implementation project(':core:domain')
|
2018-10-06 14:33:36 +02:00
|
|
|
implementation project(':core:subsonic-api')
|
2018-10-06 14:32:02 +02:00
|
|
|
implementation project(':core:subsonic-api-image-loader')
|
2018-10-06 14:09:21 +02:00
|
|
|
implementation project(':core:cache')
|
2017-02-04 23:18:02 +01:00
|
|
|
|
2017-12-21 10:12:10 +01:00
|
|
|
implementation androidSupport.support
|
|
|
|
implementation androidSupport.design
|
2020-06-05 17:09:33 +02:00
|
|
|
implementation androidSupport.multidex
|
2017-03-02 06:37:51 +01:00
|
|
|
|
2017-12-21 10:12:10 +01:00
|
|
|
implementation other.kotlinStdlib
|
2018-06-23 22:18:08 +02:00
|
|
|
implementation other.koinAndroid
|
2018-08-03 22:08:30 +02:00
|
|
|
implementation other.koinJava
|
2017-03-02 06:37:51 +01:00
|
|
|
|
2017-12-21 10:12:10 +01:00
|
|
|
testImplementation other.kotlinReflect
|
|
|
|
testImplementation testing.junit
|
2018-10-06 14:54:28 +02:00
|
|
|
testRuntimeOnly testing.junitVintage
|
2017-12-21 10:12:10 +01:00
|
|
|
testImplementation testing.kotlinJunit
|
|
|
|
testImplementation testing.mockitoKotlin
|
|
|
|
testImplementation testing.kluent
|
2020-06-05 17:09:33 +02:00
|
|
|
implementation other.dexter
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
2017-08-09 21:56:20 +02:00
|
|
|
|
2018-10-07 20:45:20 +02:00
|
|
|
jacoco {
|
|
|
|
toolVersion(versions.jacoco)
|
|
|
|
}
|
|
|
|
|
2018-06-23 22:49:46 +02:00
|
|
|
// Excluding all java classes and stuff that should not be covered
|
2017-08-09 21:56:20 +02:00
|
|
|
ext {
|
|
|
|
jacocoExclude = [
|
|
|
|
'**/activity/**',
|
|
|
|
'**/audiofx/**',
|
|
|
|
'**/fragment/**',
|
|
|
|
'**/provider/**',
|
|
|
|
'**/receiver/**',
|
|
|
|
'**/service/**',
|
|
|
|
'**/Test/**',
|
|
|
|
'**/util/**',
|
|
|
|
'**/view/**',
|
|
|
|
'**/R$*.class',
|
|
|
|
'**/R.class',
|
2018-06-23 22:49:46 +02:00
|
|
|
'**/BuildConfig.class',
|
|
|
|
'**/di/**'
|
2017-08-09 21:56:20 +02:00
|
|
|
]
|
|
|
|
}
|
2018-09-11 22:21:55 +02:00
|
|
|
|
|
|
|
jacoco {
|
|
|
|
toolVersion(versions.jacoco)
|
2017-08-09 21:56:20 +02:00
|
|
|
}
|
|
|
|
|
2018-09-11 22:21:55 +02:00
|
|
|
tasks.withType(Test) {
|
|
|
|
jacoco.includeNoLocationClasses = true
|
2017-08-09 21:56:20 +02:00
|
|
|
}
|