feat : new injection logic
test : some file :) chore : upgrade android gradle
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user