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

Rewrite Core Location shim for Linux #132

Merged
merged 4 commits into from
Feb 5, 2021
Merged

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Feb 5, 2021

Rewrote the Core Location compatibility shim for Linux to define non-CL-prefixed types regardless of platform. For example, cross-platform code uses LocationCoordinate2D instead of CLLocationCoordinate2D, but Apple-platform code can continue to use CLLocationCoordinate2D.

Along the way, this PR also renames BoundingBox(_:_:) to BoundingBox(southWest:northEast:) to avoid mistakes similar to #102 in client code.

Fixes #119.

/cc @mapbox/navigation-ios @macdrevx

1ec5 added 3 commits February 4, 2021 16:11
Rewrote the Core Location compatibility shim for Linux to define non-CL-prefixed types regardless of platform, allowing for more consistent usage across platforms.
@1ec5 1ec5 added op-ex Refactoring, Tech Debt or any other operational excellence work. backwards incompatible changes that break backwards compatibility of public API labels Feb 5, 2021
@1ec5 1ec5 added this to the v2.0.0 milestone Feb 5, 2021
@1ec5 1ec5 requested review from macdrevx and Udumft February 5, 2021 00:35
@1ec5 1ec5 self-assigned this Feb 5, 2021
@1ec5
Copy link
Contributor Author

1ec5 commented Feb 5, 2021

This PR looks frighteningly large, but most of it is just removing the CL prefix from every call site. The only interesting changes are in CoreLocation.swift and BoundingBox.swift.

@1ec5 1ec5 merged commit edca693 into main Feb 5, 2021
@1ec5 1ec5 deleted the 1ec5-corelocation-linux-119 branch February 5, 2021 15:34
@truburt truburt modified the milestones: v2.0.0, v2.0.0 (Public Preview) Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards incompatible changes that break backwards compatibility of public API op-ex Refactoring, Tech Debt or any other operational excellence work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core Location compatibility shim on Linux uses CL class prefix
3 participants