Skip to content
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

HistoryRecording instance-based methods #3791

Merged
merged 2 commits into from Mar 30, 2022
Merged

Conversation

Udumft
Copy link
Contributor

@Udumft Udumft commented Mar 22, 2022

Resolves #3753
This PR added instance methods to HistoryRecording protocol, deprecating static methods. Since this protocol is adopted by RouteController and PassiveLocationManager, usage of instance methods insures that Navigator.shared exists and history recording will be correct.

@Udumft Udumft added the Core Work related to core navigation and integrations. label Mar 22, 2022
@Udumft Udumft self-assigned this Mar 22, 2022
@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

Breaking Changes in MapboxNavigation

Breaking API Changes

InstructionsCardContainerView

  • modified method: label(_:willPresent:as:) in InstructionsCardContainerView
    Type of change: key.doc.result_discussion
    From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
    To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
  • modified method: label(_:willPresent:as:) in InstructionsCardContainerView
    Type of change: Declaration
    From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
    To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

Breaking Changes in MapboxNavigation

Breaking API Changes

InstructionsCardContainerView

  • modified method: label(_:willPresent:as:) in InstructionsCardContainerView
    Type of change: key.doc.result_discussion
    From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
    To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
  • modified method: label(_:willPresent:as:) in InstructionsCardContainerView
    Type of change: Declaration
    From: <Self where Self : VisualInstructionDelegate> (Self) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?
    To: (InstructionsCardContainerView) -> (InstructionLabel, VisualInstruction, NSAttributedString) -> NSAttributedString?

@Udumft Udumft marked this pull request as ready for review March 22, 2022 13:02
@Udumft Udumft requested a review from a team March 22, 2022 13:02
@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@Udumft Udumft merged commit d67ded1 into main Mar 30, 2022
@Udumft Udumft deleted the vk/3753-history-recording branch March 30, 2022 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Work related to core navigation and integrations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make HistoryRecording protocol methods instance
3 participants