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