mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 22:42:49 +01:00
46003ec251
* chore(deps): update kotlin and compose compiler to v2 * Update .gitignore * Fix build --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
import mihon.buildlogic.tasks.getLocalesConfigTask
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("mihon.library")
|
|
id("dev.icerock.mobile.multiplatform-resources")
|
|
kotlin("multiplatform")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(libs.moko.core)
|
|
}
|
|
}
|
|
|
|
androidMain {
|
|
dependsOn(commonMain) // https://github.com/icerockdev/moko-resources/issues/562
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "tachiyomi.i18n"
|
|
|
|
sourceSets {
|
|
named("main") {
|
|
res.srcDir("src/commonMain/resources")
|
|
}
|
|
}
|
|
|
|
lint {
|
|
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
|
|
}
|
|
}
|
|
|
|
multiplatformResources {
|
|
multiplatformResourcesPackage = "tachiyomi.i18n"
|
|
}
|
|
|
|
tasks {
|
|
val localesConfigTask = project.getLocalesConfigTask()
|
|
preBuild {
|
|
dependsOn(localesConfigTask)
|
|
}
|
|
|
|
withType<KotlinCompile> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
"-Xexpect-actual-classes",
|
|
)
|
|
}
|
|
}
|