From d3d8d1f1211a68c77929eea1b22c3b093fdd38ce Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 26 Aug 2024 15:23:17 +0300 Subject: [PATCH] Update to stores 16.0 --- ios/Runner.xcodeproj/project.pbxproj | 6 +++--- lib/config/config.dart | 2 +- lib/core/service/client/base_app_client.dart | 6 +++--- .../components/SearchByClinic.dart | 15 +++++++++++++-- lib/pages/landing/landing_page.dart | 2 +- lib/uitl/push-notification-handler.dart | 2 +- pubspec.yaml | 2 +- 7 files changed, 23 insertions(+), 12 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 130bc8cc..e7357518 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -549,7 +549,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - MARKETING_VERSION = 4.5.93; + MARKETING_VERSION = 4.5.95; PRODUCT_BUNDLE_IDENTIFIER = "com.HMG.HMG-Smartphone"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -696,7 +696,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - MARKETING_VERSION = 4.5.93; + MARKETING_VERSION = 4.5.95; PRODUCT_BUNDLE_IDENTIFIER = "com.HMG.HMG-Smartphone"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -734,7 +734,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - MARKETING_VERSION = 4.5.93; + MARKETING_VERSION = 4.5.95; PRODUCT_BUNDLE_IDENTIFIER = "com.HMG.HMG-Smartphone"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/lib/config/config.dart b/lib/config/config.dart index a9091a47..257a760b 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -344,7 +344,7 @@ var UPDATE_COVID_QUESTIONNAIRE = 'Services/Doctors.svc/REST/COVID19_Questionnari var CHANNEL = 3; var GENERAL_ID = 'Cs2020@2016\$2958'; var IP_ADDRESS = '10.20.10.20'; -var VERSION_ID = 15.9; +var VERSION_ID = 16.0; var SETUP_ID = '91877'; var LANGUAGE = 2; // var PATIENT_OUT_SA = 0; diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart index d8f30f0c..f2a656aa 100644 --- a/lib/core/service/client/base_app_client.dart +++ b/lib/core/service/client/base_app_client.dart @@ -203,9 +203,9 @@ class BaseAppClient { body.removeWhere((key, value) => key == null || value == null); // if (AppGlobal.isNetworkDebugEnabled) { - print("URL : $url"); - final jsonBody = json.encode(body); - print(jsonBody); + // print("URL : $url"); + // final jsonBody = json.encode(body); + // print(jsonBody); // } if (await Utils.checkConnection( diff --git a/lib/pages/BookAppointment/components/SearchByClinic.dart b/lib/pages/BookAppointment/components/SearchByClinic.dart index a929149d..849a0afc 100644 --- a/lib/pages/BookAppointment/components/SearchByClinic.dart +++ b/lib/pages/BookAppointment/components/SearchByClinic.dart @@ -339,7 +339,18 @@ class _SearchByClinicState extends State { items: projectsList.map((HospitalsModel item) { return DropdownMenuItem( value: item, - child: Text('${item.name!}'), + child: AutoSizeText( + item.name!, + maxLines: 1, + minFontSize: 10, + style: TextStyle( + fontSize: SizeConfig.textMultiplier! * 1.6, + fontWeight: FontWeight.w600, + letterSpacing: -0.39, + height: 0.8, + ), + ), + // Text('${item.name!}'), ); }).toList(), onChanged: (HospitalsModel? newValue) async { @@ -662,7 +673,7 @@ class _SearchByClinicState extends State { }).catchError((err) { GifLoaderDialogUtils.hideDialog(context); print(err); - AppToast.showErrorToast(message: err); + AppToast.showErrorToast(message: err, localContext: context); }); } diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index ebe6e67b..256662a3 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -322,7 +322,7 @@ class _LandingPageState extends State with WidgetsBindingObserver { // HMGNetworkConnectivity(context).start(); _firebaseMessaging.getToken().then((String? token) { - print("Firebase Token: " + token!); + // print("Firebase Token: " + token!); sharedPref.setString(PUSH_TOKEN, token!); if (Platform.isIOS) { FirebaseMessaging.instance.getAPNSToken().then((value) { diff --git a/lib/uitl/push-notification-handler.dart b/lib/uitl/push-notification-handler.dart index 6372e326..8d730102 100644 --- a/lib/uitl/push-notification-handler.dart +++ b/lib/uitl/push-notification-handler.dart @@ -407,7 +407,7 @@ class PushNotificationHandler { } onToken(String token) async { - print("Push Notification Token: " + token); + // print("Push Notification Token: " + token); await AppSharedPreferences().setString(PUSH_TOKEN, token); DEVICE_TOKEN = token; } diff --git a/pubspec.yaml b/pubspec.yaml index 0e9b2bd6..6757122d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: diplomaticquarterapp description: A new Flutter application. -version: 4.5.061+4050061 +version: 4.5.063+4050063 environment: sdk: ">=3.0.0 <3.13.0"