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

Deredeclare CLLocationManagerDelegate conformance on MGLMapView #1549

Merged
merged 2 commits into from
Jul 10, 2018

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jul 10, 2018

Deredeclared MGLMapView’s conformance to the CLLocationManagerDelegate protocol. This SDK no longer makes use of the map SDK’s Core Location–dependent functionality, now that #402 has implemented the user course view (user puck) entirely within the navigation SDK. There is no developer or end-user impact to this change.

/cc @bsudekum @JThramer

This SDK no longer makes use of the map SDK’s Core Location–dependent functionality, now that the user course view (user puck) is implemented entirely within the navigation SDK.
@1ec5 1ec5 added op-ex Refactoring, Tech Debt or any other operational excellence work. topic: location labels Jul 10, 2018
@1ec5 1ec5 self-assigned this Jul 10, 2018
@1ec5 1ec5 requested review from JThramer and bsudekum July 10, 2018 16:37
@bsudekum
Copy link
Contributor

Can you confirm simulating locations still works?

@1ec5
Copy link
Contributor Author

1ec5 commented Jul 10, 2018

Yes, it still works as far as I can tell. Location simulation uses a location manager that’s built into Core Navigation. The map’s camera and user puck are both implemented within MapboxNavigation. If NavigationMapView or RouteMapViewController were to depend on MGLMapView’s conformance to CLLocationManagerDelegate somehow, these changes would’ve resulted in compiler errors, because Swift disallows sending undeclared messages to objects.

Copy link
Contributor

@bsudekum bsudekum left a comment

Choose a reason for hiding this comment

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

@1ec5
Copy link
Contributor Author

1ec5 commented Jul 10, 2018

I’ve eviscerated that guide – the part about MGLMapView was never relevant to the guide in the first place.

@1ec5 1ec5 merged commit 6c49b28 into master Jul 10, 2018
@1ec5 1ec5 deleted the 1ec5-cllocationmanager-deredeclare branch July 10, 2018 17:47
@1ec5 1ec5 mentioned this pull request Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
op-ex Refactoring, Tech Debt or any other operational excellence work. topic: location
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants