Auth
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:connectivity_plus/connectivity_plus.dart' as _i895;
|
||||
import 'package:dio/dio.dart' as _i361;
|
||||
import 'package:enaklo/application/auth/auth_bloc.dart' as _i771;
|
||||
import 'package:enaklo/application/auth/check_phone_form/check_phone_form_bloc.dart'
|
||||
as _i869;
|
||||
import 'package:enaklo/application/auth/login_form/login_form_bloc.dart'
|
||||
@@ -31,6 +32,8 @@ import 'package:enaklo/common/di/di_shared_preferences.dart' as _i672;
|
||||
import 'package:enaklo/common/network/network_client.dart' as _i109;
|
||||
import 'package:enaklo/domain/auth/auth.dart' as _i995;
|
||||
import 'package:enaklo/env.dart' as _i372;
|
||||
import 'package:enaklo/infrastructure/auth/datasources/local_data_provider.dart'
|
||||
as _i1003;
|
||||
import 'package:enaklo/infrastructure/auth/datasources/remote_data_provider.dart'
|
||||
as _i818;
|
||||
import 'package:enaklo/infrastructure/auth/repositories/auth_repository.dart'
|
||||
@@ -65,6 +68,9 @@ extension GetItInjectableX on _i174.GetIt {
|
||||
() => _i109.NetworkClient(gh<_i895.Connectivity>()),
|
||||
);
|
||||
gh.factory<_i372.Env>(() => _i372.DevEnv(), registerFor: {_dev});
|
||||
gh.factory<_i1003.AuthLocalDataProvider>(
|
||||
() => _i1003.AuthLocalDataProvider(gh<_i460.SharedPreferences>()),
|
||||
);
|
||||
gh.factory<_i372.Env>(() => _i372.ProdEnv(), registerFor: {_prod});
|
||||
gh.lazySingleton<_i842.ApiClient>(
|
||||
() => _i842.ApiClient(gh<_i361.Dio>(), gh<_i372.Env>()),
|
||||
@@ -73,10 +79,10 @@ extension GetItInjectableX on _i174.GetIt {
|
||||
() => _i818.AuthRemoteDataProvider(gh<_i842.ApiClient>()),
|
||||
);
|
||||
gh.factory<_i995.IAuthRepository>(
|
||||
() => _i879.AuthRepository(gh<_i818.AuthRemoteDataProvider>()),
|
||||
);
|
||||
gh.factory<_i510.LoginFormBloc>(
|
||||
() => _i510.LoginFormBloc(gh<_i995.IAuthRepository>()),
|
||||
() => _i879.AuthRepository(
|
||||
gh<_i818.AuthRemoteDataProvider>(),
|
||||
gh<_i1003.AuthLocalDataProvider>(),
|
||||
),
|
||||
);
|
||||
gh.factory<_i627.ResendFormBloc>(
|
||||
() => _i627.ResendFormBloc(gh<_i995.IAuthRepository>()),
|
||||
@@ -93,6 +99,12 @@ extension GetItInjectableX on _i174.GetIt {
|
||||
gh.factory<_i521.VerifyFormBloc>(
|
||||
() => _i521.VerifyFormBloc(gh<_i995.IAuthRepository>()),
|
||||
);
|
||||
gh.factory<_i771.AuthBloc>(
|
||||
() => _i771.AuthBloc(gh<_i995.IAuthRepository>()),
|
||||
);
|
||||
gh.factory<_i510.LoginFormBloc>(
|
||||
() => _i510.LoginFormBloc(gh<_i995.IAuthRepository>()),
|
||||
);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user