chore: remove sentry

This commit is contained in:
Lucas.Xu 2024-08-17 19:17:01 +08:00
parent 9f6edbab30
commit 73b45e2590
8 changed files with 0 additions and 79 deletions

View File

@ -67,11 +67,6 @@ PODS:
- SDWebImage (5.14.2): - SDWebImage (5.14.2):
- SDWebImage/Core (= 5.14.2) - SDWebImage/Core (= 5.14.2)
- SDWebImage/Core (5.14.2) - SDWebImage/Core (5.14.2)
- Sentry/HybridSDK (8.33.0)
- sentry_flutter (8.7.0):
- Flutter
- FlutterMacOS
- Sentry/HybridSDK (= 8.33.0)
- share_plus (0.0.1): - share_plus (0.0.1):
- Flutter - Flutter
- shared_preferences_foundation (0.0.1): - shared_preferences_foundation (0.0.1):
@ -103,7 +98,6 @@ DEPENDENCIES:
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`) - share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/darwin`) - sqflite (from `.symlinks/plugins/sqflite/darwin`)
@ -116,7 +110,6 @@ SPEC REPOS:
- DKPhotoGallery - DKPhotoGallery
- ReachabilitySwift - ReachabilitySwift
- SDWebImage - SDWebImage
- Sentry
- SwiftyGif - SwiftyGif
- Toast - Toast
@ -151,8 +144,6 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/path_provider_foundation/darwin" :path: ".symlinks/plugins/path_provider_foundation/darwin"
permission_handler_apple: permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios" :path: ".symlinks/plugins/permission_handler_apple/ios"
sentry_flutter:
:path: ".symlinks/plugins/sentry_flutter/ios"
share_plus: share_plus:
:path: ".symlinks/plugins/share_plus/ios" :path: ".symlinks/plugins/share_plus/ios"
shared_preferences_foundation: shared_preferences_foundation:
@ -184,8 +175,6 @@ SPEC CHECKSUMS:
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2 permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
SDWebImage: b9a731e1d6307f44ca703b3976d18c24ca561e84 SDWebImage: b9a731e1d6307f44ca703b3976d18c24ca561e84
Sentry: 8560050221424aef0bebc8e31eedf00af80f90a6
sentry_flutter: e26b861f744e5037a3faf9bf56603ec65d658a61
share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5 share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec

View File

@ -27,7 +27,6 @@ import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:sentry/sentry.dart';
import 'package:toastification/toastification.dart'; import 'package:toastification/toastification.dart';
class MobileHomeScreen extends StatelessWidget { class MobileHomeScreen extends StatelessWidget {
@ -66,14 +65,6 @@ class MobileHomeScreen extends StatelessWidget {
return const WorkspaceFailedScreen(); return const WorkspaceFailedScreen();
} }
Sentry.configureScope(
(scope) => scope.setUser(
SentryUser(
id: userProfile.id.toString(),
),
),
);
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
bottom: false, bottom: false,

View File

@ -110,7 +110,6 @@ class FlowyRunner {
// this task should be first task, for handling platform errors. // this task should be first task, for handling platform errors.
// don't catch errors in test mode // don't catch errors in test mode
if (!mode.isUnitTest) const PlatformErrorCatcherTask(), if (!mode.isUnitTest) const PlatformErrorCatcherTask(),
if (!mode.isUnitTest) const InitSentryTask(),
// this task should be second task, for handling memory leak. // this task should be second task, for handling memory leak.
// there's a flag named _enable in memory_leak_detector.dart. If it's false, the task will be ignored. // there's a flag named _enable in memory_leak_detector.dart. If it's false, the task will be ignored.
MemoryLeakDetectorTask(), MemoryLeakDetectorTask(),

View File

@ -11,6 +11,5 @@ export 'platform_error_catcher.dart';
export 'platform_service.dart'; export 'platform_service.dart';
export 'recent_service_task.dart'; export 'recent_service_task.dart';
export 'rust_sdk.dart'; export 'rust_sdk.dart';
export 'sentry.dart';
export 'supabase_task.dart'; export 'supabase_task.dart';
export 'windows.dart'; export 'windows.dart';

View File

@ -1,30 +0,0 @@
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 {}
}

View File

@ -26,7 +26,6 @@ import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart'
import 'package:flowy_infra_ui/style_widget/container.dart'; import 'package:flowy_infra_ui/style_widget/container.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:sentry/sentry.dart';
import 'package:sized_context/sized_context.dart'; import 'package:sized_context/sized_context.dart';
import 'package:styled_widget/styled_widget.dart'; import 'package:styled_widget/styled_widget.dart';
@ -68,14 +67,6 @@ class DesktopHomeScreen extends StatelessWidget {
return const WorkspaceFailedScreen(); return const WorkspaceFailedScreen();
} }
Sentry.configureScope(
(scope) => scope.setUser(
SentryUser(
id: userProfile.id.toString(),
),
),
);
return AFFocusManager( return AFFocusManager(
child: MultiBlocProvider( child: MultiBlocProvider(
key: ValueKey(userProfile.id), key: ValueKey(userProfile.id),

View File

@ -1723,22 +1723,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.3.8" version: "0.3.8"
sentry:
dependency: "direct main"
description:
name: sentry
sha256: "0f787e27ff617e4f88f7074977240406a9c5509444bac64a4dfa5b3200fb5632"
url: "https://pub.dev"
source: hosted
version: "8.7.0"
sentry_flutter:
dependency: "direct main"
description:
name: sentry_flutter
sha256: fbbb47d72ccca48be25bf3c2ced6ab6e872991af3a0ba78e54be8d138f2e053f
url: "https://pub.dev"
source: hosted
version: "8.7.0"
share_plus: share_plus:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@ -151,8 +151,6 @@ dependencies:
scroll_to_index: ^3.0.1 scroll_to_index: ^3.0.1
extended_text_field: ^15.0.0 extended_text_field: ^15.0.0
extended_text_library: ^12.0.0 extended_text_library: ^12.0.0
sentry_flutter: ^8.7.0
sentry: ^8.7.0
dev_dependencies: dev_dependencies:
flutter_lints: ^4.0.0 flutter_lints: ^4.0.0