mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-22 21:02:16 +03:00
3eb3f01646
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
plugins {
|
|
id("mihon.library")
|
|
id("app.cash.sqldelight")
|
|
kotlin("android")
|
|
kotlin("plugin.serialization")
|
|
}
|
|
|
|
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"))
|
|
srcDirs.from(project.file("./src/main/sqldelight"))
|
|
}
|
|
create("AnimeDatabase") {
|
|
packageName.set("tachiyomi.mi.data")
|
|
dialect(libs.sqldelight.dialects.sql)
|
|
schemaOutputDirectory.set(project.file("./src/main/sqldelightanime"))
|
|
srcDirs.from(project.file("./src/main/sqldelightanime"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.sourceApi)
|
|
implementation(projects.domain)
|
|
implementation(projects.core.common)
|
|
|
|
api(libs.bundles.sqldelight)
|
|
}
|
|
|
|
tasks {
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
listOf(
|
|
"-Xcontext-receivers",
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
),
|
|
)
|
|
}
|
|
}
|