Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Merge release-agua back to master - #10918

Merged
fabian-guerra merged 20 commits into
masterfrom
fabian-release-agua-master
Jan 17, 2018
Merged

fabian-guerra merged 20 commits into
masterfrom
fabian-release-agua-master

Conversation

@fabian-guerra

Copy link
Copy Markdown
Contributor

Merge release-agua back to master

boundsj and others added 17 commits January 4, 2018 10:38
This attempts to work around reports of repeated calls to [CLLocationManager authorizationStatus] blocking the main thread by dispatching it to the background, serial queue that is already available in MGLMapboxEvents.

This also adds a guard to the handler for the user defaults change event so that the call to pause or resume if required is done only if a user defaults value changes that would require an update to the pause / resume state.

The guard works by utilizing two new state variables that keep track of the previous values for account type and metrics enabled configuration variables. The call to pause/resume is only done if the latest relevant values in the user defaults dictionary are actually different than the previous ones.

The default values for the new state variables assume an account value of 0 and metrics enabled == true so there can be a small inefficiency if a user prevously opted out of telemetry, kills the app, and restarts it. In that case, the pause/resume method would get invoked one time when it would not technically need to. This should not be an issue in practice though.
* [ios] Fix the layout constraints on iOS 11 for iPhone X for the bottom ornaments.

* WIP adding tests for layout of map view attribution logo and other ornaments

* Rename

* First pass at tests for mapview ornament layout

* Additional code changes from call with Fabian and Jason

* [ios] Fix ornaments insets margin space.

* [ios] Fix map view layout test for pre iOS 11.

* [ios] Refactor MGLMapView ornaments layout constraints for iOS 11.

* [ios] Remove NSLogs from MGLMapViewLayoutTests
tobrun
tobrun previously requested changes Jan 12, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

duplicated import statement

@friedbunny friedbunny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

iOS changes LGTM.

@friedbunny
friedbunny requested a review from boundsj January 12, 2018 18:58

@jfirebaugh jfirebaugh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 on the (lack of) core changes.

@boundsj boundsj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MGLMapboxEvents changes look 👍

@akitchen
akitchen dismissed tobrun’s stale review January 12, 2018 23:09

(very minor) changes were addressed. Unblocking merge.

@1ec5 1ec5 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

iOS and macOS changes look good. Remember to merge from the command line.

Comment thread platform/macos/CHANGELOG.md Outdated

* Fixed a memory leak that occurred when creating a map snapshot. ([#10585](https://github.com/mapbox/mapbox-gl-native/pull/10585))

## v0.6.1

@1ec5 1ec5 Jan 13, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Guess I need to release v0.6.1 now. 😊 I can follow up with a separate merge PR for #10933, which contains the tag and podspec changes for that release.

1ec5 and others added 3 commits January 16, 2018 09:24
# Conflicts:
#	platform/android/CHANGELOG.md
#	platform/android/MapboxGLAndroidSDK/gradle.properties
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
#	platform/ios/CHANGELOG.md
#	platform/ios/ios.xcodeproj/project.pbxproj
#	platform/macos/CHANGELOG.md
@fabian-guerra
fabian-guerra force-pushed the fabian-release-agua-master branch from 26fbea9 to 42bcb4b Compare January 17, 2018 14:41
@fabian-guerra
fabian-guerra merged commit 42bcb4b into master Jan 17, 2018
@fabian-guerra
fabian-guerra deleted the fabian-release-agua-master branch January 17, 2018 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants