From c8fa64171e4534872c015ca47b22a4ef63e27a81 Mon Sep 17 00:00:00 2001 From: aamir-csol Date: Sun, 24 Aug 2025 14:40:28 +0300 Subject: [PATCH] coreLibraryDesugaringEnabled --- android/app/build.gradle | 8 ++++++++ ios/Runner.xcodeproj/project.pbxproj | 6 +++--- lib/ui/landing/widget/services_widget.dart | 3 ++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 217706e..c4619f4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -20,6 +20,7 @@ android { namespace 'hmg.cloudSolutions.mohem' compileSdk 36 + kotlinOptions { jvmTarget = '1.8' } @@ -35,6 +36,11 @@ android { targetSdk = flutter.targetSdkVersion versionCode flutter.versionCode versionName flutter.versionName + multiDexEnabled true + } + + compileOptions { + coreLibraryDesugaringEnabled true } signingConfigs { @@ -64,4 +70,6 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.20" + implementation 'androidx.multidex:multidex:2.0.1' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3' } diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index ea4aec9..a9aed20 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -391,7 +391,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Mohemm; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -530,7 +530,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Mohemm; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -561,7 +561,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Mohemm; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/lib/ui/landing/widget/services_widget.dart b/lib/ui/landing/widget/services_widget.dart index 7d2c2b2..0bd9acc 100644 --- a/lib/ui/landing/widget/services_widget.dart +++ b/lib/ui/landing/widget/services_widget.dart @@ -256,13 +256,14 @@ class ServicesWidget extends StatelessWidget { 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!); + Utils.hideLoading(context); Navigator.push(context, MaterialPageRoute(builder: (context) => SsoLoginWebView(url: url ?? "", jwtToken: ssoToken.data!.accessToken!))); } } else {