Prepare secure config and reliable workout sync
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user