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'
|
2017-08-09 21:56:20 +02:00
|
|
|
apply plugin: 'jacoco-android'
|
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
|
|
|
|
buildToolsVersion versions.buildTools
|
2015-07-26 17:03:28 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2015-07-26 18:15:07 +02:00
|
|
|
applicationId "org.moire.ultrasonic"
|
2017-01-14 21:44:28 +01:00
|
|
|
minSdkVersion versions.minSdk
|
|
|
|
targetSdkVersion versions.targetSdk
|
2017-08-02 22:21:44 +02:00
|
|
|
|
|
|
|
resConfigs "en", "es", "fr", "hu", "pt", "pt-rBR"
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
|
|
}
|
2017-08-09 21:56:20 +02:00
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
testCoverageEnabled true
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':menudrawer')
|
|
|
|
compile project(':pulltorefresh')
|
|
|
|
compile project(':library')
|
2017-03-02 06:37:51 +01:00
|
|
|
compile project(':subsonic-api')
|
2017-02-04 23:18:02 +01:00
|
|
|
|
|
|
|
compile androidSupport.support
|
|
|
|
compile androidSupport.design
|
2017-03-02 06:37:51 +01:00
|
|
|
|
2017-04-01 18:40:14 +02:00
|
|
|
compile other.kotlinStdlib
|
2017-03-02 06:37:51 +01:00
|
|
|
|
2017-08-16 20:59:49 +02:00
|
|
|
testCompile other.kotlinReflect
|
2017-03-02 06:37:51 +01:00
|
|
|
testCompile testing.junit
|
2017-08-12 20:17:32 +02:00
|
|
|
testCompile testing.kotlinJunit
|
|
|
|
testCompile testing.mockitoKotlin
|
|
|
|
testCompile testing.kluent
|
2015-07-26 17:03:28 +02:00
|
|
|
}
|
2017-08-09 21:56:20 +02:00
|
|
|
|
|
|
|
// Excluding all non-kotlin classes
|
|
|
|
ext {
|
|
|
|
jacocoExclude = [
|
|
|
|
'**/activity/**',
|
|
|
|
'**/audiofx/**',
|
|
|
|
'**/domain/**',
|
|
|
|
'**/fragment/**',
|
|
|
|
'**/provider/**',
|
|
|
|
'**/receiver/**',
|
|
|
|
'**/service/**',
|
|
|
|
'**/Test/**',
|
|
|
|
'**/util/**',
|
|
|
|
'**/view/**',
|
|
|
|
'**/R$*.class',
|
|
|
|
'**/R.class',
|
|
|
|
'**/BuildConfig.class'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
jacocoAndroidUnitTestReport {
|
|
|
|
excludes += jacocoExclude
|
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
testDebugUnitTest.finalizedBy jacocoTestDebugUnitTestReport
|
|
|
|
}
|