Prepare secure config and reliable workout sync

This commit is contained in:
Hamza-Ayed
2026-10-04 00:33:44 +03:00
parent 05f1c9ec6b
commit e7f3c777d1
17 changed files with 553 additions and 119 deletions
+2 -3
View File
@@ -12,10 +12,9 @@ void main() async {
// 1. تهيئة الخدمات (Services Initialization)
// بالترتيب: قاعدة البيانات -> الـ GPS -> المزامنة -> التحليل
await Get.putAsync(
() => DatabaseService().onInit().then((_) => DatabaseService()));
await Get.putAsync<DatabaseService>(() => DatabaseService().init());
Get.put(GpsService());
await Get.putAsync(() => SyncService().onInit().then((_) => SyncService()));
await Get.putAsync<SyncService>(() => SyncService().init());
Get.put(AnalyticsService());
// 2. تهيئة المتحكمات (Controllers)