2023-01-21 18:37:07 +03:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("android")
|
2023-04-30 05:14:49 +03:00
|
|
|
kotlin("plugin.serialization")
|
2023-06-25 05:49:36 +03:00
|
|
|
id("app.cash.sqldelight")
|
2023-01-21 18:37:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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"))
|
|
|
|
}
|
2023-01-21 18:37:07 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-01-23 15:35:58 +03:00
|
|
|
implementation(projects.sourceApi)
|
|
|
|
implementation(projects.domain)
|
|
|
|
implementation(projects.core)
|
2023-02-21 03:02:38 +03:00
|
|
|
|
2023-06-25 05:49:36 +03:00
|
|
|
api(libs.bundles.sqldelight)
|
2023-01-21 18:37:07 +03:00
|
|
|
}
|
2023-04-30 05:14:49 +03:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
"-Xcontext-receivers",
|
|
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|