diff --git a/README.md b/README.md index 83d8028f..bf27042c 100755 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ buildscript { } dependencies { - classpath "dev.icerock.moko:resources-generator:0.24.0" + classpath "dev.icerock.moko:resources-generator:0.24.1" } } @@ -82,10 +82,10 @@ project build.gradle apply plugin: "dev.icerock.mobile.multiplatform-resources" dependencies { - commonMainApi("dev.icerock.moko:resources:0.24.0") - commonMainApi("dev.icerock.moko:resources-compose:0.24.0") // for compose multiplatform + commonMainApi("dev.icerock.moko:resources:0.24.1") + commonMainApi("dev.icerock.moko:resources-compose:0.24.1") // for compose multiplatform - commonTestImplementation("dev.icerock.moko:resources-test:0.24.0") + commonTestImplementation("dev.icerock.moko:resources-test:0.24.1") } multiplatformResources { @@ -132,7 +132,7 @@ should [add `export` declarations](https://kotlinlang.org/docs/multiplatform-bui ``` framework { - export("dev.icerock.moko:resources:0.24.0") + export("dev.icerock.moko:resources:0.24.1") export("dev.icerock.moko:graphics:0.9.0") // toUIColor here } ``` diff --git a/gradle/moko.versions.toml b/gradle/moko.versions.toml index 22271f2a..5100d3a2 100644 --- a/gradle/moko.versions.toml +++ b/gradle/moko.versions.toml @@ -1,5 +1,5 @@ [versions] -resourcesVersion = "0.24.0" +resourcesVersion = "0.24.1" [libraries] resources = { module = "dev.icerock.moko:resources", version.ref = "resourcesVersion" } diff --git a/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt b/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt index 89bc16fa..0778a593 100644 --- a/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt +++ b/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/StringExt.kt @@ -63,7 +63,7 @@ internal fun String.convertXmlStringToAndroidLocalization(): String { .replace("\n", "\\n") .let { StringEscapeUtils.escapeXml11(it) } .let { - if (it[0] == '@') { + if (it.getOrNull(0) == '@') { replaceFirst("@", """\@""") } else { it