-
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
Bridge profile identifier to Objective-C #106
Conversation
f3e1a0f
to
dd1f9ba
Compare
MapboxDirections/MBRouteOptions.h
Outdated
|
||
This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary. | ||
*/ | ||
extern NSString *const MBDirectionsProfileIdentifierAutomobile; |
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.
While you’re at it, can you make these constants into an extensible string enumeration?
0827ecc
to
bcab052
Compare
26d2fdc
to
77670cb
Compare
77670cb
to
bc3ea96
Compare
Rebased onto the |
Actually, for consistency, it'd be better to rebase atop master and merge into swift3, as we've done for all the other changes. |
MapboxDirections/MBRouteOptions.h
Outdated
|
||
#pragma mark - Specifying the Routing Profile | ||
|
||
typedef NSString * MBDirectionsProfileIdentifier NS_EXTENSIBLE_STRING_ENUM; |
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.
This symbol could use some documentation.
self.profileIdentifier = profileIdentifier ?? MBDirectionsProfileIdentifierAutomobile | ||
self.allowsUTurnAtWaypoint = ![MBDirectionsProfileIdentifierAutomobile, MBDirectionsProfileIdentifierAutomobileAvoidingTraffic].contains(self.profileIdentifier) | ||
self.profileIdentifier = profileIdentifier ?? MBDirectionsProfileIdentifier.automobile.rawValue | ||
self.allowsUTurnAtWaypoint = ![MBDirectionsProfileIdentifier.automobile.rawValue, MBDirectionsProfileIdentifier.automobileAvoidingTraffic.rawValue].contains(self.profileIdentifier) |
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.
Should profileIdentifier be of type MBDirectionsProfileIdentifier?
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.
It's a breaking change and it involves quite a few changes but it would make things clearer.
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.
This library hasn't reached 1.0 yet, so breaking changes are perfectly fine.
4c977ea
to
f2fc96d
Compare
Modified the workflows to only run carthage if there's a |
46a68ef
to
d8fe15a
Compare
d8fe15a
to
55f94fd
Compare
Polyline does have a watchOS target, but it looks like a watchOS scheme was omitted – probably an oversight. |
Global variables defined in Swift doesn't bridge to Objective-C.