Skip to content

Allow setting access token programmatically #4

Closed
@1ec5

Description

@1ec5

As of 892f1e5 for #3, this library uses Directions.shared, which automatically reads the access token from the Info.plist. But if the developer needs to specify the access token programmatically, they’re out of luck. Plus, now everyone with access to this repository knows your access token.

Instead, NavigationController’s initializer should accept an access token as an optional argument. In the example application, use a placeholder token, which looks like this inside Xcode:

placeholder

If the developer doesn’t specify an access token, NavigationController can create Directions with a nil access token, which will cause Directions to automatically look in the Info.plist.

/cc @bsudekum

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions