mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-09 15:32:53 +01:00
c23420a83a
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
55 lines
1.3 KiB
Groovy
55 lines
1.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'jacoco-android'
|
|
apply from: '../gradle_scripts/code_quality.gradle'
|
|
|
|
android {
|
|
compileSdkVersion(versions.compileSdk)
|
|
|
|
defaultConfig {
|
|
minSdkVersion(versions.minSdk)
|
|
targetSdkVersion(versions.targetSdk)
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
test.java.srcDirs += 'src/test/kotlin'
|
|
test.java.srcDirs += "${projectDir}/src/integrationTest/kotlin"
|
|
test.resources.srcDirs += "${projectDir}/src/integrationTest/resources"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api project(':domain')
|
|
api project(':subsonic-api')
|
|
api other.kotlinStdlib
|
|
api(other.picasso) {
|
|
exclude group: "com.android.support"
|
|
}
|
|
|
|
testImplementation testing.junit
|
|
testImplementation testing.kotlinJunit
|
|
testImplementation testing.mockito
|
|
testImplementation testing.mockitoInline
|
|
testImplementation testing.mockitoKotlin
|
|
testImplementation testing.kluent
|
|
testImplementation testing.robolectric
|
|
}
|
|
|
|
jacoco {
|
|
toolVersion(versions.jacoco)
|
|
}
|
|
|
|
ext {
|
|
jacocoExclude = []
|
|
}
|
|
|
|
jacocoAndroidUnitTestReport {
|
|
excludes += jacocoExclude
|
|
}
|
|
|
|
afterEvaluate {
|
|
testDebugUnitTest.finalizedBy jacocoTestDebugUnitTestReport
|
|
} |