Repository navigation
feat(nav3): [Part 3] Introduce the built-in SerialNameAndProperties mapper - #6706
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
This was referenced Nov 20, 2026
Contributor
|
4 of 9 tasks
📲 Install BuildsAndroid
|
This was referenced Nov 20, 2026
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, public contract, host performance. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
0xadam-brown
marked this pull request as ready for review
November 20, 2026 15:38
0xadam-brown
requested review from
romtsn and
runningcode
and removed request for
a team
November 20, 2026 15:38
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-9
branch
2 times, most recently
from
November 23, 2026 13:11
8c1faf4 to
ec9fb95
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-8
branch
from
November 23, 2026 13:11
546f3b8 to
d2d0c6e
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-8
branch
from
November 23, 2026 14:28
d2d0c6e to
782f546
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-9
branch
2 times, most recently
from
November 23, 2026 15:34
a3d765c to
52103fe
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-8
branch
2 times, most recently
from
November 24, 2026 10:21
122ad95 to
f4a7b52
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-9
branch
from
November 24, 2026 10:21
52103fe to
1f9a83c
Compare
5 of 9 tasks
0xadam-brown
changed the base branch from
feat/nav3-serial-name-mappers-8
to
feat/nav3-serial-name-mappers-argument-source
November 24, 2026 10:23
0xadam-brown
marked this pull request as draft
November 25, 2026 15:37
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-argument-source
branch
from
December 1, 2026 01:31
849c9d0 to
ef7030c
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-9
branch
from
December 1, 2026 01:31
1f9a83c to
857e5ed
Compare
0xadam-brown
marked this pull request as ready for review
December 1, 2026 01:49
Add BackStackEntryMapper.SerialNameAndProperties, which names entries as SerialName does and also records each entry's kotlinx.serialization properties as arguments, through KotlinxArgumentSource. Creating the mapper checks that the properties encoder works with the app's kotlinx.serialization version by encoding a known value with built-in serializers, as the name check does, and comparing the output with its known encoding. Any failure or mismatch keeps entry names but drops every entry's arguments with encoding_failed, since recording wrong arguments is worse than recording none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-argument-source
branch
from
December 1, 2026 10:01
ef7030c to
81bf950
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-9
branch
from
December 1, 2026 10:01
857e5ed to
0e209b0
Compare
runningcode
approved these changes
Dec 1, 2026
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 SerialNameAndProperties Mapper)
This stack follows the
SerialNamestack (#6780) and is based on its last PR, #6783.📜 Description
Introduces the public API on top of the kotlinx.serialization encoder introduced in #6751, viz.,
BackStackEntryMapper.SerialNameAndProperties.Lets an application easily record serializable back stack entry properties alongside destination names.
Before collecting properties, the mapper checks that the app’s serialization runtime can encode a known value correctly, using kotlinx.serialization's built-in serializers. If the check throws or produces unexpected output, it disables property collection while continuing to record destination names. This avoids presenting incorrect arguments as useful route context.
A nonfatal property encoding failure preserves the destination's name and records why its arguments were dropped.
💡 Motivation and Context
Let's host apps that want to serialize back stack entry names and properties easily do so.
addresses: JAVA-787 (link)
See the "Callouts" section in #6703 for a discussion of why I exposed the built-in mappers as properties rather than methods.
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Continue with Part 4: Use SerialNameAndProperties in the Android samples.