From 04a2561f7fd99fa702abc2117970bc01501c7582 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 13 Oct 2025 17:34:43 +0300 Subject: [PATCH] Update to stores VersionID 9.2 --- lib/app_state/app_state.dart | 2 +- lib/classes/consts.dart | 4 ++-- lib/ui/landing/widget/services_widget.dart | 26 +++++++++++----------- pubspec.yaml | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/app_state/app_state.dart b/lib/app_state/app_state.dart index 558ed09..e68e169 100644 --- a/lib/app_state/app_state.dart +++ b/lib/app_state/app_state.dart @@ -90,7 +90,7 @@ class AppState { String get getHuaweiPushToken => _huaweiPushToken; - final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 9.2, mobileType: Platform.isAndroid ? "android" : "ios"); + final PostParamsModel _postParamsInitConfig = PostParamsModel(channel: 31, versionID: 9.3, mobileType: Platform.isAndroid ? "android" : "ios"); void setPostParamsInitConfig() { isAuthenticated = false; diff --git a/lib/classes/consts.dart b/lib/classes/consts.dart index 12635a6..6b43bbd 100644 --- a/lib/classes/consts.dart +++ b/lib/classes/consts.dart @@ -9,13 +9,13 @@ class ApiConsts { // static String baseUrl = "https://webservices.hmg.com"; // PreProd // static String baseUrl = "https://hmgwebservices.com"; // Live server - static String baseUrl = "https://mohemm.hmg.com"; // New Live server + // static String baseUrl = "https://mohemm.hmg.com"; // New Live server // // static String baseUrl = "https://uat.hmgwebservices.com"; // UAT ser343622ver // static String baseUrl = "http://10.20.200.111:1010/"; // static String baseUrl = "https://webservices.hmg.com"; // PreProd - // static String baseUrl = "https://mohemm.hmg.com"; + static String baseUrl = "https://mohemm.hmg.com"; // static String baseUrl = "https://hmgwebservices.com"; // Live server static String baseUrlServices = baseUrl + "/Services/"; // server diff --git a/lib/ui/landing/widget/services_widget.dart b/lib/ui/landing/widget/services_widget.dart index 7d2c2b2..426765d 100644 --- a/lib/ui/landing/widget/services_widget.dart +++ b/lib/ui/landing/widget/services_widget.dart @@ -254,22 +254,22 @@ class ServicesWidget extends StatelessWidget { } } else { if (menuEntry.menuName == "HMG_TICKET_REQUESTS") { - Utils.showLoading(context); - TicketBookingResult response = await pro.fetchTicketBooking(); - Utils.hideLoading(context); - if (response.success) { - SSOAuthModel? ssoToken = await pro.fetchSSOAuthRedirection(clientID: response.clientId); - if (ssoToken != null) { - logger.d(ssoToken.data!.toJson()); - logger.d(ssoToken.data!.accessToken); - dynamic url = await pro.fetchURLRedirection(token: ssoToken.data!.accessToken!); - Navigator.push(context, MaterialPageRoute(builder: (context) => SsoLoginWebView(url: url ?? "", jwtToken: ssoToken.data!.accessToken!))); - } - } else { + // Utils.showLoading(context); + // TicketBookingResult response = await pro.fetchTicketBooking(); + // Utils.hideLoading(context); + // if (response.success) { + // SSOAuthModel? ssoToken = await pro.fetchSSOAuthRedirection(clientID: response.clientId); + // if (ssoToken != null) { + // logger.d(ssoToken.data!.toJson()); + // logger.d(ssoToken.data!.accessToken); + // dynamic url = await pro.fetchURLRedirection(token: ssoToken.data!.accessToken!); + // Navigator.push(context, MaterialPageRoute(builder: (context) => SsoLoginWebView(url: url ?? "", jwtToken: ssoToken.data!.accessToken!))); + // } + // } else { List _menuList = pro.getMenuEntriesList?.where((element) => element.parentMenuName == menuEntry.menuName && (element.menuEntryType == "FUNCTION" || element.menuEntryType == "MENU")).toList() ?? []; Navigator.pushNamed(context, AppRoutes.servicesMenuListScreen, arguments: ServicesMenuListScreenParams(menuEntry.prompt!, _menuList.isEmpty ? menuList : _menuList)); - } + // } } else { List _menuList = pro.getMenuEntriesList?.where((element) => element.parentMenuName == menuEntry.menuName && (element.menuEntryType == "FUNCTION" || element.menuEntryType == "MENU")).toList() ?? []; diff --git a/pubspec.yaml b/pubspec.yaml index 25f3c96..7e97774 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,8 +17,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 3.6.7+300077 -#version: 3.9.0+1 +version: 3.6.8+300078 +#version: 3.9.1+1 environment: sdk: ^3.7.0