|
|
@ -42,9 +42,7 @@ Future main() async {
|
|
|
|
options.tracesSampleRate = 1.0;
|
|
|
|
options.tracesSampleRate = 1.0;
|
|
|
|
options.reportPackages = false;
|
|
|
|
options.reportPackages = false;
|
|
|
|
Sentry.configureScope(
|
|
|
|
Sentry.configureScope(
|
|
|
|
(scope) => scope.setUser(
|
|
|
|
setSentryScope,
|
|
|
|
SentryUser(username: Platform.environment['USER']),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
appRunner: () => runApp(const MyApp()),
|
|
|
|
appRunner: () => runApp(const MyApp()),
|
|
|
@ -115,9 +113,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Sentry.captureMessage(
|
|
|
|
Sentry.captureMessage(
|
|
|
|
'Found ${result.length} codes.',
|
|
|
|
'Found ${result.length} codes.',
|
|
|
|
withScope: (scope) {
|
|
|
|
withScope: setSentryScope,
|
|
|
|
SentryUser(username: Platform.environment['USER']);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
Future.delayed(const Duration(seconds: 3), () {
|
|
|
|
Future.delayed(const Duration(seconds: 3), () {
|
|
|
|
if (status == Status.notFound) {
|
|
|
|
if (status == Status.notFound) {
|
|
|
|