Aghajari / AnnotatedText

A Jetpack Compose library to fully convert Android's Spanned into AnnotatedString
Apache License 2.0
60 stars 4 forks source link

Trying to use SpanMappers creates error in Kotlin 2.0.0 #8

Open alexispurslane opened 1 month ago

alexispurslane commented 1 month ago

Here's my code, essentially pulled straight from the README:

annotatedString = spanned.asAnnotatedString(
    spanMappers = mapOf(
        QuoteSpan::class to {
            color = Color.Gray
            fontStyle = FontStyle.Italic
        }
    ),
    linkColor = linkColor
)

Here's the error I get:

org.jetbrains.kotlin.util.FileAnalysisException: While analysing /var/home/alexispurslane/Development/bloc/app/src/main/java/io/github/alexispurslane/bloc/ui/composables/misc/MessageComposables.kt:637:35: java.lang.IllegalArgumentException: No type for StarProjection

I'm not sure how to fix this, would you happen to know what's going on?