feat(native): add Sentry native crash reporting with privacy-conscious defaults

Adds @sentry/react-native for native crash reporting (segfaults, OOM,
ANRs, watchdog kills) that PostHog's JS-level tracking can't capture.

Privacy measures:
- sendDefaultPii: false, no tracing/replay/profiling/screenshots
- beforeSend strips user/request data from JS errors
- beforeBreadcrumb drops navigation/http breadcrumbs
- Screenshot, ViewHierarchy, UserInteraction integrations filtered out

Crash reporting has its own toggle in Settings, independent from the
existing analytics toggle. Enabled by default, takes effect on restart
since native crash handlers must be installed at init time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
jakeandClaude Opus 4.6 committed 2026-03-24 09:38:53 -04:00
1 parent 4fc6b2f8d1
commit 647784d8fc
16 files changed
+543 -313

No files matched your search

+9 -9
View File
@@ -16,13 +16,13 @@
"@lingui/metro-transformer": "5.9.3",
"@lingui/react": "5.9.3",
"@lingui/vite-plugin": "5.9.3",
"@orpc/client": "1.13.9",
"@orpc/contract": "1.13.9",
"@orpc/json-schema": "1.13.9",
"@orpc/openapi": "1.13.9",
"@orpc/server": "1.13.9",
"@orpc/tanstack-query": "1.13.9",
"@orpc/zod": "1.13.9",
"@orpc/client": "1.13.10",
"@orpc/contract": "1.13.10",
"@orpc/json-schema": "1.13.10",
"@orpc/openapi": "1.13.10",
"@orpc/server": "1.13.10",
"@orpc/tanstack-query": "1.13.10",
"@orpc/zod": "1.13.10",
"@tanstack/react-form": "1.28.5",
"@tanstack/react-query": "5.95.2",
"@types/bun": "1.3.11",
@@ -73,8 +73,8 @@
"eslint-plugin-drizzle": "0.2.3",
"eslint-plugin-lingui": "0.11.0",
"eslint-plugin-react-hooks": "7.0.1",
"oxfmt": "0.41.0",
"oxlint": "1.56.0",
"oxfmt": "0.42.0",
"oxlint": "1.57.0",
"playwright": "1.58.2",
"turbo": "2.8.20",
"typescript": "catalog:",