-
Notifications
You must be signed in to change notification settings - Fork 320
Revert breaking changes related to shields from maneuvers #5330
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
Conversation
30848f4 to
b34e4ee
Compare
LukasPaczos
left a comment
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.
There's a
userId: String?,
styleId: String?,
accessToken: String?,
maneuvers: List<Maneuver>,
callback: RoadShieldCallback
) {
that we've made public but it's immediately deprecated. Let's make it internal.
libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/api/MapboxManeuverApi.kt
Show resolved
Hide resolved
libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/api/RoadShieldsCallback.kt
Show resolved
Hide resolved
libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/api/RoadShieldsCallback.kt
Show resolved
Hide resolved
If we make this API internal, how would an end user request mapbox designed shield using deprecated |
Couldn't they use the new callback instead? They need to make changes to pass in the style id, user, and token, so why not migrate to the new API altogether? |
b34e4ee to
33a030e
Compare
Okay so if I make internal, then that means as a user if you continue to use the deprecated API, you cannot request mapbox designed shields because that API is internal. To be able to use mapbox designed shield migrate to new API. Is that correct? |
Exactly. |
...neuver/src/main/java/com/mapbox/navigation/ui/maneuver/model/ManeuverInstructionGenerator.kt
Outdated
Show resolved
Hide resolved
...shield/src/main/java/com/mapbox/navigation/ui/shield/internal/model/RouteShieldToDownload.kt
Outdated
Show resolved
Hide resolved
...vui-shield/src/test/java/com/mapbox/navigation/ui/shield/RoadShieldContentManagerImplTest.kt
Outdated
Show resolved
Hide resolved
libnavui-shield/src/main/java/com/mapbox/navigation/ui/shield/ShieldsCache.kt
Outdated
Show resolved
Hide resolved
...vui-shield/src/test/java/com/mapbox/navigation/ui/shield/RoadShieldContentManagerImplTest.kt
Outdated
Show resolved
Hide resolved
b59b783 to
191a618
Compare
| binding.maneuverView.renderManeuverWith(shieldResult) | ||
| shieldErrors.forEach { (id, errors) -> | ||
| errors.forEach { error -> | ||
| LoggerProvider.logger.e( |
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.
nit: we can keep logging the error here
libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/view/MapboxManeuverView.kt
Outdated
Show resolved
Hide resolved
libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/view/MapboxManeuverView.kt
Outdated
Show resolved
Hide resolved
aba92b5 to
1003f51
Compare
LukasPaczos
left a comment
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.
LGTM with one suggestion.
...ui-maneuver/src/test/java/com/mapbox/navigation/ui/maneuver/model/RoadShieldGeneratorTest.kt
Show resolved
Hide resolved
1003f51 to
3bfdd01
Compare
3bfdd01 to
86cc749
Compare
Description
Fixes #5302
Screenshots or Gifs