mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 18:38:23 +01:00
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>
This commit is contained in:
parent
cf02119da5
commit
f58a05e918
@ -8,7 +8,7 @@ private val emptyResourcesElement = "<resources>\\s*</resources>|<resources/>".t
|
|||||||
|
|
||||||
fun Project.getLocalesConfigTask(): TaskProvider<Task> {
|
fun Project.getLocalesConfigTask(): TaskProvider<Task> {
|
||||||
return tasks.register("generateLocalesConfig") {
|
return tasks.register("generateLocalesConfig") {
|
||||||
val locales = fileTree("$projectDir/src/commonMain/resources/MR/")
|
val locales = fileTree("$projectDir/src/commonMain/moko-resources/")
|
||||||
.matching { include("**/strings.xml") }
|
.matching { include("**/strings.xml") }
|
||||||
.filterNot { it.readText().contains(emptyResourcesElement) }
|
.filterNot { it.readText().contains(emptyResourcesElement) }
|
||||||
.map {
|
.map {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[versions]
|
[versions]
|
||||||
aboutlib_version = "11.2.1"
|
aboutlib_version = "11.2.1"
|
||||||
leakcanary = "2.14"
|
leakcanary = "2.14"
|
||||||
moko = "0.23.0"
|
moko = "0.24.1"
|
||||||
okhttp_version = "5.0.0-alpha.14"
|
okhttp_version = "5.0.0-alpha.14"
|
||||||
richtext = "0.20.0"
|
richtext = "0.20.0"
|
||||||
shizuku_version = "12.2.0"
|
shizuku_version = "12.2.0"
|
||||||
|
@ -13,15 +13,11 @@ kotlin {
|
|||||||
applyDefaultHierarchyTemplate()
|
applyDefaultHierarchyTemplate()
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val commonMain by getting {
|
commonMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(libs.moko.core)
|
api(libs.moko.core)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
androidMain {
|
|
||||||
dependsOn(commonMain) // https://github.com/icerockdev/moko-resources/issues/562
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +36,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
multiplatformResources {
|
multiplatformResources {
|
||||||
multiplatformResourcesPackage = "tachiyomi.i18n"
|
resourcesPackage.set("tachiyomi.i18n")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user