From c98274a18e3cc2238f67cb38fc414fb8ca4bb594 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 5 Mar 2025 15:23:46 +0100 Subject: [PATCH] drop workmanager --- ios/Runner/AppDelegate.swift | 8 -------- pubspec_base.yaml | 1 - 2 files changed, 9 deletions(-) diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index fbc580870..4bf309434 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -1,6 +1,5 @@ import UIKit import Flutter -import workmanager @main @objc class AppDelegate: FlutterAppDelegate { @@ -12,13 +11,6 @@ import workmanager UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate } - WorkmanagerPlugin.setPluginRegistrantCallback { registry in - // Registry in this case is the FlutterEngine that is created in Workmanager's - // performFetchWithCompletionHandler or BGAppRefreshTask. - // This will make other plugins available during a background operation. - GeneratedPluginRegistrant.register(with: registry) - } - makeSecure() let controller : FlutterViewController = window?.rootViewController as! FlutterViewController diff --git a/pubspec_base.yaml b/pubspec_base.yaml index 1f13af1df..4781e8dd4 100644 --- a/pubspec_base.yaml +++ b/pubspec_base.yaml @@ -68,7 +68,6 @@ dependencies: git: url: https://github.com/MrCyjaneK/device_display_brightness.git ref: 4cac18c446ce686f3d75b1565badbd7da439bbd9 - workmanager: ^0.5.2 flutter_background_service: ^5.0.9 flutter_local_notifications: ^17.2.2 battery_plus: ^6.2.1