mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-06 04:05:09 +01:00
8d00ff1b40
(cherry picked from commit 70bbede29e0f995436d86f50ab14ace837839a6c)
42 lines
980 B
Plaintext
42 lines
980 B
Plaintext
plugins {
|
|
id("com.android.library")
|
|
kotlin("android")
|
|
kotlin("plugin.serialization")
|
|
id("com.squareup.sqldelight")
|
|
}
|
|
|
|
android {
|
|
namespace = "tachiyomi.data"
|
|
|
|
defaultConfig {
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
}
|
|
|
|
sqldelight {
|
|
database("Database") {
|
|
packageName = "tachiyomi.data"
|
|
dialect = "sqlite:3.24"
|
|
schemaOutputDirectory = project.file("./src/main/sqldelight")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":source-api"))
|
|
implementation(project(":domain"))
|
|
implementation(project(":core"))
|
|
|
|
api(libs.sqldelight.android.driver)
|
|
api(libs.sqldelight.coroutines)
|
|
api(libs.sqldelight.android.paging)
|
|
}
|
|
|
|
tasks {
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xcontext-receivers",
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
)
|
|
}
|
|
}
|