Skip to content

Implement AnnotatedStringResolver #80

Closed

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

Activity

  1. added this to the next milestone on Jul 1, 2026
  2. moved this from Ready to In progress in Someon Jul 6, 2026
  3. linked a pull request that will close this issuefeat: annotated string resolver #100on Jul 6, 2026
  4. moved this from In progress to In review in Someon Jul 6, 2026
  5. moved this from In review to Done in Someon Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions