diff --git a/CHANGELOG.md b/CHANGELOG.md index bcb0ea3..2a80269 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,22 @@ *No changes* -## [1.0.1] - 2025.09.24 +## [1.0.2] - 2025.10.16 + +- Add default value to formatArgs field in Resource constructor + +## [1.0.1] - 2025.10.15 - Add ability to use arguments with text from resources - Update version of AGP, plugins and libraries - Update publishing logic to Maven Central, because [OSSRH](https://central.sonatype.org/pages/ossrh-eol/) has been shut down +- ⚠️ Breaking changes: new parameter formatArgs in TextValue.Resource constructor without default value ## [1.0.0] - 2024.05.13 - Public release textvalue library and textvalue-compose extensions library -[unreleased]: https://github.com/RedMadRobot/TextValue/compare/1.0.1...main +[unreleased]: https://github.com/RedMadRobot/TextValue/compare/1.0.2...main +[1.0.2]: https://github.com/RedMadRobot/TextValue/compare/1.0.1...1.0.2 [1.0.1]: https://github.com/RedMadRobot/TextValue/compare/1.0.0...1.0.1 [1.0.0]: https://github.com/RedMadRobot/TextValue/compare/d5d1d9...1.0.0 diff --git a/README.md b/README.md index a09977e..3ac5483 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ repositories { dependencies { // Views version - implementation("com.redmadrobot.textvalue:textvalue:1.0.1") + implementation("com.redmadrobot.textvalue:textvalue:1.0.2") // Compose extensions for textvalue - implementation("com.redmadrobot.textvalue:textvalue-compose:1.0.1") + implementation("com.redmadrobot.textvalue:textvalue-compose:1.0.2") } ``` diff --git a/gradle.properties b/gradle.properties index 4bf6496..c458140 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ # Project-wide Gradle settings. group=com.redmadrobot.textvalue -version=1.0.1 +version=1.0.2 # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* diff --git a/textvalue/src/main/kotlin/TextValue.kt b/textvalue/src/main/kotlin/TextValue.kt index fcbfa46..beaefb5 100644 --- a/textvalue/src/main/kotlin/TextValue.kt +++ b/textvalue/src/main/kotlin/TextValue.kt @@ -40,7 +40,7 @@ public sealed interface TextValue : Parcelable { @Parcelize public data class Resource( @StringRes public val resourceId: Int, - public val formatArgs: @RawValue Array + public val formatArgs: @RawValue Array = emptyArray(), ) : TextValue { @Suppress("SpreadOperator") override fun get(resources: Resources): String {