chore(deps): bump deps to take advantage of new functionality (#4658)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-02-26 07:26:50 -06:00 committed by GitHub
parent 46b32f1cce
commit 145cde9393
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 230 additions and 237 deletions

View file

@ -25,7 +25,7 @@ fun getString(stringResource: StringResource): String = runBlocking { composeGet
/** Retrieves a formatted string from the [StringResource] in a blocking manner. */
fun getString(stringResource: StringResource, vararg formatArgs: Any): String = runBlocking {
getStringSuspend(stringResource, *formatArgs)
composeGetString(stringResource, *formatArgs)
}
/** Retrieves a string from the [StringResource] in a suspending manner. */
@ -37,7 +37,6 @@ suspend fun getStringSuspend(stringResource: StringResource, vararg formatArgs:
formatArgs
.map { arg ->
if (arg is StringResource) {
// Resolve nested StringResources recursively
getStringSuspend(arg)
} else {
arg
@ -45,9 +44,6 @@ suspend fun getStringSuspend(stringResource: StringResource, vararg formatArgs:
}
.toTypedArray()
// Compose Multiplatform doesn't fully support complex formatting like %.2f
// Fetch the raw string and format it using standard Java String.format.
val rawString = composeGetString(stringResource)
@Suppress("SpreadOperator")
return String.format(java.util.Locale.getDefault(), rawString, *resolvedArgs)
return composeGetString(stringResource, *resolvedArgs)
}