2023-10-15 02:51:31 -07:00
|
|
|
import 'package:revanced_manager/services/download_manager.dart';
|
2022-09-12 01:41:53 +01:00
|
|
|
import 'package:revanced_manager/services/github_api.dart';
|
2022-08-25 00:51:47 +01:00
|
|
|
import 'package:revanced_manager/services/manager_api.dart';
|
2022-08-08 00:45:52 +05:30
|
|
|
import 'package:revanced_manager/services/patcher_api.dart';
|
2022-09-12 01:41:53 +01:00
|
|
|
import 'package:revanced_manager/services/revanced_api.dart';
|
2022-09-20 00:49:31 +01:00
|
|
|
import 'package:revanced_manager/services/toast.dart';
|
2022-08-06 22:35:35 +01:00
|
|
|
import 'package:revanced_manager/ui/views/app_selector/app_selector_view.dart';
|
2022-08-12 23:37:16 +05:30
|
|
|
import 'package:revanced_manager/ui/views/contributors/contributors_view.dart';
|
2022-08-16 18:36:56 +05:30
|
|
|
import 'package:revanced_manager/ui/views/home/home_viewmodel.dart';
|
2022-08-13 10:56:30 +01:00
|
|
|
import 'package:revanced_manager/ui/views/installer/installer_view.dart';
|
2022-09-05 09:07:38 +01:00
|
|
|
import 'package:revanced_manager/ui/views/navigation/navigation_view.dart';
|
|
|
|
import 'package:revanced_manager/ui/views/navigation/navigation_viewmodel.dart';
|
2023-10-12 00:00:39 +00:00
|
|
|
import 'package:revanced_manager/ui/views/patch_options/patch_options_view.dart';
|
|
|
|
import 'package:revanced_manager/ui/views/patch_options/patch_options_viewmodel.dart';
|
2022-08-21 02:30:40 +01:00
|
|
|
import 'package:revanced_manager/ui/views/patcher/patcher_view.dart';
|
2022-08-09 01:33:37 +01:00
|
|
|
import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
|
2022-08-08 00:45:52 +05:30
|
|
|
import 'package:revanced_manager/ui/views/patches_selector/patches_selector_view.dart';
|
2022-08-10 18:00:28 +05:30
|
|
|
import 'package:revanced_manager/ui/views/settings/settings_view.dart';
|
2022-09-05 15:30:26 +01:00
|
|
|
import 'package:revanced_manager/ui/widgets/appInfoView/app_info_view.dart';
|
2022-08-06 17:43:28 +05:30
|
|
|
import 'package:stacked/stacked_annotations.dart';
|
|
|
|
import 'package:stacked_services/stacked_services.dart';
|
|
|
|
|
2022-08-12 15:12:43 +05:30
|
|
|
@StackedApp(
|
|
|
|
routes: [
|
2022-09-05 09:07:38 +01:00
|
|
|
MaterialRoute(page: NavigationView),
|
2022-08-21 02:30:40 +01:00
|
|
|
MaterialRoute(page: PatcherView),
|
2022-08-12 15:12:43 +05:30
|
|
|
MaterialRoute(page: AppSelectorView),
|
|
|
|
MaterialRoute(page: PatchesSelectorView),
|
2023-10-12 00:00:39 +00:00
|
|
|
MaterialRoute(page: PatchOptionsView),
|
2022-08-13 10:56:30 +01:00
|
|
|
MaterialRoute(page: InstallerView),
|
2022-08-12 23:37:16 +05:30
|
|
|
MaterialRoute(page: SettingsView),
|
2022-08-14 19:33:01 +05:30
|
|
|
MaterialRoute(page: ContributorsView),
|
2022-09-05 15:30:26 +01:00
|
|
|
MaterialRoute(page: AppInfoView),
|
2022-08-12 15:12:43 +05:30
|
|
|
],
|
|
|
|
dependencies: [
|
2022-09-05 09:07:38 +01:00
|
|
|
LazySingleton(classType: NavigationViewModel),
|
2022-08-16 18:36:56 +05:30
|
|
|
LazySingleton(classType: HomeViewModel),
|
2022-08-12 15:12:43 +05:30
|
|
|
LazySingleton(classType: PatcherViewModel),
|
2023-10-12 00:00:39 +00:00
|
|
|
LazySingleton(classType: PatchOptionsViewModel),
|
2022-08-21 02:30:40 +01:00
|
|
|
LazySingleton(classType: NavigationService),
|
2022-08-25 00:51:47 +01:00
|
|
|
LazySingleton(classType: ManagerAPI),
|
2022-08-21 02:30:40 +01:00
|
|
|
LazySingleton(classType: PatcherAPI),
|
2022-09-12 01:41:53 +01:00
|
|
|
LazySingleton(classType: RevancedAPI),
|
|
|
|
LazySingleton(classType: GithubAPI),
|
2023-10-15 02:51:31 -07:00
|
|
|
LazySingleton(classType: DownloadManager),
|
2022-09-20 00:49:31 +01:00
|
|
|
LazySingleton(classType: Toast),
|
2022-08-12 15:12:43 +05:30
|
|
|
],
|
|
|
|
)
|
2022-08-06 17:43:28 +05:30
|
|
|
class AppSetup {}
|