Bind reachable navigation-compose @Composable methods; document animation-surface blocker#1450
Draft
Copilot wants to merge 2 commits into
Draft
Bind reachable navigation-compose @Composable methods; document animation-surface blocker#1450Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…mberNavController) and bump to 2.9.8.1 Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix empty wrappers for navigation-compose @Composable
Bind reachable navigation-compose @Composable methods; document animation-surface blocker
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Xamarin.AndroidX.Navigation.Composeshipped its*Ktwrappers (NavHostKt,NavGraphBuilderKt,DialogHostKt,NavHostControllerKt,NavBackStackEntryProviderKt) as empty classes, making the entire@Composablenavigation surface unreachable from C#.Root cause
The generator silently drops any Java method whose parameter/return types can't be resolved to a managed type (
warning BG8605). The dropped members reference types that are intentionally unbound repo-wide:androidx.compose.animation.*—AnimatedContentScope,AnimatedContentTransitionScope,EnterTransition,ExitTransition,SizeTransform. Theanimation-androidbinding'sMetadata.xmlis just<remove-node path="/api/package" />, so the package produces zero C# types.androidx.compose.runtime.saveable.SaveableStateHolder,androidx.compose.runtime.snapshots.SnapshotStateList.This is independent of inline-class mangling (java-interop#1440) and is not a navigation-compose Metadata.xml removal (it has none). Methods whose signatures resolve fully are bound correctly; methods touching the animation/saveable types are filtered.
Changes
PublicAPI/PublicAPI.Unshipped.txt— refreshed the stale baseline to capture the now-bindable subset:DialogHostKt.DialogHost(DialogNavigator, …)NavGraphBuilderKt.Dialog(…)(string +KClassoverloads)NavHostControllerKt.RememberNavController(Navigator[], …)NavHostControllerKt.CurrentBackStackEntryAsState(NavController, …)DialogNavigator.DestinationandDialogNavigatorDestinationBuilderconfig.json— bumpnavigation-composeandnavigation-compose-androidnugetVersion2.9.8 → 2.9.8.1.published-namespaces.txt— no change required;AndroidX.Navigation.Composeis already published.Still unbound (out of scope)
NavHost,NavGraphBuilder.composable,NavGraphBuilder.navigation, andNavBackStackEntry.LocalOwnersProviderremain empty — they cannot bind untilandroidx.compose.animation(andcompose.runtime.saveable) are themselves bound. That is a large, separate cross-library effort: the package is deliberately stripped viaremove-node, and anadd-nodeshim is not viable because the generated C# would reference types that don't exist. Tracked as the real blocker behind this Compose surface.