Repository navigation
feat(nav3): [Part 4] Use the SerialName mapper in the Android samples - #6782
Open
0xadam-brown wants to merge 1 commit into
Open
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
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
|
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-3
branch
from
November 27, 2026 15:16
cfbf6ca to
fb33ea0
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-4
branch
from
November 27, 2026 15:16
cd7e549 to
a6598e0
Compare
Base automatically changed from
feat/nav3-serial-name-stack-3
to
feat/nav3-serial-name-mappers-7
November 27, 2026 15:16
4 of 9 tasks
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-4
branch
from
November 27, 2026 15:27
a6598e0 to
7010a59
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-7
branch
from
November 27, 2026 15:27
c8bea42 to
1765464
Compare
0xadam-brown
marked this pull request as ready for review
November 27, 2026 17:23
0xadam-brown
requested review from
markushi and
runningcode
and removed request for
a team
November 27, 2026 17:23
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, so they use the setup we recommend to apps:SerialNameand adds the arguments the route chooses to share. This is the pattern the KDoc suggests: let a built-in mapper handle names, and pick arguments yourself. It also keeps the sample exercising argument handling.SerialNamedirectly.SerialNameand a custom mapper. The custom mapper names routes withoutSerialNameand times name and argument extraction separately, so its timings are a baseline forSerialName's lookups.The routes are now
@Serializable. Their serial names are the Nav2 sample's route 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 integration by hand, on a device, with real Nav3 back stacks. They should run the code path most apps will use. The performance scenario lets us measure what
SerialNamecosts per navigation.addresses: JAVA-787 (link)
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
SerialNameAndPropertiesstack will switch the samples to that mapper.🤖 Generated with Claude Code