first commit
This commit is contained in:
69
lib/app/core/di/injection.config.dart
Normal file
69
lib/app/core/di/injection.config.dart
Normal file
@@ -0,0 +1,69 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// dart format width=80
|
||||
|
||||
// **************************************************************************
|
||||
// InjectableConfigGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:frontend_eccp_mobile/modules/auth/login/bloc/login_cubit.dart'
|
||||
as _i941;
|
||||
import 'package:frontend_eccp_mobile/modules/auth/login/data/datasources/login_remote_datasource.dart'
|
||||
as _i457;
|
||||
import 'package:frontend_eccp_mobile/modules/auth/login/data/repositories/login_repository.dart'
|
||||
as _i435;
|
||||
import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/datasources/auth_remote_datasource.dart'
|
||||
as _i813;
|
||||
import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/repositories/auth_repository.dart'
|
||||
as _i908;
|
||||
import 'package:frontend_eccp_mobile/modules/auth/refresh_token/services/auth_service.dart'
|
||||
as _i1069;
|
||||
import 'package:frontend_eccp_mobile/modules/profile/bloc/logout/logout_cubit.dart'
|
||||
as _i58;
|
||||
import 'package:frontend_eccp_mobile/modules/profile/data/datasources/profile_remote_datasource.dart'
|
||||
as _i222;
|
||||
import 'package:frontend_eccp_mobile/modules/profile/data/repositories/profile_repository.dart'
|
||||
as _i604;
|
||||
import 'package:get_it/get_it.dart' as _i174;
|
||||
import 'package:injectable/injectable.dart' as _i526;
|
||||
|
||||
extension GetItInjectableX on _i174.GetIt {
|
||||
// initializes the registration of main-scope dependencies inside of GetIt
|
||||
_i174.GetIt init({
|
||||
String? environment,
|
||||
_i526.EnvironmentFilter? environmentFilter,
|
||||
}) {
|
||||
final gh = _i526.GetItHelper(this, environment, environmentFilter);
|
||||
gh.lazySingleton<_i457.LoginRemoteDataSource>(
|
||||
() => _i457.LoginRemoteDataSource(),
|
||||
);
|
||||
gh.lazySingleton<_i813.AuthRemoteDataSource>(
|
||||
() => _i813.AuthRemoteDataSource(),
|
||||
);
|
||||
gh.lazySingleton<_i222.ProfileRemoteDataSource>(
|
||||
() => _i222.ProfileRemoteDataSource(),
|
||||
);
|
||||
gh.lazySingleton<_i435.LoginRepository>(
|
||||
() => _i435.LoginRepository(gh<_i457.LoginRemoteDataSource>()),
|
||||
);
|
||||
gh.lazySingleton<_i604.ProfileRepository>(
|
||||
() => _i604.ProfileRepository(gh<_i222.ProfileRemoteDataSource>()),
|
||||
);
|
||||
gh.lazySingleton<_i908.AuthRepository>(
|
||||
() => _i908.AuthRepository(gh<_i813.AuthRemoteDataSource>()),
|
||||
);
|
||||
gh.factory<_i58.LogoutCubit>(
|
||||
() => _i58.LogoutCubit(gh<_i604.ProfileRepository>()),
|
||||
);
|
||||
gh.factory<_i941.LoginCubit>(
|
||||
() => _i941.LoginCubit(gh<_i435.LoginRepository>()),
|
||||
);
|
||||
gh.lazySingleton<_i1069.AuthService>(
|
||||
() => _i1069.AuthService(gh<_i908.AuthRepository>()),
|
||||
);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
13
lib/app/core/di/injection.dart
Normal file
13
lib/app/core/di/injection.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'package:frontend_eccp_mobile/app/core/di/injection.config.dart';
|
||||
import 'package:frontend_eccp_mobile/modules/auth/login/data/model/user_session.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:injectable/injectable.dart';
|
||||
|
||||
final GetIt getIt = GetIt.instance;
|
||||
|
||||
@InjectableInit()
|
||||
Future<void> configureDependencies() async {
|
||||
getIt
|
||||
..registerLazySingleton<UserSession>(UserSession.new)
|
||||
..init();
|
||||
}
|
||||
Reference in New Issue
Block a user