Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9ca5625
add screen to sentry app
denrase Jul 11, 2023
1fa6515
sett event.contexts.app.screen to navigator observers current route
denrase Jul 11, 2023
90b59e1
add changelog entry
denrase Jul 11, 2023
93debb7
remove failing test, as lifecyle may init new app instance
denrase Jul 11, 2023
8eadcdd
rename property and add more comments
denrase Jul 17, 2023
475ce7a
Merge branch 'main' into feat/app-context-screen
denrase Jul 17, 2023
8e81ee5
Merge branch 'main' into feat/app-context-screen
denrase Jul 17, 2023
b356571
update changelog
denrase Jul 17, 2023
bacf003
Merge branch 'main' into feat/app-context-screen
denrase Jul 17, 2023
2630144
Merge branch 'main' into feat/app-context-screen
denrase Jul 24, 2023
320fe7a
change to array
denrase Jul 31, 2023
5ae2e54
change comment
denrase Jul 31, 2023
2c2e6d2
update comment
denrase Jul 31, 2023
6ac2ec6
update changelog entry
denrase Jul 31, 2023
f2b295c
Merge branch 'main' into feat/app-context-screen
denrase Aug 22, 2023
54283bb
fix changelog
denrase Aug 22, 2023
c7eec5f
Merge branch 'main' into feat/app-context-screen
denrase Aug 29, 2023
1818545
run `dart fix --apply`
denrase Aug 29, 2023
789acd7
Merge branch 'main' into feat/app-context-screen
denrase Sep 4, 2023
8c2704c
Merge branch 'main' into feat/app-context-screen
denrase Sep 5, 2023
295681c
Merge branch 'main' into feat/app-context-screen
denrase Sep 11, 2023
c027226
fix changelog
denrase Sep 11, 2023
8f4e6c8
Merge branch 'main' into feat/app-context-screen
denrase Oct 2, 2023
6da8a51
fix changelog
denrase Oct 2, 2023
445babb
Add missing import
denrase Oct 3, 2023
89c47ee
Merge branch 'main' into feat/app-context-screen
denrase Oct 9, 2023
9e07c77
Update changelog
denrase Oct 9, 2023
3cef7aa
rename method
denrase Oct 9, 2023
5975e5c
Also set current route name on replace
denrase Oct 9, 2023
6300dc4
Merge branch 'main' into feat/app-context-screen
denrase Oct 24, 2023
f977958
mark current route as internal
denrase Oct 24, 2023
cef9cc7
Merge branch 'main' into feat/app-context-screen
denrase Oct 30, 2023
6aacd98
fix changelog
denrase Oct 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename method
  • Loading branch information
denrase committed Oct 9, 2023
commit 3cef7aaa5dd3671306c02b88e8ccfeaa70685292
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FlutterEnricherEventProcessor implements EventProcessor {

final app = contexts.app;
if (app != null) {
_getAppScreen(contexts, app);
contexts.app = _appWithCurrentRouteViewName(app);
}

// Flutter has a lot of Accessibility Settings available and exposes them
Expand Down Expand Up @@ -244,12 +244,14 @@ class FlutterEnricherEventProcessor implements EventProcessor {
);
}

void _getAppScreen(Contexts contexts, SentryApp app) {
SentryApp _appWithCurrentRouteViewName(SentryApp app) {
final currentRouteName = SentryNavigatorObserver.currentRouteName;
if (currentRouteName != null) {
final viewNames = app.viewNames ?? [];
viewNames.add(currentRouteName);
contexts.app = app.copyWith(viewNames: viewNames);
return app.copyWith(viewNames: viewNames);
} else {
return app;
}
}
}