feat: replace rustrak with glitchtip

This commit is contained in:
edde746
2026-03-03 14:27:11 +01:00
parent 013bcfbece
commit 02e175e4d3
6 changed files with 56 additions and 40 deletions
+14 -2
View File
@@ -996,13 +996,25 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
ListTile(
leading: const AppIcon(Symbols.error_rounded, fill: 1),
title: const Text('Test Sentry'),
subtitle: const Text('Send a test error to Bugsink'),
subtitle: const Text('Send a test error'),
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
onTap: () {
Sentry.captureException(Exception('Sentry test from settings'));
throw Exception("Example exception");
showSnackBar(context, 'Test error sent to Sentry');
},
),
if (kDebugMode)
ListTile(
leading: const AppIcon(Symbols.timer_rounded, fill: 1),
title: const Text('Test ANR'),
subtitle: const Text('Block the main thread for 10 seconds'),
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
onTap: () {
showSnackBar(context, 'Blocking main thread...');
final end = DateTime.now().add(const Duration(seconds: 10));
while (DateTime.now().isBefore(end)) {}
},
),
],
),
);