Skip to content

feat(android-nav3): [Android Nav3 3] Track navigation state transitions - #6108

Merged
0xadam-brown merged 1 commit into
feat/android-nav3-module-stackfrom
feat/android-nav3-module-3-observer
Sep 16, 2026
Merged

0xadam-brown merged 1 commit into
feat/android-nav3-module-stackfrom
feat/android-nav3-module-3-observer

Conversation

@0xadam-brown

@0xadam-brown 0xadam-brown commented Sep 12, 2026

Copy link
Copy Markdown
Member

PR Stack (Android Nav3)


📜 Description

Add the observer layer for Android Nav3.

This PR teaches the module how to interpret Navigation 3 back stack changes as Sentry state
transitions: breadcrumbs, screen context, back stack context, and route-scoped navigation
transactions.

💡 Motivation and Context

With route modeling in place, the next boundary is the state machine that reacts to navigation
changes. Keeping that behavior separate makes it easier to review lifecycle and tracing semantics
without mixing in Compose effect concerns yet.

💚 How did you test it?

  • ./gradlew :sentry-android-navigation3:testReleaseUnitTest
  • ./gradlew spotlessApply
  • ./gradlew apiDump

📝 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

Introduce the Compose-facing effect that owns this observer in application code.

#skip-changelog

⚠️ Merge this PR using a merge commit (not squash). Only the collection branch is squash-merged into main.

@github-actions

github-actions Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against d1870f0

@sentry

sentry Bot commented Sep 12, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@0xadam-brown 0xadam-brown added the deep-dive PR needs a thorough review of design, behavior, and edge cases label Sep 12, 2026
Add the observer layer that turns Navigation 3 back stack changes into breadcrumbs, scope state, and navigation transactions. This is also the point where the module starts carrying generated BuildConfig version metadata and its first non-empty API snapshot.
@0xadam-brown
0xadam-brown force-pushed the feat/android-nav3-module-2-routes branch from addea5d to c9f806c Compare September 16, 2026 03:31
@0xadam-brown
0xadam-brown force-pushed the feat/android-nav3-module-3-observer branch from 6fbcf31 to d1870f0 Compare September 16, 2026 03:31
Base automatically changed from feat/android-nav3-module-2-routes to feat/android-nav3-module-stack September 16, 2026 03:31
@0xadam-brown
0xadam-brown merged commit d1870f0 into feat/android-nav3-module-stack Sep 16, 2026
@0xadam-brown
0xadam-brown deleted the feat/android-nav3-module-3-observer branch September 16, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deep-dive PR needs a thorough review of design, behavior, and edge cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant