From 11a790ec28084a14138ed547220ed4bb52292cb3 Mon Sep 17 00:00:00 2001 From: Yuriy Elistratov Date: Thu, 16 Oct 2025 14:16:26 +0400 Subject: [PATCH 1/3] docs: Update changelog for 1.0.1 version --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcb0ea3..4048d27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,12 @@ *No changes* -## [1.0.1] - 2025.09.24 +## [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 From 805e52884c90edb4ccb2760256a428fcba0d6412 Mon Sep 17 00:00:00 2001 From: Yuriy Elistratov Date: Thu, 16 Oct 2025 14:20:24 +0400 Subject: [PATCH 2/3] fix: Add default value to formatArgs field in Resource constructor --- textvalue/src/main/kotlin/TextValue.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 69b1d8435648e87e5c3f2455a6d9ab3758bdc7da Mon Sep 17 00:00:00 2001 From: Yuriy Elistratov Date: Thu, 16 Oct 2025 14:24:13 +0400 Subject: [PATCH 3/3] version: 1.0.2 --- CHANGELOG.md | 7 ++++++- README.md | 4 ++-- gradle.properties | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4048d27..2a80269 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ *No changes* +## [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 @@ -13,6 +17,7 @@ - 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*