mihon/data/build.gradle.kts
2024-01-29 15:20:21 +06:00

41 lines
958 B
Text

plugins {
id("com.android.library")
kotlin("android")
kotlin("plugin.serialization")
id("app.cash.sqldelight")
}
android {
namespace = "tachiyomi.data"
defaultConfig {
consumerProguardFiles("consumer-rules.pro")
}
sqldelight {
databases {
create("Database") {
packageName.set("tachiyomi.data")
dialect(libs.sqldelight.dialects.sql)
schemaOutputDirectory.set(project.file("./src/main/sqldelight"))
}
}
}
}
dependencies {
implementation(projects.sourceApi)
implementation(projects.domain)
implementation(projects.core.common)
api(libs.bundles.sqldelight)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xcontext-receivers",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}
}