From 7f936200032923a635529b21c70913ed3c6c65a2 Mon Sep 17 00:00:00 2001 From: Bassam A Date: Mon, 29 Jan 2024 22:49:06 +0300 Subject: [PATCH 1/2] feat: min application version handling. --- lib/providers/auth.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/providers/auth.dart b/lib/providers/auth.dart index 04957f7a..502828bf 100644 --- a/lib/providers/auth.dart +++ b/lib/providers/auth.dart @@ -140,7 +140,6 @@ class AuthProvider with ChangeNotifier { if (response.statusCode >= 400) { throw WgerHttpException(response.body); } - // If update is required don't log in user if (await applicationUpdateRequired()) { return {'action': LoginActions.update}; @@ -174,7 +173,10 @@ class AuthProvider with ChangeNotifier { await initData(serverUrl); // If update is required don't log in user - if (await applicationUpdateRequired()) { + if (await applicationUpdateRequired( + applicationVersion!.version, + {MANIFEST_KEY_CHECK_UPDATE: 'true'}, + )) { return {'action': LoginActions.update}; } From 5010eca2d8229c9b79fc066a000621be8a1ff017 Mon Sep 17 00:00:00 2001 From: Bassam A Date: Mon, 29 Jan 2024 22:54:11 +0300 Subject: [PATCH 2/2] chore: added myself in authors file --- AUTHORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.md b/AUTHORS.md index 5372b1bc..67b47fdc 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -26,6 +26,7 @@ - Hanaa Allohibi - - Shey Alnasrawi - - Costas Korai - +- Bassam Mutairi - ## Translators