Skip to content

fix setup && bugs #202

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

fix setup && bugs #202

wants to merge 9 commits into from

Conversation

chizhavko
Copy link

-Move project setup from cocoapods to spm
-Fix crashes
-Updated code base and improved examples with new SDK features
-Update readme

@@ -10,16 +10,14 @@ A collection of examples showing off the [Mapbox Navigation SDK](https://github.

_Installation with CocoaPods_
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change to SPM now

@@ -10,16 +10,14 @@ A collection of examples showing off the [Mapbox Navigation SDK](https://github.

_Installation with CocoaPods_

1. `git clone https://github.com/mapbox/mapbox-navigation-ios-examples.git`
1. `cd mapbox-navigation-ios-examples`
1. Open project and wait for couple of minutes. SPM need to load mapbox Navigation SDK dependencies. ☕️
1. Go to your [Mapbox account dashboard](https://account.mapbox.com/) and create an access token that has the `DOWNLOADS:READ` scope. **PLEASE NOTE: This is not the same as your production Mapbox API token. Make sure to keep it private and do not insert it into any Info.plist file.** Create a file named `.netrc` in your home directory if it doesn’t already exist, then add the following lines to the end of the file:
Copy link
Contributor

Choose a reason for hiding this comment

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

This step should be done before a user tries to resolve packages, otherwise, SPM won't be able to download binary artifacts.

lineLayer.lineCap = .constant(.round)

return lineLayer
func changeMapStyle(_ navigationMapView: NavigationMapView?) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Intention of this example is to showcase the ability to change route line styling via delegates. I'm not sure that we need this change.

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