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

Update MapboxDirections, Maps, and SDWebImage #1040

Merged
merged 3 commits into from Jan 19, 2018
Merged

Conversation

frederoni
Copy link
Contributor

Fixes #1039

We released a couple of breaking changes MapboxDirections.swift 0.16.0 which haven't been adopted in this library yet but CocoaPods decided pull in 0.16.0 even though we specify ~> 0.15 unlike Carthage.

@mapbox/navigation-ios 👀

@frederoni frederoni force-pushed the fred-update-deps2 branch 2 times, most recently from ba6a7fa to 04e984d Compare January 19, 2018 15:29
default:
self.arrowView.text = "⬆️"
}
let direction = step.maneuverDirection
Copy link
Contributor

Choose a reason for hiding this comment

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

This variable can be removed and you can just switch on step.maneuverDirection

Copy link
Contributor

@JThramer JThramer left a comment

Choose a reason for hiding this comment

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

Looks good.

self.arrowView.text = "⬅️"
case .uTurn:
self.arrowView.text = "⤵️"
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a subtle edge-case behavioral change here -- if step.maneuverDirection = nil, the arrow text becomes "⬆️".

That may be desirable, I just thought i should point this out.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think that’s fine. Our other option is ⏹. 😉

@bsudekum bsudekum added this to the v0.13.0 milestone Jan 19, 2018
@@ -40,7 +40,7 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.module_name = "MapboxCoreNavigation"

s.dependency "MapboxDirections.swift", "~> 0.15"
s.dependency "MapboxDirections.swift", "~> 0.16.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

This was the problem: we were specifying only the minor version, so the tadpole operator would float until the next major version (1.0). By contrast, Carthage intentionally violates semver by being more strict pre-1.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe worth changing now?

@bsudekum bsudekum merged commit bf83b55 into master Jan 19, 2018
@bsudekum bsudekum deleted the fred-update-deps2 branch January 19, 2018 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants