48 lines
1.4 KiB
Kotlin
48 lines
1.4 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
alias(libs.plugins.kotlinAndroid)
|
|
alias(libs.plugins.kotlinKsp)
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
android {
|
|
namespace = "ltd.evilcorp.core"
|
|
compileSdk = libs.versions.sdk.target.get().toInt()
|
|
defaultConfig {
|
|
minSdk = libs.versions.sdk.min.get().toInt()
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
ksp {
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
}
|
|
}
|
|
buildTypes {
|
|
getByName("release") {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
|
|
}
|
|
}
|
|
sourceSets["androidTest"].assets.srcDir("$projectDir/schemas")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.javax.inject)
|
|
api(libs.kotlinx.coroutines.core)
|
|
api(libs.androidx.room.runtime)
|
|
api(libs.androidx.room.ktx)
|
|
ksp(libs.androidx.room.compiler)
|
|
|
|
testImplementation(kotlin("test"))
|
|
|
|
androidTestImplementation(kotlin("test"))
|
|
androidTestImplementation(libs.test.runner)
|
|
androidTestImplementation(libs.test.junit.ext)
|
|
androidTestImplementation(libs.androidx.room.testing)
|
|
androidTestImplementation(libs.kotlinx.coroutines.test) {
|
|
// Conflicts with a lot of things due to having embedded "byte buddy" instead of depending on it.
|
|
exclude("org.jetbrains.kotlinx", "kotlinx-coroutines-debug")
|
|
}
|
|
}
|