feat : new injection logic

test : some file :)
chore : upgrade android gradle
This commit is contained in:
2025-08-19 11:22:34 +03:30
parent 9b04c0374b
commit 7c3c1280b2
47 changed files with 1139 additions and 377 deletions

View File

@@ -20,7 +20,7 @@ Future<void> setupLiveStockDI() async {
IsolatedHive.registerAdapters();
iLog("Sssssssssssssssssssss");
final tokenService = Get.find<TokenStorageService>();
Get.put<LiveStockStorageService>(LiveStockStorageService());
if (tokenService.baseurl.value == null) {
@@ -31,7 +31,7 @@ Future<void> setupLiveStockDI() async {
diLiveStock.registerLazySingleton<AppInterceptor>(
() => AppInterceptor(
refreshTokenCallback: () async {
// Use lazy access to avoid circular dependency
/* // Use lazy access to avoid circular dependency
final authRepository = diLiveStock.get<AuthRepository>();
final hasAuthenticated = await authRepository.hasAuthenticated();
if (hasAuthenticated) {
@@ -39,7 +39,7 @@ Future<void> setupLiveStockDI() async {
authRequest: {'refresh': tokenService.refreshToken.value},
);
return newToken?.access;
}
}*/
return null;
},
saveTokenCallback: (String newToken) async {