Skip to content

move notification resources to base module#5803

Merged
Zayankovsky merged 1 commit intomainfrom
vz-move-resources
May 13, 2022
Merged

move notification resources to base module#5803
Zayankovsky merged 1 commit intomainfrom
vz-move-resources

Conversation

@Zayankovsky
Copy link
Copy Markdown
Contributor

@Zayankovsky Zayankovsky commented May 12, 2022

Description

Moved notification resources to :libnavigation-base, which is necessary for implementing a notification interceptor in Android Auto (#5778). Also it might be useful for those, who would like to implement their custom TripNotification.

@Zayankovsky Zayankovsky added the skip changelog Should not be added into version changelog. label May 12, 2022
@Zayankovsky Zayankovsky requested a review from a team as a code owner May 12, 2022 15:36
@Zayankovsky Zayankovsky self-assigned this May 12, 2022
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2022

Codecov Report

Merging #5803 (f389c10) into main (6237056) will increase coverage by 0.49%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #5803      +/-   ##
============================================
+ Coverage     67.22%   67.72%   +0.49%     
- Complexity     3799     3812      +13     
============================================
  Files           585      585              
  Lines         23627    23627              
  Branches       2708     2708              
============================================
+ Hits          15883    16001     +118     
+ Misses         6738     6610     -128     
- Partials       1006     1016      +10     
Impacted Files Coverage Δ
...trip/notification/NotificationTurnIconResources.kt 37.48% <ø> (ø)
...ip/notification/internal/MapboxTripNotification.kt 66.66% <ø> (ø)
...avigation/base/internal/maneuver/TurnIconHelper.kt 82.70% <0.00%> (+82.70%) ⬆️
...igation/base/internal/maneuver/ManeuverTurnIcon.kt 100.00% <0.00%> (+100.00%) ⬆️
...base/internal/maneuver/ManeuverTypeModifierPair.kt 100.00% <0.00%> (+100.00%) ⬆️

Copy link
Copy Markdown
Contributor

@kmadsen kmadsen left a comment

Choose a reason for hiding this comment

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

LGTM

import com.mapbox.navigation.base.maneuver.model.BaseTurnIconResources
import com.mapbox.navigation.trip.notification.R

class NotificationTurnIconResources private constructor(
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.

Maybe we should expose a resource api similar to MapboxLaneIconsApi

We did this for android auto as well #4729

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.

TurnIconHelper looks like such an API. We can think of making it public.

@Zayankovsky Zayankovsky merged commit 07f5351 into main May 13, 2022
@Zayankovsky Zayankovsky deleted the vz-move-resources branch May 13, 2022 13:14
@abhishek1508
Copy link
Copy Markdown
Contributor

@Zayankovsky I think we missed to update the transifex and reflect that the strings were moved to a different path. Could you take care of that?

/cc @kmadsen @LukasPaczos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog Should not be added into version changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants