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 { compilerOptions.freeCompilerArgs.addAll( "-Xexpect-actual-classes", ) } }