2023-01-21 10:37:07 -05:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("android")
|
2023-04-29 22:14:49 -04:00
|
|
|
kotlin("plugin.serialization")
|
2023-06-24 22:49:36 -04:00
|
|
|
id("app.cash.sqldelight")
|
2023-01-21 10:37:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "tachiyomi.data"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
|
|
|
|
|
|
|
sqldelight {
|
2023-06-24 22:49:36 -04:00
|
|
|
databases {
|
|
|
|
create("Database") {
|
|
|
|
packageName.set("tachiyomi.data")
|
|
|
|
dialect(libs.sqldelight.dialects.sql)
|
|
|
|
schemaOutputDirectory.set(project.file("./src/main/sqldelight"))
|
|
|
|
}
|
2023-01-21 10:37:07 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":source-api"))
|
2023-01-22 10:12:29 -05:00
|
|
|
implementation(project(":domain"))
|
2023-01-22 11:44:39 -05:00
|
|
|
implementation(project(":core"))
|
2023-02-20 19:02:38 -05:00
|
|
|
|
2023-06-24 22:49:36 -04:00
|
|
|
api(libs.bundles.sqldelight)
|
2023-01-21 10:37:07 -05:00
|
|
|
}
|
2023-04-29 22:14:49 -04:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
"-Xcontext-receivers",
|
|
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|