mihon/data/build.gradle.kts

42 lines
951 B
Text
Raw Normal View History

plugins {
id("mihon.library")
id("app.cash.sqldelight")
kotlin("android")
kotlin("plugin.serialization")
}
android {
namespace = "tachiyomi.data"
defaultConfig {
consumerProguardFiles("consumer-rules.pro")
}
sqldelight {
2023-06-25 05:49:36 +03:00
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)
2024-01-29 12:11:28 +03:00
implementation(projects.core.common)
2023-06-25 05:49:36 +03:00
api(libs.bundles.sqldelight)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions.freeCompilerArgs.addAll(
"-Xcontext-receivers",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}
}