feat(core:presentation): UiText, ObserveAsEvents, DataError -> UiText (REDI-82)

- UiText sealed interface (DynamicString / StringResource) — Compose-free type so the
  UI-agnostic presentation module can hold UiText? in state without depending on Compose.
- Two resolvers: @Composable UiText.asString() (Compose renderer) and
  UiText.asString(context) (Views renderer).
- ObserveAsEvents: lifecycle-aware one-time event collection on Main.immediate.
- DataError.toUiText() covering all displayed cases with else -> unknown; error strings here.
This commit is contained in:
2026-06-10 11:42:38 +02:00
parent 3a155beb3c
commit 709c7d6ff5
6 changed files with 116 additions and 0 deletions

View File

@@ -9,4 +9,8 @@ android {
dependencies {
implementation(project(":core:domain"))
implementation(libs.androidx.lifecycle.runtime.compose)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.kotlinx.coroutines.android)
}