Readrops/db/build.gradle.kts

66 lines
1.4 KiB
Plaintext

plugins {
id("com.android.library")
kotlin("android")
id("com.google.devtools.ksp")
}
android {
namespace = "com.readrops.db"
buildTypes {
debug {
enableUnitTestCoverage = true
enableAndroidTestCoverage = true
}
create("beta") {
initWith(getByName("release"))
signingConfig = signingConfigs.getByName("debug")
}
}
defaultConfig {
consumerProguardFiles("consumer-rules.pro")
}
sourceSets {
getByName("androidTest") {
assets.srcDirs("$projectDir/schemas")
}
}
lint {
abortOnError = false
}
}
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
arg("room.incremental", "true")
arg("room.generateKotlin", "true")
}
dependencies {
coreLibraryDesugaring(libs.jdk.desugar)
implementation(libs.corektx)
implementation(libs.appcompat)
testImplementation(libs.junit4)
androidTestImplementation(libs.bundles.test)
implementation(libs.bundles.room)
ksp(libs.room.compiler)
androidTestImplementation(libs.room.testing)
implementation(libs.bundles.paging)
implementation(platform(libs.koin.bom))
implementation(libs.bundles.koin)
androidTestImplementation(libs.bundles.kointest)
implementation(libs.bundles.coroutines)
androidTestImplementation(libs.coroutines.test)
}