feat: add sentry

This commit is contained in:
problematicconsumer
2023-09-17 00:23:31 +03:30
parent 2668684f15
commit f4177da9f9
23 changed files with 205 additions and 332 deletions

View File

@@ -7,6 +7,23 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'general_prefs.g.dart';
@Riverpod(keepAlive: true)
class IntroCompleted extends _$IntroCompleted {
late final _pref = Pref(
ref.watch(sharedPreferencesProvider),
"intro_completed",
false,
);
@override
bool build() => _pref.getValue();
Future<void> update(bool value) {
state = value;
return _pref.update(value);
}
}
@Riverpod(keepAlive: true)
class SilentStartNotifier extends _$SilentStartNotifier {
late final _pref =
@@ -22,11 +39,11 @@ class SilentStartNotifier extends _$SilentStartNotifier {
}
@Riverpod(keepAlive: true)
class AutoCrashReport extends _$AutoCrashReport {
class EnableAnalytics extends _$EnableAnalytics {
late final _pref = Pref(
ref.watch(sharedPreferencesProvider),
"auto_crash_report",
false,
"enable_analytics",
true,
);
@override