mihon/i18n/build.gradle.kts
renovate[bot] f58a05e918
fix(deps): update moko to v0.24.1 (#933)
* fix(deps): update moko to v0.24.1

* Fix build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-21 02:43:48 +06:00

54 lines
1005 B
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 {
commonMain {
dependencies {
api(libs.moko.core)
}
}
}
}
android {
namespace = "tachiyomi.i18n"
sourceSets {
named("main") {
res.srcDir("src/commonMain/resources")
}
}
lint {
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
}
}
multiplatformResources {
resourcesPackage.set("tachiyomi.i18n")
}
tasks {
val localesConfigTask = project.getLocalesConfigTask()
preBuild {
dependsOn(localesConfigTask)
}
withType<KotlinCompile> {
compilerOptions.freeCompilerArgs.addAll(
"-Xexpect-actual-classes",
)
}
}