Skip to content

Deredeclare CLLocationManagerDelegate conformance on MGLMapView - #1549

Merged
1ec5 merged 2 commits into
masterfrom
1ec5-cllocationmanager-deredeclare
Jul 10, 2018
Merged

1ec5 merged 2 commits into
masterfrom
1ec5-cllocationmanager-deredeclare

Conversation

@1ec5

@1ec5 1ec5 commented Jul 10, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Can you confirm simulating locations still works?

@1ec5

1ec5 commented Jul 10, 2018

Copy link
Copy Markdown
Contributor Author

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.

@bsudekum bsudekum 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.

@1ec5

1ec5 commented Jul 10, 2018

Copy link
Copy Markdown
Contributor Author

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