Enable error reports without cooldown in testing builds
OmarHatem committed
Apr 30, 2025 at 10:27 UTC
0188535eb97f3c64060485051e00f37c269f0806
1 file changed
+2
-1
lib/utils/exception_handler.dart
+2
-1
@@ -20,7 +20,8 @@ import 'package:shared_preferences/shared_preferences.dart';
20
21
class ExceptionHandler {
22
static bool _hasError = false;
23
- static const _coolDownDurationInDays = 7;
23
+ static const _coolDownDurationInDays =
24
+ bool.fromEnvironment('hasDevOptions', defaultValue: kDebugMode) ? 0 : 7;
25
static File? _file;
26
27
static Future<void> _saveException(String? error, StackTrace? stackTrace,