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-01-21 18:37:07 +03:00
|
|
|
id("com.squareup.sqldelight")
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "tachiyomi.data"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
|
|
|
|
|
|
|
sqldelight {
|
|
|
|
database("Database") {
|
|
|
|
packageName = "tachiyomi.data"
|
|
|
|
dialect = "sqlite:3.24"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":source-api"))
|
2023-01-22 18:12:29 +03:00
|
|
|
implementation(project(":domain"))
|
2023-01-22 19:44:39 +03:00
|
|
|
implementation(project(":core"))
|
2023-02-21 03:02:38 +03:00
|
|
|
|
2023-01-21 18:37:07 +03:00
|
|
|
api(libs.sqldelight.android.driver)
|
|
|
|
api(libs.sqldelight.coroutines)
|
|
|
|
api(libs.sqldelight.android.paging)
|
|
|
|
}
|
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",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|