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
+15
View File
@@ -0,0 +1,15 @@
/// 应用唯一 Dart 入口。
///
/// Android、iOS 与 Web 用 `--flavor dev|uat|prod` 选择环境;未提供 flavor
/// 的平台(例如 DevEco 的默认 HAP 构建)统一使用 dev。
library;
import 'package:app/bootstrap.dart';
import 'package:app/src/bundled_app_env.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show appFlavor;
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await bootstrap(await loadBundledAppEnv(flavor: appFlavor));
}