From 2a77665ac8fbe2f4ddd6d6cfca32204eff94797e Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Thu, 7 Dec 2023 14:49:32 +0530 Subject: [PATCH] ios --- frontend/mgramseva/lib/utils/common_methods.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/mgramseva/lib/utils/common_methods.dart b/frontend/mgramseva/lib/utils/common_methods.dart index 44aea98ff..633b4d38f 100644 --- a/frontend/mgramseva/lib/utils/common_methods.dart +++ b/frontend/mgramseva/lib/utils/common_methods.dart @@ -296,12 +296,11 @@ class CommonMethods { void checkVersion(BuildContext context, AppVersion appVersion) async { try { - String? latestAppVersion = Platform.isIOS - ? appVersion.latestAppVersionIos - : appVersion.latestAppVersion; - print("app" + latestAppVersion!); + String? latestAppVersion = Platform.isAndroid + ? appVersion.latestAppVersion + : appVersion.latestAppVersionIos; if (latestAppVersion != null && !kIsWeb) { - if (int.parse(packageInfo!.version.split('.').join("").toString()) > + if (int.parse(packageInfo!.version.split('.').join("").toString()) < int.parse(latestAppVersion.split('.').join("").toString())) { late Uri uri;