Skip to content

Conversation

@kikoso
Copy link
Collaborator

@kikoso kikoso commented Sep 16, 2025

The following PR tackles a couple of related things.

  • We have had some intermitent false warnings coming up when a Marker was using a Composable within it, see this issue. This was not consistent, and happened with different versions.
  • The latest Kotlin version, 2.2.20, seems to induce this warning. So probably some new check on the compiler that makes this inference not smart enough to identify a Composable is happening within it. Tagging it with the UiComposable annotation fixes it (note: the two alternatives are UiComposable or VectorComposable, and we probably fall into the former variant).
  • Also: Kotlin 2.2.20 deprecates a few things, so the PR cleans the warnings we are getting.

Fixes: #598

@googlemaps-bot
Copy link
Contributor

Code Coverage

There is no coverage information present for the Files changed

@kikoso kikoso marked this pull request as ready for review September 17, 2025 13:51
@dkhawk dkhawk merged commit eb277e2 into main Sep 17, 2025
10 checks passed
@dkhawk dkhawk deleted the build/upgraded-kotlin-2.2.20-fixed-compose-usage-warning branch September 17, 2025 19:51
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 6.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 6.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive: Calling a Google Map Composable composable function where a UI Composable composable was expected

3 participants