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:
@@ -7,7 +7,7 @@
|
||||
//
|
||||
// 跑法:
|
||||
// flutter test integration_test/app_test.dart \
|
||||
// --flavor dev -t lib/main_dev.dart --dart-define-from-file=env/dev.json
|
||||
// --flavor dev
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
import 'package:app/bootstrap.dart';
|
||||
@@ -20,7 +20,16 @@ void main() {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
testWidgets('冷启动后停在登录页', (WidgetTester tester) async {
|
||||
await bootstrap(AppEnv.fromDartDefine(flavor: 'dev'));
|
||||
await bootstrap(
|
||||
AppEnv.fromConfig(
|
||||
flavor: 'dev',
|
||||
values: <String, Object?>{
|
||||
'API_BASE_URL': 'https://api-dev.example.com',
|
||||
'ENABLE_LOG': true,
|
||||
'H5_ALLOWED_HOSTS': 'h5-dev.example.com',
|
||||
},
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// 没有 token → SessionUnauthenticated → redirect 到 /login(04)。
|
||||
|
||||
Reference in New Issue
Block a user