mirror of
https://github.com/ultrasonic/ultrasonic
synced 2024-12-14 01:35:06 +01:00
2b484ad667
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
87 lines
2.0 KiB
Groovy
87 lines
2.0 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'jacoco-android'
|
|
apply from: "../gradle_scripts/code_quality.gradle"
|
|
|
|
android {
|
|
compileSdkVersion versions.compileSdk
|
|
buildToolsVersion versions.buildTools
|
|
|
|
defaultConfig {
|
|
applicationId "org.moire.ultrasonic"
|
|
minSdkVersion versions.minSdk
|
|
targetSdkVersion versions.targetSdk
|
|
|
|
resConfigs "en", "es", "fr", "hu", "pt", "pt-rBR"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
testCoverageEnabled true
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += "${projectDir}/src/main/kotlin"
|
|
test.java.srcDirs += "${projectDir}/src/test/kotlin"
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE'
|
|
}
|
|
|
|
lintOptions {
|
|
baselineFile file("lint-baseline.xml")
|
|
abortOnError true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':menudrawer')
|
|
compile project(':pulltorefresh')
|
|
compile project(':library')
|
|
compile project(':subsonic-api')
|
|
|
|
compile androidSupport.support
|
|
compile androidSupport.design
|
|
|
|
compile other.kotlinStdlib
|
|
|
|
testCompile other.kotlinReflect
|
|
testCompile testing.junit
|
|
testCompile testing.kotlinJunit
|
|
testCompile testing.mockitoKotlin
|
|
testCompile testing.kluent
|
|
}
|
|
|
|
// 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
|
|
}
|