mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 06:22:49 +01:00
42 lines
961 B
Plaintext
42 lines
961 B
Plaintext
plugins {
|
|
id("com.android.library")
|
|
kotlin("android")
|
|
kotlin("plugin.serialization")
|
|
id("app.cash.sqldelight")
|
|
}
|
|
|
|
android {
|
|
namespace = "tachiyomi.data"
|
|
|
|
defaultConfig {
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
sqldelight {
|
|
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"))
|
|
|
|
api(libs.bundles.sqldelight)
|
|
}
|
|
|
|
tasks {
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xcontext-receivers",
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
)
|
|
}
|
|
}
|