legacy login refactor
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:account/account.dart';
|
||||
import 'package:activity/activity.dart';
|
||||
import 'package:auth/auth.dart';
|
||||
import 'package:legacy_auth/legacy_auth.dart';
|
||||
import 'package:customer_service/customer_service.dart';
|
||||
import 'package:dashboard_shell/dashboard_builder.dart';
|
||||
import 'package:device_management/device_management.dart';
|
||||
@@ -23,7 +24,7 @@ late final GoRouter appRouter;
|
||||
void configureAppRouter() {
|
||||
appRouter = GoRouter(
|
||||
navigatorKey: rootNavigatorKey,
|
||||
initialLocation: AppRoutes.splash,
|
||||
initialLocation: AppRoutes.legacyLogin,
|
||||
debugLogDiagnostics: true,
|
||||
routes: [
|
||||
GoRoute(
|
||||
@@ -153,6 +154,41 @@ void configureAppRouter() {
|
||||
name: 'device_setup',
|
||||
pageBuilder: DeviceSetupBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyLogin,
|
||||
name: 'legacy_login',
|
||||
pageBuilder: LegacyLoginBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacySignup,
|
||||
name: 'legacy_signup',
|
||||
pageBuilder: LegacySignupBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyOnboarding,
|
||||
name: 'legacy_onboarding',
|
||||
pageBuilder: LegacyOnboardingBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyLinkPhone,
|
||||
name: 'legacy_request_link_phone',
|
||||
pageBuilder: LegacyRequestLinkPhoneBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyPhoneCode,
|
||||
name: 'legacy_verify_link_phone_code',
|
||||
pageBuilder: LegacyVerifyLinkPhoneCodeBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyRecoverPassword,
|
||||
name: 'legacy_recover_password',
|
||||
pageBuilder: LegacyRequestRecoveryBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.legacyDeviceSetup,
|
||||
name: 'legacy_device_setup',
|
||||
pageBuilder: LegacyDeviceSetupBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.hipayWebView,
|
||||
name: 'hipay_webview',
|
||||
|
||||
@@ -690,6 +690,13 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.2"
|
||||
legacy_auth:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "../../modules/legacy/modules/legacy_auth"
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
legacy_dashboard_shell:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
@@ -61,6 +61,8 @@ dependencies:
|
||||
path: ../../modules/legacy/modules/account
|
||||
device_management:
|
||||
path: ../../modules/legacy/modules/device_management
|
||||
legacy_auth:
|
||||
path: ../../modules/legacy/modules/legacy_auth
|
||||
#packages dependencies go here
|
||||
navigation:
|
||||
path: ../../packages/navigation
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# melos_managed_dependency_overrides: account,activity,auth,customer_service,dashboard_shell,design_system,flutter_treezor_entrust_sdk_bridge,fonts,home,legacy_dashboard_shell,legacy_shared,navigation,notifications,payments,profile,sca_treezor,sf_infrastructure,sf_localizations,sf_shared,splash,utils,control_panel,device_management
|
||||
# melos_managed_dependency_overrides: account,activity,auth,customer_service,dashboard_shell,design_system,flutter_treezor_entrust_sdk_bridge,fonts,home,legacy_dashboard_shell,legacy_shared,navigation,notifications,payments,profile,sca_treezor,sf_infrastructure,sf_localizations,sf_shared,splash,utils,control_panel,device_management,legacy_auth
|
||||
dependency_overrides:
|
||||
account:
|
||||
path: ../../modules/legacy/modules/account
|
||||
@@ -22,6 +22,8 @@ dependency_overrides:
|
||||
path: ../../packages/fonts
|
||||
home:
|
||||
path: ../../modules/home
|
||||
legacy_auth:
|
||||
path: ../../modules/legacy/modules/legacy_auth
|
||||
legacy_dashboard_shell:
|
||||
path: ../../modules/legacy/modules/legacy_dashboard_shell
|
||||
legacy_shared:
|
||||
|
||||
Reference in New Issue
Block a user