ultrasonic-app-subsonic-and.../ultrasonic/build.gradle

137 lines
3.7 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply from: "../gradle_scripts/code_quality.gradle"
android {
compileSdkVersion versions.compileSdk
defaultConfig {
2015-07-26 18:15:07 +02:00
applicationId "org.moire.ultrasonic"
2022-04-11 10:12:52 +02:00
versionCode 103
versionName "3.2.0"
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
2022-03-20 13:12:47 +01:00
resConfigs 'cs', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'pl', 'pt', 'pt-rBR', 'ru', 'zh-rCN', 'zh-rTW'
}
2022-03-19 17:36:46 +01:00
bundle.language.enableSplit = false
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'minify/proguard-main.pro',
'minify/proguard-okhttp.pro',
'minify/proguard-retrofit.pro',
'minify/proguard-jackson.pro',
'minify/proguard-kotlin-reflect.pro',
'minify/proguard-kotlin.pro'
}
debug {
minifyEnabled false
multiDexEnabled true
testCoverageEnabled true
applicationIdSuffix ".debug"
}
}
sourceSets {
main.java.srcDirs += "${projectDir}/src/main/kotlin"
test.java.srcDirs += "${projectDir}/src/test/kotlin"
}
packagingOptions {
resources {
excludes += ['META-INF/LICENSE']
}
}
kotlinOptions {
jvmTarget = "1.8"
}
2021-12-22 13:26:58 +01:00
buildFeatures {
viewBinding true
2021-12-22 13:36:13 +01:00
dataBinding true
2021-12-22 13:26:58 +01:00
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2021-06-20 16:45:34 +02:00
kapt {
arguments {
arg("room.schemaLocation", "$rootDir/ultrasonic/schemas".toString())
2021-06-20 16:45:34 +02:00
}
}
lint {
2022-02-16 19:04:27 +01:00
baseline = file("lint-baseline.xml")
abortOnError true
2022-02-16 19:04:27 +01:00
warningsAsErrors true
disable 'IconMissingDensityFolder', 'VectorPath'
2022-02-16 19:04:27 +01:00
ignore 'MissingTranslation', 'UnusedQuantity', 'MissingQuantity'
warning 'ImpliedQuantity'
}
2021-06-20 16:45:34 +02:00
}
tasks.withType(Test) {
useJUnitPlatform()
}
dependencies {
2018-10-06 14:13:57 +02:00
implementation project(':core:domain')
implementation project(':core:subsonic-api')
api(libs.picasso) {
exclude group: "com.android.support"
}
implementation libs.core
implementation libs.support
implementation libs.design
implementation libs.multidex
implementation libs.roomRuntime
implementation libs.roomKtx
implementation libs.viewModelKtx
implementation libs.constraintLayout
implementation libs.preferences
implementation libs.media
2022-04-03 23:57:50 +02:00
implementation libs.media3exoplayer
implementation libs.media3session
implementation libs.media3okhttp
implementation libs.navigationFragment
implementation libs.navigationUi
implementation libs.navigationFragmentKtx
implementation libs.navigationUiKtx
implementation libs.navigationFeature
implementation libs.kotlinStdlib
implementation libs.kotlinxCoroutines
2022-04-04 21:18:07 +02:00
implementation libs.kotlinxGuava
implementation libs.koinAndroid
implementation libs.okhttpLogging
implementation libs.fastScroll
implementation libs.colorPickerView
implementation libs.rxJava
implementation libs.rxAndroid
implementation libs.multiType
kapt libs.room
testImplementation libs.kotlinReflect
testImplementation libs.junit
testRuntimeOnly libs.junitVintage
testImplementation libs.kotlinJunit
testImplementation libs.kluent
testImplementation libs.mockito
testImplementation libs.mockitoInline
testImplementation libs.mockitoKotlin
testImplementation libs.robolectric
implementation libs.timber
}