2023-01-21 15:37:07 +00:00
|
|
|
plugins {
|
2024-04-06 05:07:11 +00:00
|
|
|
id("mihon.library")
|
2023-01-21 15:37:07 +00:00
|
|
|
kotlin("android")
|
2023-04-30 02:14:49 +00:00
|
|
|
kotlin("plugin.serialization")
|
2024-09-03 08:09:12 +00:00
|
|
|
alias(libs.plugins.sqldelight)
|
2023-01-21 15:37:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "tachiyomi.data"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
|
|
|
|
|
|
|
sqldelight {
|
2023-06-25 02:49:36 +00:00
|
|
|
databases {
|
|
|
|
create("Database") {
|
|
|
|
packageName.set("tachiyomi.data")
|
|
|
|
dialect(libs.sqldelight.dialects.sql)
|
|
|
|
schemaOutputDirectory.set(project.file("./src/main/sqldelight"))
|
|
|
|
}
|
2023-01-21 15:37:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-01-23 12:35:58 +00:00
|
|
|
implementation(projects.sourceApi)
|
|
|
|
implementation(projects.domain)
|
2024-01-29 09:11:28 +00:00
|
|
|
implementation(projects.core.common)
|
2023-02-21 00:02:38 +00:00
|
|
|
|
2023-06-25 02:49:36 +00:00
|
|
|
api(libs.bundles.sqldelight)
|
2023-01-21 15:37:07 +00:00
|
|
|
}
|
2023-04-30 02:14:49 +00:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
2024-06-06 21:48:35 +00:00
|
|
|
compilerOptions.freeCompilerArgs.addAll(
|
2023-04-30 02:14:49 +00:00
|
|
|
"-Xcontext-receivers",
|
|
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|