Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ios
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldevgarg committed Dec 7, 2023
1 parent 5e1e0f1 commit 2a77665
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/mgramseva/lib/utils/common_methods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2a77665

Please sign in to comment.