From fb375ddf2439208ab88e9ceb37edd72b87f2a994 Mon Sep 17 00:00:00 2001 From: npub1ft62tztwwm2x9xamk25smmuaj4sfckdkldksruf2x2jwqalffkrq0g7arr <4af4a5896e76d4629bbbb2a90def9d95609c59b6fb6d01f12a32a4e077e94d86@sprout-oss.stage.blox.sqprod.co> Date: Sat, 18 Jul 2026 19:50:09 -0700 Subject: [PATCH 1/6] feat(mobile): add consent-gated crash reporting Co-authored-by: npub1ft62tztwwm2x9xamk25smmuaj4sfckdkldksruf2x2jwqalffkrq0g7arr <4af4a5896e76d4629bbbb2a90def9d95609c59b6fb6d01f12a32a4e077e94d86@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub1ft62tztwwm2x9xamk25smmuaj4sfckdkldksruf2x2jwqalffkrq0g7arr <4af4a5896e76d4629bbbb2a90def9d95609c59b6fb6d01f12a32a4e077e94d86@sprout-oss.stage.blox.sqprod.co> --- .../android/app/src/main/AndroidManifest.xml | 14 +- mobile/ios/Podfile.lock | 20 ++ .../lib/features/settings/settings_page.dart | 41 +++ mobile/lib/main.dart | 17 +- .../lib/shared/diagnostics/diagnostics.dart | 3 + .../diagnostics/diagnostics_controller.dart | 135 ++++++++++ .../diagnostics/diagnostics_provider.dart | 9 + .../lib/shared/diagnostics/sentry_config.dart | 85 ++++++ mobile/pubspec.lock | 88 ++++++- mobile/pubspec.yaml | 9 + .../features/settings/settings_page_test.dart | 170 ++++++++++++ .../diagnostics_controller_test.dart | 245 ++++++++++++++++++ .../diagnostics/sentry_config_test.dart | 91 +++++++ 13 files changed, 912 insertions(+), 15 deletions(-) create mode 100644 mobile/lib/shared/diagnostics/diagnostics.dart create mode 100644 mobile/lib/shared/diagnostics/diagnostics_controller.dart create mode 100644 mobile/lib/shared/diagnostics/diagnostics_provider.dart create mode 100644 mobile/lib/shared/diagnostics/sentry_config.dart create mode 100644 mobile/test/features/settings/settings_page_test.dart create mode 100644 mobile/test/shared/diagnostics/diagnostics_controller_test.dart create mode 100644 mobile/test/shared/diagnostics/sentry_config_test.dart diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xml index 93c3f12831..b81bf7f375 100644 --- a/mobile/android/app/src/main/AndroidManifest.xml +++ b/mobile/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ - + + + + +