mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-13 02:14:31 +01:00
769ff72f98
* feat: mostly done stacked architecture. * refactor: migration to stacked architecture.
22 lines
752 B
Dart
22 lines
752 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
// **************************************************************************
|
|
// StackedLocatorGenerator
|
|
// **************************************************************************
|
|
|
|
// ignore_for_file: public_member_api_docs
|
|
|
|
import 'package:stacked_core/stacked_core.dart';
|
|
import 'package:stacked_services/src/navigation/navigation_service.dart';
|
|
|
|
final locator = StackedLocator.instance;
|
|
|
|
Future<void> setupLocator(
|
|
{String? environment, EnvironmentFilter? environmentFilter}) async {
|
|
// Register environments
|
|
locator.registerEnvironment(
|
|
environment: environment, environmentFilter: environmentFilter);
|
|
|
|
// Register dependencies
|
|
locator.registerLazySingleton(() => NavigationService());
|
|
}
|