-
Notifications
You must be signed in to change notification settings - Fork 319
[Drop-In] Remove @Experimental annotation from drop in related files
#6471
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
Codecov Report
@@ Coverage Diff @@
## main #6471 +/- ##
============================================
+ Coverage 70.26% 70.33% +0.07%
+ Complexity 4918 4907 -11
============================================
Files 722 717 -5
Lines 28044 27947 -97
Branches 3305 3295 -10
============================================
- Hits 19705 19657 -48
+ Misses 7064 7012 -52
- Partials 1275 1278 +3
|
libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/actionbutton/ActionButtonBinder.kt
Outdated
Show resolved
Hide resolved
@Experimantal annotation from drop in related files@Experimental annotation from drop in related files
a7b89a8 to
553a038
Compare
...re/src/main/java/com/mapbox/navigation/core/internal/extensions/MapboxLifecycleExtensions.kt
Show resolved
Hide resolved
libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/NavigationView.kt
Show resolved
Hide resolved
libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/map/MapBinder.kt
Outdated
Show resolved
Hide resolved
libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/ComponentInstaller.kt
Show resolved
Hide resolved
libnavui-speedlimit/src/main/java/com/mapbox/navigation/ui/speedlimit/ComponentInstaller.kt
Show resolved
Hide resolved
45f3e9a to
31daf52
Compare
d1aa26f to
f830121
Compare
9393692 to
a17b96f
Compare
libnavui-base/src/main/java/com/mapbox/navigation/ui/base/view/MapboxExtendableButton.kt
Outdated
Show resolved
Hide resolved
...in/src/main/java/com/mapbox/navigation/dropin/internal/extensions/NavigationViewContextEx.kt
Show resolved
Hide resolved
|
|
||
| /** | ||
| * Factory class for creating all drop-in UI map point annotations. | ||
| */ |
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.
@abhishek1508 Why did you remove this 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.
In the beginning all our classes were public and hence the need for documentation for all. Since we changed the relevant ones to internal, we did not remove the comments. Our code base has now become quite inconsistent as to some internal classes have descriptions vs the others don't. This was an attempt to bring consistency.
However I have put them back for the time being.
libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/ComponentInstaller.kt
Show resolved
Hide resolved
|
@abhishek1508 The changes that remove
|
Answered here
Answered here |
1750dea to
442c08f
Compare
|
@tomaszrybakiewicz All suggestions have been applied. PTAL and let me know if any other changes are needed. |
8c48ef4 to
731fa05
Compare
731fa05 to
a250af4
Compare
tomaszrybakiewicz
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
| * private fun onDetached(mapboxNavigation: MapboxNavigation) | ||
| * ``` | ||
| */ | ||
| fun forwardMapboxNavigation( |
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.
It's weird that we now have mapboxNavigationForward and forwardMapboxNavigation with identical implementations. cc @kmadsen
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.
Yeah, I had some direct messages with abhishek1508 about this. I really like the mapboxNavigationForward function in android auto. It is a little similar to requireMapboxNavigation
So the plan will be to delete the mapboxNavigationForward function in androidauto, in favor of forwardMapboxNavigation in the core-sdk. Sorry it's confusing to have them renamed, consequence of iteration.
But this is all intentional
Description
The implementation covers
@ExperimentalPreviewMapboxNavigationAPIannotation from allinternalandpublicfiles related tolibnavui-dropinmodule.@ExperimentalPreviewMapboxNavigationAPIfrom all new components that are exposed outsidelibnavui-dropinmodule. For ex:RouteLineComponent,RouteLineComponentContract,RecenterButtonComponentetc. It shouldn't be an issue removing the experimental annotation, since these components and their respective contracts are hosted insideinternalpackage.@ExperimentalPreviewMapboxNavigationAPItoMapboxExtendableButton.updateStylesand it's usage across the SDK.@ExperimentalPreviewMapboxNavigationAPIfrom any files related toComponentInstallerand it's usage.ComponentInstallercould be subject to modifications and we need to play more with them before declaring them stable.