45 lines
1.6 KiB
Dart
45 lines
1.6 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
// **************************************************************************
|
|
// InjectableConfigGenerator
|
|
// **************************************************************************
|
|
|
|
// ignore_for_file: unnecessary_lambdas
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
// coverage:ignore-file
|
|
|
|
import 'package:get_it/get_it.dart' as _i1;
|
|
import 'package:injectable/injectable.dart' as _i2;
|
|
|
|
import '../auth/bloc/auth_bloc.dart' as _i7;
|
|
import '../auth/services/auth_api_service.dart' as _i4;
|
|
import '../auth/services/auth_service.dart' as _i6;
|
|
import '../auth/storage/secure_token_storage.dart' as _i3;
|
|
import '../network/auth_interceptor.dart' as _i5;
|
|
import '../network/dio_client.dart' as _i8;
|
|
|
|
extension GetItInjectableX on _i1.GetIt {
|
|
// initializes the registration of main-scope dependencies inside of GetIt
|
|
Future<_i1.GetIt> init({
|
|
String? environment,
|
|
_i2.EnvironmentFilter? environmentFilter,
|
|
}) async {
|
|
final gh = _i2.GetItHelper(
|
|
this,
|
|
environment,
|
|
environmentFilter,
|
|
);
|
|
gh.singleton<_i3.SecureTokenStorage>(() => _i3.SecureTokenStorage());
|
|
gh.singleton<_i8.DioClient>(() => _i8.DioClient());
|
|
gh.singleton<_i5.AuthInterceptor>(() => _i5.AuthInterceptor(gh<_i3.SecureTokenStorage>()));
|
|
gh.singleton<_i4.AuthApiService>(() => _i4.AuthApiService(gh<_i8.DioClient>()));
|
|
gh.singleton<_i6.AuthService>(() => _i6.AuthService(
|
|
gh<_i3.SecureTokenStorage>(),
|
|
gh<_i4.AuthApiService>(),
|
|
gh<_i5.AuthInterceptor>(),
|
|
gh<_i8.DioClient>(),
|
|
));
|
|
gh.singleton<_i7.AuthBloc>(() => _i7.AuthBloc(gh<_i6.AuthService>()));
|
|
return this;
|
|
}
|
|
} |