✅ NOUVEAU SERVICE CRÉÉ: - DataLoadingService: gère tout le chargement des données au login - Sépare les responsabilités: UserRepository se concentre sur l'auth - Simplification massive du code de connexion ✅ USERREPOSITORY REFACTORISÉ: - Suppression de toute la logique de chargement de données (déplacée vers DataLoadingService) - Délégation complète aux services singleton (CurrentUserService, CurrentAmicaleService) - Constructeur ultra-simplifié (plus d'injection ApiService) - Méthodes d'auth optimisées et clarifiées ✅ REPOSITORIES SIMPLIFIÉS: - AmicaleRepository: constructeur sans paramètres, ApiService.instance - ClientRepository: même pattern de simplification - MembreRepository: suppression injection, getters sécurisés - OperationRepository: utilisation ApiService.instance - PassageRepository: simplification massive, nouveau pattern - SectorRepository: optimisation et nouvelle structure ✅ ARCHITECTURE SINGLETONS: - ApiService: pattern singleton thread-safe - CurrentUserService: gestion utilisateur connecté + persistence Hive (Box user) - CurrentAmicaleService: gestion amicale courante + auto-sync - Box Hive 'users' renommée en 'user' avec migration automatique ✅ APP.DART & MAIN.DART: - Suppression injections multiples dans repositories - Intégration des services singleton dans main.dart - Router simplifié avec CurrentUserService État: Architecture singleton opérationnelle, prêt pour tests et widgets
32 lines
1.0 KiB
Markdown
32 lines
1.0 KiB
Markdown
Extension Discovery Cache
|
|
=========================
|
|
|
|
This folder is used by `package:extension_discovery` to cache lists of
|
|
packages that contains extensions for other packages.
|
|
|
|
DO NOT USE THIS FOLDER
|
|
----------------------
|
|
|
|
* Do not read (or rely) the contents of this folder.
|
|
* Do write to this folder.
|
|
|
|
If you're interested in the lists of extensions stored in this folder use the
|
|
API offered by package `extension_discovery` to get this information.
|
|
|
|
If this package doesn't work for your use-case, then don't try to read the
|
|
contents of this folder. It may change, and will not remain stable.
|
|
|
|
Use package `extension_discovery`
|
|
---------------------------------
|
|
|
|
If you want to access information from this folder.
|
|
|
|
Feel free to delete this folder
|
|
-------------------------------
|
|
|
|
Files in this folder act as a cache, and the cache is discarded if the files
|
|
are older than the modification time of `.dart_tool/package_config.json`.
|
|
|
|
Hence, it should never be necessary to clear this cache manually, if you find a
|
|
need to do please file a bug.
|