2021-07-22 09:06:53 +00:00
|
|
|
import 'package:app_flowy/workspace/infrastructure/deps_resolver.dart';
|
2021-06-19 15:41:19 +00:00
|
|
|
import 'package:app_flowy/startup/launch.dart';
|
|
|
|
import 'package:app_flowy/startup/startup.dart';
|
2021-07-21 07:43:05 +00:00
|
|
|
import 'package:app_flowy/user/infrastructure/deps_resolver.dart';
|
|
|
|
import 'package:app_flowy/welcome/infrastructure/deps_resolver.dart';
|
2021-06-19 15:41:19 +00:00
|
|
|
import 'package:flowy_sdk/flowy_sdk.dart';
|
|
|
|
import 'package:get_it/get_it.dart';
|
|
|
|
|
|
|
|
void resolveDependencies(IntegrationEnv env) => initGetIt(getIt, env);
|
|
|
|
|
|
|
|
Future<void> initGetIt(
|
|
|
|
GetIt getIt,
|
|
|
|
IntegrationEnv env,
|
|
|
|
) async {
|
|
|
|
getIt.registerLazySingleton<FlowySDK>(() => const FlowySDK());
|
|
|
|
getIt.registerLazySingleton<AppLauncher>(() => AppLauncher(env, getIt));
|
|
|
|
|
2021-07-13 05:14:49 +00:00
|
|
|
await WelcomeDepsResolver.resolve(getIt);
|
|
|
|
await UserDepsResolver.resolve(getIt);
|
2021-07-21 07:43:05 +00:00
|
|
|
await HomeDepsResolver.resolve(getIt);
|
2021-06-19 15:41:19 +00:00
|
|
|
}
|