Skip to content

Move instruction creation to core - #456

Merged
bsudekum merged 16 commits into
masterfrom
voice-move
Aug 16, 2017
Merged

bsudekum merged 16 commits into
masterfrom
voice-move

Conversation

@bsudekum

@bsudekum bsudekum commented Aug 3, 2017 •

Copy link
Copy Markdown
Contributor

Taking a 3rd stab at #453

This moves voice and instructions creation to core. This will allow developers to who use core to create instructions to be used in their own speech synthesizer or use the one built into ios.

todo:

  • move speech strings over to core
  • double check what must be made public
  • document new public methods

/cc @1ec5 @frederoni @ericrwolfe

@bsudekum bsudekum mentioned this pull request Aug 3, 2017
@bsudekum bsudekum changed the title Voice move Move instruction creation to core Aug 3, 2017
@bsudekum
bsudekum requested review from 1ec5 and frederoni August 3, 2017 17:14

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unsure what to make this value.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mapboxCoreNavigation makes sense. Bundle(for: self) should work even though it takes a class but we're inside an extension. How about the root of core navigation, which is RouteController? Bundle(for: RouteController.self)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can this file be merged with any others?

@frederoni frederoni Aug 3, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd probably assume that this class extends NSFormatter but it doesn't need any of its functionality so let's keep it as it is.

@bsudekum

bsudekum commented Aug 7, 2017

Copy link
Copy Markdown
Contributor Author

I also added UI instruction creation to this PR.

@bsudekum bsudekum mentioned this pull request Aug 8, 2017
4 tasks
@ericrwolfe ericrwolfe modified the milestone: v0.7.0-2 Aug 9, 2017
@ericrwolfe ericrwolfe modified the milestones: v0.7.0-2, v0.7.0-3 Aug 16, 2017
@ericrwolfe ericrwolfe modified the milestones: v0.7.0-3, v0.7.0-2 Aug 16, 2017

@frederoni frederoni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Really like this move 👍
Verified with non-english regional settings and it all looks and sounds good.

@bsudekum
bsudekum merged commit 9b28e2d into master Aug 16, 2017
@1ec5 1ec5 mentioned this pull request Aug 22, 2017

@1ec5 1ec5 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This broke instruction localization, since mapbox/mapbox-directions-swift#133 hasn’t been implemented yet: #524.

Sorry, I misread this PR. 😳

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.

4 participants