mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-21 20:55:41 +03:00
41 lines
956 B
Text
41 lines
956 B
Text
plugins {
|
|
id("mihon.library")
|
|
kotlin("android")
|
|
kotlin("plugin.serialization")
|
|
alias(libs.plugins.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> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
"-Xcontext-receivers",
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
)
|
|
}
|
|
}
|