mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
31 lines
692 B
Dart
31 lines
692 B
Dart
import '../startup.dart';
|
|
|
|
class InitSentryTask extends LaunchTask {
|
|
const InitSentryTask();
|
|
|
|
@override
|
|
Future<void> initialize(LaunchContext context) async {
|
|
// Disable sentry temporarily, it will cause the app unresponsive
|
|
return;
|
|
|
|
// const dsn = Env.sentryDsn;
|
|
// if (dsn.isEmpty) {
|
|
// Log.info('Sentry DSN is not set, skipping initialization');
|
|
// return;
|
|
// }
|
|
|
|
// Log.info('Initializing Sentry');
|
|
|
|
// await SentryFlutter.init(
|
|
// (options) {
|
|
// options.dsn = dsn;
|
|
// options.tracesSampleRate = 0.1;
|
|
// options.profilesSampleRate = 0.1;
|
|
// },
|
|
// );
|
|
}
|
|
|
|
@override
|
|
Future<void> dispose() async {}
|
|
}
|