-
Notifications
You must be signed in to change notification settings - Fork 140
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
[deps] Bump gl-native to v10.0.0-beta.17, common to v10.0.2, minSdkVersion to 21, and address breaking changes. #176
Conversation
* | ||
* Observable will hold a strong reference to an Observer instance, therefore, | ||
* in order to stop receiving notifications, caller must call unsubscribe with an | ||
* Observer instance used for an initial subscription. | ||
* | ||
* @param observer an Observer | ||
*/ | ||
fun ObservableInterface.subscribeMapLoadingFinished(observer: Observer) = | ||
subscribe(observer, listOf(MapEvents.MAP_LOADING_FINISHED)) | ||
fun ObservableInterface.subscribeMapLoaded(observer: Observer) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit but
do we have an example somewhere of how to use that extension?
I think may be reasonable adding in some example activity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have one example in DebugModeActivity, but it doesn't cover all the events. We should make a new example for both the listeners and observer approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth creating a ticket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ticketed at #189
f8d626c
to
dae7b6e
Compare
dae7b6e
to
0b87915
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pengdev tremendous effort! great job!
please apply correct labels (like breaking change) and update description with describing breaking changes (like min sdk version, setCamera, event API)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job 👍
Verified that the style-test bot is green, merging to main. |
PRs must be submitted under the terms of our Contributor License Agreement CLA.
Fixes: < Link to related issues that will be fixed by this pull request, if they exist >
Change logs:
Bump minSdkVersion of the SDK is bumped to 21, and bumped okhttp dependency to v4.9.0.
Rename
jumpTo(options: CameraOptions)
tosetCamera(options: CameraOptions)
, renamesetFreeCameraOptions (options: FreeCameraOptions)
tosetCamera(options: FreeCameraOptions)
.Rename
OnMapLoadingFinishedListener
toOnMapLoadedListener
.Introduce
OnStyleDataLoadedListener
to replaceOnStyleLoadingFinishedListener
, and introduceOnSourceDataLoadedListener
to replaceOnSourceChangedListener
. So that developers have granular control of style/source loading status.Introduce
coordinateBoundsForCamera()
API to replace thegetBounds()
API.Schedule non-rendering tasks on Android's scheduler to improve render performance.
Pull request checklist:
mapbox-maps-android
changelog:<changelog></changelog>
.Summary of changes
This PR introduces many breaking changes to the SDK:
jumpTo(options: CameraOptions)
tosetCamera(options: CameraOptions)
, renamedsetFreeCameraOptions (options: FreeCameraOptions)
tosetCamera(options: FreeCameraOptions)
.OnMapLoadingFinishedListener
toOnMapLoadedListener
.OnStyleDataLoadedListener
to replaceOnStyleLoadingFinishedListener
, and introducedOnSourceDataLoadedListener
to replaceOnSourceChangedListener
API to have granular control of style/source loading status.coordinateBoundsForCamera()
API to replace thegetBounds()
APIUser impact (optional)