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

Add polyline decoding by default, add new test fixture that tests tha… #27

Merged
merged 1 commit into from
Apr 6, 2016

Conversation

tmcw
Copy link
Contributor

@tmcw tmcw commented Apr 6, 2016

…t ability.

Fixes #26

  • Adds Polyline pod dependency

cc @1ec5 for the review

@@ -4,5 +4,6 @@ use_frameworks!
pod 'NBNRequestKit', :git => 'https://github.com/1ec5/RequestKit.git', :branch => 'mapbox-podspec'

target 'MapboxDirectionsTests' do
pod 'Polyline', '~> 3.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 dependency needs to be added to the implicit target above, like NBNRequestKit. This section is for dependencies specific to the test bundle.

@tmcw
Copy link
Contributor Author

tmcw commented Apr 6, 2016

@1ec5 fixed the pod mistake - can you add me to BitRise so I can debug the test failure?

@1ec5
Copy link
Contributor

1ec5 commented Apr 6, 2016

Polyline.framework needs to be added as a dependency of the MapboxDirections target in the Xcode project editor. Additionally, the Polyline pod needs to be added as a dependency in the podspec.

@tmcw
Copy link
Contributor Author

tmcw commented Apr 6, 2016

@tmcw
Copy link
Contributor Author

tmcw commented Apr 6, 2016

🎉 tests pass! Anything else @1ec5 ?

@1ec5
Copy link
Contributor

1ec5 commented Apr 6, 2016

Nope, merge away!

…t ability.

Fixes #26

* Adds `Polyline` pod dependency
@tmcw tmcw merged commit a939747 into master Apr 6, 2016
@tmcw tmcw deleted the polyline branch April 6, 2016 21:16
@friedbunny
Copy link
Contributor

🎉

1ec5 added a commit that referenced this pull request Apr 7, 2016
#27 made MBRoute.geometry optional, but a route without geometry isn’t much of a route at all. If polyline decoding fails, that means the server returned malformed output. Crash on malformed output.
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.

3 participants