-
Notifications
You must be signed in to change notification settings - Fork 312
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
Remove offline #2509
Remove offline #2509
Conversation
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.
A few comments, otherwise LGTM
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.
I can see that let MBSelectedOfflineVersion = "MBSelectedOfflineVersion"
is never used in Example. Do we still need it?
Also just to make sure: I can see that there are several offline related entries (OFFLINE_) in |
I think most of them won’t be relevant to the offline service feature, since the user won’t have the opportunity to choose an arbitrary bounding box to download. |
I am not sure why this is part of v1.0 scope. Removing legacy should be part of v1.1. Am I missing something here. @1ec5 |
c1ede52
to
992066e
Compare
removed
removed |
@asinghal22 For more info please check mapbox/navigation-sdks#484 |
How about this link? |
@asinghal22 is correct, we did publicly release a version of offline navigation on iOS. What we never released on iOS was the hybrid navigation feature. In any event, if we don’t remove this offline navigation functionality ahead of v1.0, we won’t be able to remove it until v2.0, and that may prevent us from introducing a planned revamped offline navigation feature in v1.1. |
277c5cb
to
a75de24
Compare
a75de24
to
46e0fec
Compare
class OfflineRoutingTests: XCTestCase { | ||
func testOfflineDirections() { | ||
let bundle = Bundle(for: Fixture.self) | ||
let tilesURL = URL(fileURLWithPath: bundle.bundlePath.appending("/tiles/liechtenstein")) |
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.
#2546 proposes reusing this test fixture, if not the overall test, to facilitate automated integration testing of the PassiveLocationDataSource in free driving mode.
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.
@asinghal22 requested that we leave the legacy offline routing functionality in place but remove it from the officially documented public API. So we’ll need to rework this PR a bit:
- Restore MapboxCoreNavigation/OfflineDirections.swift
- Add
:nodoc:
to each of the public symbols in that file and mark each of them as deprecated, in case a developer is already using them:-
NavigationDirectionsCompletionHandler
-
OfflineRoutingError
-
UnpackProgressHandler
-
UnpackCompletionHandler
-
OfflineRouteCompletionHandler
-
NavigationDirections
-
- Revert the changes to MapboxCoreNavigation/Resources/*.lproj/Localizable.strings
- Restore MapboxCoreNavigationTests/OfflineRoutingTests.swift
- Ensure MapboxNavigation.xcodeproj/project.pbxproj is consistent with the files restored above
46e0fec
to
5a61bd6
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.
In addition to the feedback below, some of these removed methods are still listed in the table of contents in docs/jazzy.yml. We should also remove the entire “Offline navigation” section under the “v1.0” heading of the changelog and add an “Other changes” blurb about each of the :nodoc:
’d symbols in #2509 (review) being deprecated.
To facilitate cherry-picking to the release-v1.0 branch, please squash-merge this PR. Thanks! |
283d77a
to
4358ee7
Compare
4358ee7
to
9173d2c
Compare
In preparation for the OfflineService to land in the Maps and Nav native libs, and platform delivery in Nav SDK v1.1, we should remove all of the legacy offline APIs that were implemented as part of the Nav UI SDK v0.x.
The pr removes:
NavigationDirections
Resolves mapbox/navigation-sdks#490