Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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*
Expand Down
2 changes: 1 addition & 1 deletion textvalue/src/main/kotlin/TextValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed interface TextValue : Parcelable {
@Parcelize
public data class Resource(
@StringRes public val resourceId: Int,
public val formatArgs: @RawValue Array<out Any>
public val formatArgs: @RawValue Array<out Any> = emptyArray(),
) : TextValue {
@Suppress("SpreadOperator")
override fun get(resources: Resources): String {
Expand Down
Loading