Skip to content

[CarPlay] enable developers to customize CPTrip and CPTripPreviewTextConfiguration before preview - #1955

Merged
akitchen merged 12 commits into
masterfrom
akitchen/customize-cptrip
Feb 8, 2019
Merged

akitchen merged 12 commits into
masterfrom
akitchen/customize-cptrip

Conversation

@akitchen

@akitchen akitchen commented Feb 2, 2019 •

Copy link
Copy Markdown
Contributor

This is still WIP; so far I've introduced a seam (MapTemplateProvider) that allows us to inject a testable map template class for spying on the results of behaviors which interact with the map template. I'm backfilling tests and implementing this in a way (TDD) which uses tests to drive out the necessary refactoring.

Opening this up early for the sake of discussion; feedback welcome on the overall approach

Next up:

  • define test case for CPTrip customization
  • introduce delegate method for customizing CPTrip before preview
  • define test case for CPTripPreviewTextConfiguration customization
  • introduce delegate method for providing a customized CPTripPreviewTextConfiguration
  • discuss whether to make the MapTemplateProvider seam public (and whether we want this at all)

/cc @mapbox/navigation-ios

@akitchen akitchen added ⚠️ DO NOT MERGE PR should not be merged! status: in progress feature New feature request. CarPlay Bugs, improvements and feature requests on Apple CarPlay labels Feb 2, 2019
@akitchen akitchen changed the title [CarPlay] enable developers to customize CPTrip and text configuration before preview [CarPlay] enable developers to customize CPTrip and CPTripPreviewTextConfiguration before preview Feb 4, 2019
@akitchen akitchen removed the ⚠️ DO NOT MERGE PR should not be merged! label Feb 6, 2019
@akitchen akitchen added ✓ ready for review needs more information Can't proceed without more data. and removed status: in progress labels Feb 8, 2019
@akitchen
akitchen requested a review from JThramer February 8, 2019 05:39
@akitchen
akitchen force-pushed the akitchen/customize-cptrip branch from 16c746f to 2bd2ba7 Compare February 8, 2019 05:53

@JThramer JThramer 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 looks great! ✅

@akitchen akitchen added this to the v0.29.0 milestone Feb 8, 2019
@akitchen
akitchen merged commit 5b4569e into master Feb 8, 2019
@akitchen
akitchen deleted the akitchen/customize-cptrip branch February 8, 2019 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CarPlay Bugs, improvements and feature requests on Apple CarPlay feature New feature request. needs more information Can't proceed without more data.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants