-
Notifications
You must be signed in to change notification settings - Fork 319
Inject logger into sdk modules #2774
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
4e67c0a to
98aaa20
Compare
libdirections-onboard/src/main/java/com/mapbox/navigation/route/onboard/MapboxOnboardRouter.kt
Outdated
Show resolved
Hide resolved
...avigation-core/src/main/java/com/mapbox/navigation/core/fasterroute/FasterRouteController.kt
Outdated
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryMapper.kt
Outdated
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryPlayer.kt
Outdated
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/routerefresh/RouteRefreshController.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/MapboxTripSession.kt
Outdated
Show resolved
Hide resolved
examples/src/main/java/com/mapbox/navigation/examples/core/BaseRouterActivityKt.kt
Outdated
Show resolved
Hide resolved
026525d to
938f6b0
Compare
|
Dokka validation in action 👀 Great work @RingerJK 🙇 |
3c78a59 to
e9cea50
Compare
Guardiola31337
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.
Left some comments / questions @Lebedinsky
libdirections-onboard/src/main/java/com/mapbox/navigation/route/onboard/MapboxOnboardRouter.kt
Outdated
Show resolved
Hide resolved
libdirections-onboard/src/main/java/com/mapbox/navigation/route/onboard/MapboxOnboardRouter.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/MapboxNavigation.kt
Outdated
Show resolved
Hide resolved
...avigation-core/src/main/java/com/mapbox/navigation/core/fasterroute/FasterRouteController.kt
Outdated
Show resolved
Hide resolved
...avigation-core/src/main/java/com/mapbox/navigation/core/fasterroute/FasterRouteController.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/MapboxTripSession.kt
Outdated
Show resolved
Hide resolved
9e13985 to
d624897
Compare
Guardiola31337
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.
We're missing the Logger in MapboxNavigationTelemetry and TelemetryLocationAndProgressDispatcher @Lebedinsky
909d7dc to
17943cb
Compare
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Outdated
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Outdated
Show resolved
Hide resolved
examples/src/main/java/com/mapbox/navigation/examples/core/ReplayActivity.kt
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Outdated
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Outdated
Show resolved
Hide resolved
...avigation-core/src/main/java/com/mapbox/navigation/core/fasterroute/FasterRouteController.kt
Outdated
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryMapper.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/MapboxTripSession.kt
Show resolved
Hide resolved
...avigation-core/src/main/java/com/mapbox/navigation/core/fasterroute/FasterRouteController.kt
Outdated
Show resolved
Hide resolved
...avigation-core/src/main/java/com/mapbox/navigation/core/fasterroute/FasterRouteController.kt
Outdated
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayEventSimulator.kt
Outdated
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryMapper.kt
Outdated
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryMapper.kt
Outdated
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryPlayer.kt
Outdated
Show resolved
Hide resolved
...igation-core/src/main/java/com/mapbox/navigation/core/routerefresh/RouteRefreshController.kt
Outdated
Show resolved
Hide resolved
examples/src/main/java/com/mapbox/navigation/examples/core/ReplayHistoryActivity.kt
Outdated
Show resolved
Hide resolved
b0cbc19 to
f626846
Compare
libdirections-onboard/src/main/java/com/mapbox/navigation/route/onboard/MapboxOnboardRouter.kt
Show resolved
Hide resolved
...vigation-core/src/main/java/com/mapbox/navigation/core/replay/history/ReplayHistoryMapper.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/service/MapboxTripService.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/MapboxTripSession.kt
Outdated
Show resolved
Hide resolved
libnavigation-core/src/main/java/com/mapbox/navigation/core/sensors/SensorMapper.kt
Outdated
Show resolved
Hide resolved
ce61143 to
465b674
Compare
adc6790 to
8f73371
Compare
Guardiola31337
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.
Thanks for addressing the feedback @Lebedinsky 🚀 🚀
| private val navigatorNative: MapboxNativeNavigator, | ||
| config: MapboxOnboardRouterConfig | ||
| config: MapboxOnboardRouterConfig, | ||
| private val logger: Logger |
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.
For documentation purposes noting that this breaks SemVer cc @langsmith
| private val gson: Gson = Gson(), | ||
| private val customEventMapper: CustomEventMapper? = null | ||
| private val customEventMapper: CustomEventMapper? = null, | ||
| private val logger: Logger |
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.
For documentation purposes noting that this breaks SemVer cc @langsmith
| */ | ||
| class ReplayHistoryPlayer { | ||
| class ReplayHistoryPlayer( | ||
| logger: Logger |
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.
For documentation purposes noting that this breaks SemVer cc @langsmith
| private val initializeLambda: () -> Unit, | ||
| private val terminateLambda: () -> Unit | ||
| private val terminateLambda: () -> Unit, | ||
| private val logger: Logger |
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.
For documentation purposes noting that this breaks SemVer cc @langsmith
| constructor( | ||
| applicationContext: Context, | ||
| tripNotification: TripNotification, | ||
| logger: Logger |
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.
For documentation purposes noting that this breaks SemVer cc @langsmith
| private val navigator: MapboxNativeNavigator = MapboxNativeNavigatorImpl, | ||
| threadController: ThreadController = ThreadController | ||
| threadController: ThreadController = ThreadController, | ||
| private val logger: Logger |
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.
For documentation purposes noting that this breaks SemVer cc @langsmith
Codecov Report
@@ Coverage Diff @@
## master #2774 +/- ##
=========================================
Coverage 34.96% 34.96%
Complexity 2102 2102
=========================================
Files 541 541
Lines 19367 19387 +20
Branches 1832 1833 +1
=========================================
+ Hits 6771 6778 +7
- Misses 11785 11798 +13
Partials 811 811 |
|
Going ahead and merging here. Great work @Lebedinsky |
|
|
||
| dependencies { | ||
| implementation(project(':libnavigation-base')) | ||
| implementation dependenciesList.mapboxCommon |
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.
Why this dependency was added 🤔? Do you remember @Lebedinsky? I've removed it and didn't run into any issues cc @LukasPaczos
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.
Refs. #2774 (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.
We can remove it
I added it before Sensor classes was refactored by Kyle, and it was needed…. but after Kyle’s refactoring it is useless anymore. Great catch, Pablo 👍
Description
Injection Logger into each module of Navigation SDK. Part of tailwork for logger module implementation issue
Didn't inject into telemetry (in progress as I know, so better inject logger to it after finish this work) and UI modules (also in progress as I know)
bug,feature,new API(s),SEMVER, etc.)Testing
SNAPSHOTupstream dependencies if needed) through testapp/demo app and run all activities to avoid regressionsChecklist
CHANGELOGincluding this PR