PR: mihonapp/mihon#3349 Co-authored-by: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com> Co-authored-by: Jobobby04 <jobobby04@users.noreply.github.com> (cherry picked from commit b446d2a6b1844f24b2d4912ba8be8b4648549f41) (cherry picked from commit a0ae52671fe2ddab3883b99f437d521446a8539d)
42 lines
970 B
Text
42 lines
970 B
Text
plugins {
|
|
id("mihon.library")
|
|
kotlin("android")
|
|
kotlin("plugin.serialization")
|
|
alias(libs.plugins.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"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
optIn.add("kotlinx.serialization.ExperimentalSerializationApi")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.sourceApi)
|
|
implementation(projects.domain)
|
|
implementation(projects.core.common)
|
|
|
|
implementation(kotlinx.serialization.json)
|
|
implementation(kotlinx.serialization.json.okio)
|
|
implementation(kotlinx.serialization.protobuf)
|
|
|
|
api(libs.bundles.sqldelight)
|
|
}
|