-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot implement OnDestinationChangedListener in multiplatform navigation #4615
Cannot implement OnDestinationChangedListener in multiplatform navigation #4615
Comments
For anyone encountering the same error, adding |
Thanks for the report - I'll replace |
## Proposed Changes We have to unwrap all project dependencies, but it seems `implementation` replaces `api` for other dependencies. ## Testing Test: try to use `NavController.OnDestinationChangedListener` without specifying bundle dependency explicitly. ## Issues Fixed Fixes JetBrains/compose-multiplatform#4615
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Describe the bug
When you try to implement
NavController.OnDestinationChangedListener
, you get anUnresolved reference: Bundle
error trying to import theBundle
class fromandroidx.core.bundle.Bundle
.Affected platforms
Any, since it's in the common implementation.
Versions
To Reproduce
OnDestinationChangedListener
interface. Can be inside theCommonUi
file as such:class NavListener() : NavController.OnDestinationChangedListener { override fun onDestinationChanged( controller: NavController, destination: NavDestination, arguments: Bundle? ) { TODO("Not yet implemented") } }
Expected behavior
Project should be able to be built
The text was updated successfully, but these errors were encountered: