Update: 2026-05-08 06:19:56

This commit is contained in:
Hamza-Ayed
2026-05-08 06:19:56 +03:00
parent df92a44878
commit 753497649a
18 changed files with 1310 additions and 21 deletions

View File

@@ -6,6 +6,8 @@ import 'app/routes/app_pages.dart';
import 'core/services/push_notification_service.dart';
import 'core/services/upload_progress_service.dart';
import 'core/services/home_widget_service.dart';
import 'core/services/shorebird_update_service.dart';
import 'core/services/device_security_service.dart';
import 'app/theme/app_theme.dart';
@pragma('vm:entry-point')
@@ -24,9 +26,13 @@ void main() async {
// 2. Register background handler
FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
// 3. Register global services
// 3. Security check (MUST be first)
Get.put(DeviceSecurityService(), permanent: true);
// 4. Register global services
Get.put(UploadProgressService(), permanent: true);
Get.put(HomeWidgetService(), permanent: true);
Get.put(ShorebirdUpdateService(), permanent: true);
runApp(const MusadaqApp());
}