From 462fb639fb1a0f0afb8c2d1c44cdd9f7c65fa1b9 Mon Sep 17 00:00:00 2001 From: steve192 Date: Tue, 27 Feb 2024 17:42:16 +0100 Subject: [PATCH 1/2] fix: endless loading on update --- app.json | 1 + src/screens/LoginScreen/SplashScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index dac35293..a453a6c5 100644 --- a/app.json +++ b/app.json @@ -18,6 +18,7 @@ "policy": "sdkVersion" }, "updates": { + "enabled": true, "fallbackToCacheTimeout": 0, "checkAutomatically": "ON_ERROR_RECOVERY", "url": "https://u.expo.dev/1d5a474b-fc28-458a-a1e4-c9b4468bbfff" diff --git a/src/screens/LoginScreen/SplashScreen.tsx b/src/screens/LoginScreen/SplashScreen.tsx index 7b165fb2..8666dc09 100644 --- a/src/screens/LoginScreen/SplashScreen.tsx +++ b/src/screens/LoginScreen/SplashScreen.tsx @@ -26,7 +26,7 @@ export const SplashScreen = () => { console.log('Dowload update'); setStatusText('Downloading new app version...'); await Updates.fetchUpdateAsync(); - Updates.reloadAsync(); + await Updates.reloadAsync(); } } catch (e) { // Ignore error, just start with unupdated version From 52ace86bb2721076948adc57135f330debe6beb1 Mon Sep 17 00:00:00 2001 From: steve192 Date: Tue, 27 Feb 2024 17:45:22 +0100 Subject: [PATCH 2/2] chore: bump version --- app.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index a453a6c5..1441794d 100644 --- a/app.json +++ b/app.json @@ -3,7 +3,7 @@ "name": "CookPal", "slug": "opencookbook", "scheme": "cookpal", - "version": "1.1.1", + "version": "1.1.3", "orientation": "portrait", "icon": "./assets/icon.png", "androidStatusBar": { @@ -59,7 +59,7 @@ "READ_EXTERNAL_STORAGE", "WRITE_EXTERNAL_STORAGE" ], - "versionCode": 20 + "versionCode": 21 }, "web": { "favicon": "./assets/icon.png"