refactor: remove CrashReporter and related logging components

- Removed CrashReporter interface and its implementation, SentryCrashReporter.
- Deleted log buffering functionality and associated LogBuffer class.
- Updated LoggerAppLogger to eliminate dependencies on removed components.
- Simplified logging structure to focus on AppLogger and sensitive data scrubbing.
- Adjusted AppEnv to remove Sentry-related configurations.
- Refactored tests to align with the new logging architecture.
This commit is contained in:
Guangfei.Zhao
2026-09-03 11:39:04 +08:00
parent d786fc31ff
commit 782fba80bc
39 changed files with 192 additions and 1152 deletions
+4 -11
View File
@@ -26,7 +26,6 @@ dependencies:
flutter_riverpod: 3.2.1
intl: any
native_scan: ^0.1.0
sentry_flutter: ^9.26.0
dev_dependencies:
flutter_lints: ^6.0.0
@@ -34,19 +33,13 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
sentry_dart_plugin: ^3.4.0
# 只为测试拿 InMemorySharedPreferencesAsync,不在 lib/ 里出现。
shared_preferences_platform_interface: ^2.4.2
flutter:
uses-material-design: true
generate: true
# release 构建后由 CI 调用 `dart run sentry_dart_plugin` 上传符号表。
# 见 08 §release 构建 和 13 §崩溃上报。
sentry:
upload_debug_symbols: true
upload_source_maps: false
project: conti-retail-app
org: continental
# auth_token 只从 CI 变量 SENTRY_AUTH_TOKEN 读,绝不写进仓库
assets:
- env/dev.json
- env/uat.json
- env/prod.json