Repository navigation
feat(nav3): [Part 4] Use the SerialName mapper in the Android samples - #6782
Draft
0xadam-brown wants to merge 1 commit into
Draft
0xadam-brown wants to merge 1 commit into
0xadam-brown wants to merge 1 commit into
Conversation
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
### Features
- [Part 4] Use the SerialName mapper in the Android samples ([#6782](https://github.com/getsentry/sentry-java/pull/6782))If none of the above apply, you can opt out of this check by adding |
4 of 9 tasks
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
This was referenced Nov 25, 2026
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-3
branch
from
November 25, 2026 15:34
e97547e to
c3bbd3c
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-4
branch
from
November 25, 2026 15:34
13ed74a to
37996b3
Compare
The routes are @serializable with the Nav2 sample's route names as their serial names. The single-stack sample names them with BackStackEntryMapper.SerialName and adds each route's own arguments, and the multi-root samples use SerialName directly. The performance scenario can run SerialName itself, to measure its name lookups, as well as the custom mapper.
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-3
branch
from
November 25, 2026 16:31
c3bbd3c to
cfbf6ca
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-4
branch
from
November 25, 2026 16:31
37996b3 to
cd7e549
Compare
📲 Install BuildsAndroid
|
This branch has not been deployed
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.
PR Stack (Nav3 SerialName Mapper)
This stack replaces the
SerialNamehalf of #6696.SerialNameAndPropertieswill follow in its own stack.📜 Description
Switches the Nav3 samples in
sentry-samples-androidtoBackStackEntryMapper.SerialName:SerialNameand adds the route's own arguments, in a small wrapper. This shows the pattern the KDoc recommends (fall back to a built-in mapper for names, and choose the arguments yourself), and keeps the sample exercising argument handling.SerialNamedirectly.SerialNameitself, soSentryNavEffect.onBackStackChangedmeasures the built-in mapper's real lookups.The routes become
@Serializable, with the Nav2 sample's route names as their serial names, so both samples send the same names. Members other than a route's constructor properties are getters, so they aren't serialized.💡 Motivation and Context
The samples are where we try the mapper by hand, on a device, with real Nav3 back stacks. They now exercise the code path we recommend to apps.
addresses: JAVA-787 (link)
💚 How did you test it?
./gradlew -p sentry-android-integration-tests :sentry-samples-android:compileDebugKotlin📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
The
SerialNameAndPropertiesstack will switch the samples to that mapper.