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-12-27 21:38:40 +01:00
|
|
|
apply plugin: 'org.moallemi.advanced-build-version'
|
2017-07-29 22:31:20 +02:00
|
|
|
apply from: "../gradle_scripts/code_quality.gradle"
|
2015-07-26 17:03:28 +02:00
|
|
|
|
2017-12-27 21:38:40 +01:00
|
|
|
advancedVersioning {
|
|
|
|
nameOptions {
|
|
|
|
versionMajor 2
|
2017-12-27 22:01:10 +01:00
|
|
|
versionMinor 2
|
2017-12-27 21:38:40 +01:00
|
|
|
versionPatch 0
|
|
|
|
}
|
|
|
|
codeOptions {
|
|
|
|
versionCodeType org.moallemi.gradle.internal.VersionCodeType.AUTO_INCREMENT_ONE_STEP
|
|
|
|
}
|
|
|
|
outputOptions {
|
|
|
|
renameOutput true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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"
|
2017-12-27 21:38:40 +01:00
|
|
|
versionCode advancedVersioning.versionCode
|
|
|
|
versionName advancedVersioning.versionName
|
|
|
|
|
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 {
|
2017-12-21 10:12:10 +01:00
|
|
|
implementation project(':menudrawer')
|
|
|
|
implementation project(':pulltorefresh')
|
|
|
|
implementation project(':library')
|
|
|
|
implementation project(':subsonic-api')
|
2017-02-04 23:18:02 +01:00
|
|
|
|
2017-12-21 10:12:10 +01:00
|
|
|
implementation androidSupport.support
|
|
|
|
implementation androidSupport.design
|
2017-03-02 06:37:51 +01:00
|
|
|
|
2017-12-21 10:12:10 +01:00
|
|
|
implementation other.kotlinStdlib
|
2017-03-02 06:37:51 +01:00
|
|
|
|
2017-12-21 10:12:10 +01:00
|
|
|
testImplementation other.kotlinReflect
|
|
|
|
testImplementation testing.junit
|
|
|
|
testImplementation testing.kotlinJunit
|
|
|
|
testImplementation testing.mockitoKotlin
|
|
|
|
testImplementation 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
|
|
|
|
}
|