-
Notifications
You must be signed in to change notification settings - Fork 90
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 Objective-C compatibility; adopt Swift language features #382
Conversation
This fixes #381. |
…and fixes #134. |
9e7e860
to
1632a32
Compare
75bce56
to
0c7653e
Compare
let response = options.response(from: json) | ||
if let routes = response.1 { | ||
self.postprocess(routes, fetchStartDate: fetchStartDate, responseEndDate: responseEndDate, uuid: json["uuid"] as? String) | ||
guard let response = possibleResponse, ["application/json", "text/html"].contains(response.mimeType) else { |
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.
Why does this method accept HTML-formatted responses while the other calculate
methods only accept JSON?
codecov.yml
Outdated
@@ -1,6 +1,6 @@ | |||
ignore: | |||
- "Directions Example" | |||
- "Tests" | |||
- "MapboxDirectionsTests" |
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.
#360 originally intended to omit MapboxDirectionsTests from code coverage metrics, but when #362 renamed this folder to Tests, test code inflated test coverage by around 11%. We’ll need to adjust reapply this change in a separate commit outside of this PR to avoid getting dinged by the (justifiable) omission of test code from code coverage metrics.
This is the MapboxDirections.swift-specific companion PR to mapbox/mapbox-navigation-ios#2230.
To-do:
Codable
(Adopt Codable and JSONDecoder #221)Fixes #134, fixes #228, and fixes #381.