Repository navigation
ref(android): Minor refactorings to Nav3 packaging, docs, and tests - #6749
Merged
Merged
Conversation
Commit consists of miscellaneous small refactors in connection with our (forthcoming) introduction of built-in BackStackEntryMappers.
Add tests that pin down current BackStackConverter and ArgumentSanitizer behavior, fix a mislabelled KEEP_LAST ordering test, shorten Nav3 warning messages, clarify BackStackEntryMapper KDoc, and move the #6699 changelog entry to Dependencies. #skip-changelog
The host mapper call already runs without snapshot read observation. Extend that to sanitizing the arguments it returns, which can also run host code (e.g., iterating a SnapshotStateMap or calling toString()). #skip-changelog
0xadam-brown
requested review from
markushi and
romtsn
and removed request for
a team
November 24, 2026 08:48
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, reach, dependencies customers inherit. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
0xadam-brown
commented
Nov 24, 2026
runningcode
approved these changes
Nov 24, 2026
This was referenced Nov 24, 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.
📜 Description
PR contains a number of minor refactorings to the
sentry-android-navigation3module. My clanker went rogue and merged the initial refactoring PRs from the stack introducing the new built-inBackStackEntryMappers(#6696). That was a happy mistake, because those changes were desirable even if the rest of the stack doesn't come through. But there were a few additional changes in later PRs in that sequence which also make sense on main. This PR picks them up.I've also added some unit tests that are valid against main, and whose presence can give more confidence that the PR stack doesn't introduce a regression.
I'll rebase / adjust the PR stack once this PR is merged.
💡 Motivation and Context
Lets us pick up valuable changes from the PR stack even if it's killed off due to kotlinx.serialization concerns (TBD), and makes that stack easier to review.
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
#skip-changelog