diff --git a/README.md b/README.md index 25cf4dc..a86504e 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,11 @@ Gears could be used together or alone. A couple of extensions to convert long operations into `Flow>`. +### :speech_balloon: **[TextValue](textvalue/)** + +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square&label=textvalue-common)][textvalue-common] - An implementation of the TextValue - an abstraction over Android text +- [![Version](https://img.shields.io/maven-central/v/com.redmadrobot.gears/kotlin?style=flat-square&label=textvalue-compose)][textvalue-compose] - A set of handy tools for dealing with TextValue inside `@Composable` functions + ## Why Gears? The goal of this mono-repository is to simplify the creation and publication of libraries. @@ -75,5 +80,8 @@ For major changes, open a [discussion][discussions] first to discuss what you wo [viewmodelevents-flow]: viewmodelevents/viewmodelevents-flow/ [viewmodelevents-livedata]: viewmodelevents/viewmodelevents-livedata/ +[textvalue-common]: textvalue/textvalue-common/ +[textvalue-compose]: textvalue/textvalue-compose/ + [ci]: https://github.com/RedMadRobot/gears-android/actions?query=branch%3Amain++ [discussions]: https://github.com/RedMadRobot/gears-android/discussions diff --git a/textvalue/textvalue-compose/build.gradle.kts b/textvalue/textvalue-compose/build.gradle.kts index 599c59a..ff8efb9 100644 --- a/textvalue/textvalue-compose/build.gradle.kts +++ b/textvalue/textvalue-compose/build.gradle.kts @@ -1,5 +1,6 @@ plugins { convention.library.android + alias(stack.plugins.kotlin.compose) } description = "Compose extensions for TextValue" diff --git a/textvalue/textvalue-compose/src/main/kotlin/StringResources.kt b/textvalue/textvalue-compose/src/main/kotlin/StringResources.kt index 3426299..eadf3d6 100644 --- a/textvalue/textvalue-compose/src/main/kotlin/StringResources.kt +++ b/textvalue/textvalue-compose/src/main/kotlin/StringResources.kt @@ -1,12 +1,10 @@ -package com.redmadrobot.textvalue.compose +package com.redmadrobot.textvalue import android.content.res.Resources import androidx.compose.runtime.Composable import androidx.compose.runtime.ReadOnlyComposable import androidx.compose.ui.platform.LocalConfiguration import androidx.compose.ui.platform.LocalContext -import com.redmadrobot.textvalue.TextValue -import com.redmadrobot.textvalue.getString /** * Unwraps and returns a string for the given [text].