refactor(calendar): remove deprecated reminder components

This commit is contained in:
qzl
2026-03-20 18:42:58 +08:00
parent 9ece726de0
commit 6e35fff9a4
20 changed files with 47 additions and 1143 deletions
-8
View File
@@ -17,7 +17,6 @@ import 'features/auth/presentation/bloc/auth_state.dart';
import 'features/calendar/data/services/calendar_service.dart';
import 'features/calendar/data/services/calendar_repository.dart';
import 'features/calendar/reminders/reminder_action_executor.dart';
import 'features/calendar/reminders/ui/reminder_foreground_presenter.dart';
import 'features/calendar/ui/calendar_state_manager.dart';
import 'features/chat/presentation/bloc/chat_bloc.dart';
import 'features/settings/data/services/settings_user_cache.dart';
@@ -28,10 +27,6 @@ void main() async {
await configureDependencies();
await AppConstants.init();
final rootNavigatorKey = GlobalKey<NavigatorState>();
final reminderForegroundPresenter = ReminderForegroundPresenter(
navigatorKey: rootNavigatorKey,
executor: sl<ReminderActionExecutor>(),
);
sl<LocalNotificationService>().bindActionHandler(({
required action,
required payload,
@@ -41,9 +36,6 @@ void main() async {
payload: payload,
);
});
sl<LocalNotificationService>().bindInAppReminderHandler(
reminderForegroundPresenter.present,
);
await sl<LocalNotificationService>().initialize();
final authBloc = sl<AuthBloc>();