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

Default expressions on optional parameters are not public #513

Closed
bubenheimer opened this issue Jan 28, 2024 · 1 comment · Fixed by #514
Closed

Default expressions on optional parameters are not public #513

bubenheimer opened this issue Jan 28, 2024 · 1 comment · Fixed by #514
Labels
released triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@bubenheimer
Copy link
Contributor

android-maps-compose 4.3.2

The GoogleMap() compose function uses certain default expressions on optional parameters that are not public. This prevents overriding the function in app code in a reasonable manner.

This is what the "API Guidelines for @composable components in Jetpack Compose" have to say on it:

Developers should make sure that default expressions on optional parameters are publicly available and meaningful.

https://github.com/androidx/androidx/blob/androidx-main/compose/docs/compose-component-api-guidelines.md#default-expressions

@bubenheimer bubenheimer added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jan 28, 2024
bubenheimer added a commit to bubenheimer/android-maps-compose that referenced this issue Jan 28, 2024
bubenheimer added a commit to bubenheimer/android-maps-compose that referenced this issue Apr 23, 2024
bubenheimer added a commit to bubenheimer/android-maps-compose that referenced this issue Jun 4, 2024
dkhawk pushed a commit that referenced this issue Jun 4, 2024
…ublic (#514)

* fix: make DefaultMapProperties, DefaultMapUiSettings, and NoPadding public

Fixes #513

* Rename NoPadding to DefaultMapContentPadding
Add documentation for DefaultMapProperties, DefaultMapUiSettings, and DefaultMapContentPadding

---------

Co-authored-by: Uli Bubenheimer <bubenheimer@users.noreply.github.com>
googlemaps-bot pushed a commit that referenced this issue Jun 4, 2024
## [5.0.2](v5.0.1...v5.0.2) (2024-06-04)

### Bug Fixes

* make DefaultMapProperties, DefaultMapUiSettings, and NoPadding public ([#514](#514)) ([0a03820](0a03820)), closes [#513](#513)
@googlemaps-bot
Copy link
Contributor

🎉 This issue has been resolved in version 5.0.2 🎉

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
released triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
2 participants