mobile_skt/lib/main.dart

32 lines
1.1 KiB
Dart
Raw Normal View History

import 'package:flutter/material.dart';
2024-03-28 15:13:27 +08:00
// import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:sk_base_mobile/global.dart';
import 'package:sk_base_mobile/index.dart';
import 'package:sk_base_mobile/util/logger_util.dart';
Future<void> main() async {
try {
await Global.init();
} catch (e) {
2024-03-31 17:13:29 +08:00
LoggerUtil().error('Init failed, please try again.$e');
}
2024-03-28 15:13:27 +08:00
// await SentryFlutter.init(
// (options) {
// options.environment = isProduction ? 'production' : 'development';
// // options.beforeSend = (event, {hint}) {
// // if (!isProduction) {
// // return null;
// // }
// // return event;
// // };
// options.dsn =
// 'https://ce4f75d3cd9120a1bd9f1a807e573de1@o1078619.ingest.us.sentry.io/4506981258952704';
// // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
// // We recommend adjusting this value in production.
// options.tracesSampleRate = 1.0;
// },
// appRunner: () => runApp(const IndexPage()),
// );
return runApp(const IndexPage());
}