Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop UrlAnnotation and LinkAnnotations from being stripped #3

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

bryanstern
Copy link
Contributor

@bryanstern bryanstern commented Jul 29, 2024

Since the last release, it looks like a few new annotations have been added for linkified text. I bumped this to latest compose beta in order to add support for UrlAnnotation and LinkAnnotation.

@bryanstern bryanstern marked this pull request as ready for review July 29, 2024 22:46
@bryanstern bryanstern changed the title Fix UrlAnnotation and LinkAnnotations from being stripped. Stop UrlAnnotation and LinkAnnotations from being stripped Jul 29, 2024
text.getUrlAnnotations(start = 0, end = text.length).fastForEach {
addUrlAnnotation(it.item, it.start, it.end)
}
text.getLinkAnnotations(start = 0, end = text.length).fastForEach { range ->
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about link annotations. Are they the reason why a beta version of compose is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, thank you!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably have to split the changes and make two releases, one for 1.6.x and one for 1.7.x-beta

@saket saket merged commit 7c2b3d8 into saket:trunk Aug 11, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants