tachiyomi/data/build.gradle.kts

42 lines
961 B
Plaintext
Raw Permalink Normal View History

plugins {
id("com.android.library")
kotlin("android")
kotlin("plugin.serialization")
2023-06-25 04:49:36 +02:00
id("app.cash.sqldelight")
}
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"))
}
}
}
}
dependencies {
implementation(project(":source-api"))
implementation(project(":domain"))
implementation(project(":core"))
2023-06-25 04:49:36 +02:00
api(libs.bundles.sqldelight)
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xcontext-receivers",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}
}