6d69903a56
* Replace java.time APIs with kotlin(x).(date)time kotlinx-datetime explicitly says in its README that it does not cover i18n, so we have to stick with using their toJavaX converters wherever we localise dates and times. Yes, some of these replacements are... questionable. But I wanted to try and maximise the replacement for now. * Bump kotlinx-datetime to 0.8.0 * More kotlin.time/kotlinx-datetime replacements * Remove redundant init block & make attributes val * Replace new use of java.time.Instant
45 lines
1.0 KiB
Kotlin
45 lines
1.0 KiB
Kotlin
plugins {
|
|
alias(mihonx.plugins.android.library)
|
|
alias(mihonx.plugins.spotless)
|
|
|
|
alias(libs.plugins.kotlin.serialization)
|
|
alias(libs.plugins.sqldelight)
|
|
}
|
|
|
|
android {
|
|
namespace = "tachiyomi.data"
|
|
|
|
sqldelight {
|
|
databases {
|
|
create("Database") {
|
|
packageName.set("tachiyomi.data")
|
|
dialect(libs.sqldelight.sqliteDialect338)
|
|
schemaOutputDirectory.set(project.file("./src/main/sqldelight"))
|
|
generateAsync.set(true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
optIn.add("kotlinx.serialization.ExperimentalSerializationApi")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.sourceApi)
|
|
implementation(projects.domain)
|
|
implementation(projects.core.common)
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(libs.kotlinx.serialization.jsonOkio)
|
|
implementation(libs.kotlinx.serialization.protobuf)
|
|
|
|
implementation(libs.injekt)
|
|
|
|
implementation(libs.kotlinx.datetime)
|
|
|
|
api(libs.bundles.sqldelight)
|
|
}
|