Repository navigation
ref(android): Minor refactorings to Nav3 packaging, docs, and tests #6749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+613
−127
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
ab25500
ref(nav3): Clarify package boundaries and consolidate observers
0xadam-brown a48235f
ref(nav3): Add characterization tests and tighten Nav3 warnings and docs
0xadam-brown 907de7f
fix(nav3): Hide Compose state reads during argument sanitization
0xadam-brown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
76 changes: 0 additions & 76 deletions
76
...n/kotlin/io/sentry/compose/navigation3/internal/backstack/CoordinatedBackStackObserver.kt
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...ion3/src/main/kotlin/io/sentry/compose/navigation3/internal/backstack/README.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # `io.sentry.compose.navigation3.internal.backstack` | ||
|
|
||
| This package converts a host app's back stack into Sentry navigation data: screen names, navigation | ||
| breadcrumbs, transactions, and the captured back stack. | ||
|
|
||
| ## Mapping and sanitization | ||
|
|
||
| The host app's `BackStackEntryMapper` supplies each entry's name and optional arguments in a | ||
| `SentryBackStackEntry`. Properties are the fields and values on the host's back stack entry; | ||
| arguments are the values the mapper chooses to expose as `SentryBackStackEntry.arguments`. | ||
|
|
||
| Arguments are the mapper's output before sanitization. `BackStackConverter` normalizes entry names | ||
| and sanitizes arguments before they are recorded. Sanitization can stringify values or drop an | ||
| entry's arguments when they are invalid or exceed the limits in `ArgumentConstraints`. | ||
| The value and character budgets are shared across the entries captured in one back stack update. | ||
|
|
||
| ## Observation and coordination | ||
|
|
||
| `BackStackObserver` detects changes and records navigation data for one back stack. | ||
| `CoordinatedBackStackObserver` connects that observer to `NavScopes`, which coordinates access to | ||
| shared scope state with other navigation roots. The lifecycle and ownership rules live in the | ||
| [sibling lifecycle package](../lifecycle/README.md). |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.