57 lines
1.4 KiB
Groovy
57 lines
1.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-parcelize'
|
|
|
|
android {
|
|
compileSdkVersion sdkCompileVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion sdkMinVersion
|
|
targetSdkVersion sdkTargetVersion
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
}
|
|
|
|
sourceSets {
|
|
test.java.srcDirs += "src/test-common/java"
|
|
}
|
|
namespace "eu.qsfera.android.domain"
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.androidx.appcompat
|
|
|
|
// Kotlin
|
|
implementation libs.kotlin.stdlib
|
|
implementation libs.kotlinx.coroutines.core
|
|
|
|
// Dependencies for unit tests
|
|
testImplementation project(":qsferaTestUtil")
|
|
testImplementation libs.androidx.arch.core.testing
|
|
testImplementation libs.junit4
|
|
testImplementation libs.kotlinx.coroutines.test
|
|
testImplementation libs.mockk
|
|
|
|
// Detekt
|
|
detektPlugins libs.detekt.formatting
|
|
detektPlugins libs.detekt.libraries
|
|
}
|
|
|
|
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {
|
|
jvmTarget = "17"
|
|
}
|