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:
+1
-1
@@ -37,7 +37,7 @@ final goRouterProvider = Provider<GoRouter>((ref) {
|
||||
final router = GoRouter(
|
||||
navigatorKey: rootNavigatorKey, // 全局 dialog / 顶层跳转需要它
|
||||
initialLocation: '/home',
|
||||
observers: [NavigationObserver(ref.read(crashReporterProvider))], // 崩溃前的页面路径,见 13
|
||||
observers: const [], // 路由观测由 app 层按需注入
|
||||
redirect: (context, state) {
|
||||
// read 不是 watch:这里只要当前值,订阅由下面的 listen 负责
|
||||
final auth = ref.read(authStateProvider);
|
||||
|
||||
Reference in New Issue
Block a user