Skip to content

Implement AnnotatedStringResolver #80

Description

@MessiasLima

Description

Add AnnotatedStringResolver for androidx.compose.ui.text.AnnotatedString in dev.appoutlet.some.android.resolver.compose.

  • Scope and constraints

    • AnnotatedStringResolver — uses AnnotatedString(text) with random string content; optionally uses AnnotatedString.Builder with a small set of random SpanStyle annotations. Constructor receives random: Random only.
    • canResolve() uses exact type matching: type == typeOf<AnnotatedString>().
    • Includes JVM unit tests verifying type output and canResolve behavior.
    • Depends on androidx.compose.ui:ui (transitively provides ui-text).
  • References

Scope

In scope: 1 resolver class + 1 test class.
Out of scope: TextStyle (depends on app design system), registering in AndroidTypeResolverProvider (ticket #14).

Acceptance criteria

  • AnnotatedStringResolver.canResolve(typeOf<AnnotatedString>()) returns true
  • AnnotatedStringResolver generates non-blank AnnotatedStrings
  • canResolve returns false for non-matching types
  • Tests compile against android.jar with androidx.compose.ui:ui on classpath and run as JVM unit tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions