Skip to content

ref(android): Minor refactorings to Nav3 packaging, docs, and tests - #6749

Merged
0xadam-brown merged 3 commits into
mainfrom
ref/nav3-package-boundaries
Nov 24, 2026
Merged

0xadam-brown merged 3 commits into
mainfrom
ref/nav3-package-boundaries

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

📜 Description

PR contains a number of minor refactorings to the sentry-android-navigation3 module. My clanker went rogue and merged the initial refactoring PRs from the stack introducing the new built-in BackStackEntryMappers (#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

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

#skip-changelog

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
0xadam-brown requested review from a team and adinauer as code owners November 24, 2026 08:48
@0xadam-brown
0xadam-brown requested review from markushi and romtsn and removed request for a team November 24, 2026 08:48
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 907de7f.

Main concerns: data sent to Sentry, reach, dependencies customers inherit.

Rules that block low also fired:

  • R6: build or release configuration changed: sentry-android-navigation3/build.gradle.kts

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Nov 24, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.65.1 (1) release

⚙️ sentry-android Build Distribution Settings

@0xadam-brown 0xadam-brown added the ship-it PR is ready to merge from a reviewer perspective label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants