Releases: Skeptick/libres
2.0.0-beta03
Changes since 2.0.0-beta02
Breaking changes and migration notes
- Removed the
libresGenerateStringstask.- Since the plugin now generates only string resources, keeping a separate strings generation task is no longer necessary. All resource generation is now handled by
libresGenerateResources. If your build scripts referencelibresGenerateStringsdirectly, switch them tolibresGenerateResources. - This should also resolve task conflict issues with AGP and KSP.
- Since the plugin now generates only string resources, keeping a separate strings generation task is no longer necessary. All resource generation is now handled by
Fixed
-
Fixed Android artifact build.
-
Fixed handling of Kotlin reserved words used as string names or string parameter names.
-
Fixed cases where generated internal property names could conflict with string names or string parameters.
-
Added validation for string parameter names, so invalid parameters are reported during generation instead of producing broken generated code.
2.0.0-beta02
Changes since 2.0.0-alpha03
Breaking changes and migration notes
-
Added support for BCP 47 localization tags. See README for details.
- The plugin configuration parameter for the base locale was renamed from
baseLocaleLanguageCodetobaseLocaleTag.
- The plugin configuration parameter for the base locale was renamed from
-
Changed how the current locale is resolved on Android and iOS.
LibresSettings.languageCodewas replaced withLibresSettings.setLocaleProvider(...).- See README for migration details.
-
Updated supported targets:
- Added support for
tvOS,watchOS,linux,mingw, andwasmWasi. - Extended
jssupport withnodejs. - Extended
wasmJssupport withnodejsandd8. - Removed support for
iosX64andmacosX64.
- Added support for
-
The
libres-composeartifact has been fully removed.
Added
-
Added support for
string-arrayresources. They work similarly to Androidstring-arrayresources. -
Added the
generateInternalResourceClassesplugin configuration parameter. When enabled, generated resource classes are created with theinternalmodifier.
Changed
-
Updated plural rules and added rules for
cv,ie,kok, andsgs. -
Updated toolchain versions:
- Kotlin
2.4.0 - Android Gradle Plugin
9.2.1
- Kotlin
2.0.0-alpha03
- Added support for the
com.android.kotlin.multiplatform.libraryplugin - Added the option to explicitly set the package name for generated resources:
libres {
generatedClassPackageName = "com.example"
}- Updated Kotlin to 2.2.10
2.0.0-alpha02
- Added autogenerated plural rules for all languages
- Removed dependencies on
robovm(Android) andicu4j(JVM) - Removed the ability to manually set plural rules in Apple, JS, and WasmJS targets (
PluralRules::setandPluralRules::get)
2.0.0-alpha01
- Removed image sharing support (see README for details)
- Updated to Gradle 9.0.0 and Kotlin 2.2.0