
* Remove detekt (mihonapp/mihon#1130) Annoying. More annoying in this project. (cherry picked from commit 777ae2461e1eb277a3aa0c998ff69e4f100387a1) * Add spotless (with ktlint) (mihonapp/mihon#1136) (cherry picked from commit 5ae8095ef1ed2ae9f98486f9148e933c77a28692) * Address spotless lint errors (mihonapp/mihon#1138) * Add spotless (with ktlint) * Run spotlessApply * screaming case screaming case screaming case * Update PagerViewerAdapter.kt * Update ReaderTransitionView.kt (cherry picked from commit d6252ab7703d52ecf9f43de3ee36fd63e665a31f) * Generate locales_config.xml in build dir (cherry picked from commit ac41bffdc97b4cfed923de6b9e8e01cccf3eb6eb) * Address more spotless lint errors in SY * some more missed * more missed * still missing, not sure while it won't report error when running locally * one more * more * more * correct comment --------- Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
import mihon.buildlogic.generatedBuildDir
|
|
import mihon.buildlogic.tasks.getLocalesConfigTask
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("mihon.library")
|
|
id("dev.icerock.mobile.multiplatform-resources")
|
|
kotlin("multiplatform")
|
|
id("com.github.ben-manes.versions")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
api(libs.moko.core)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
val generatedAndroidResourceDir = generatedBuildDir.resolve("android/res")
|
|
|
|
android {
|
|
namespace = "tachiyomi.i18n"
|
|
|
|
sourceSets {
|
|
val main by getting
|
|
main.res.srcDirs(
|
|
"src/commonMain/resources",
|
|
generatedAndroidResourceDir,
|
|
)
|
|
}
|
|
|
|
lint {
|
|
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
|
|
}
|
|
}
|
|
|
|
multiplatformResources {
|
|
resourcesPackage.set("tachiyomi.i18n")
|
|
}
|
|
|
|
tasks {
|
|
val localesConfigTask = project.getLocalesConfigTask(generatedAndroidResourceDir)
|
|
preBuild {
|
|
dependsOn(localesConfigTask)
|
|
}
|
|
|
|
withType<KotlinCompile> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
"-Xexpect-actual-classes",
|
|
)
|
|
}
|
|
}
|