From 1b965620eabc1b91f533c80d36de3e2286574baf Mon Sep 17 00:00:00 2001 From: steve192 Date: Sat, 10 Feb 2024 22:18:20 +0100 Subject: [PATCH 1/2] fix: Keep screen awake when viewing a recipe --- src/screens/RecipeScreen.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/screens/RecipeScreen.tsx b/src/screens/RecipeScreen.tsx index 0b4a9cce..6b8a6247 100644 --- a/src/screens/RecipeScreen.tsx +++ b/src/screens/RecipeScreen.tsx @@ -13,6 +13,7 @@ import {MainNavigationProps} from '../navigation/NavigationRoutes'; import {fetchSingleRecipe} from '../redux/features/recipesSlice'; import {useAppDispatch, useAppSelector} from '../redux/hooks'; import CentralStyles from '../styles/CentralStyles'; +import { useKeepAwake } from 'expo-keep-awake'; type Props = NativeStackScreenProps; @@ -26,6 +27,8 @@ export const RecipeScreen = (props: Props) => { const theme = useTheme(); + useKeepAwake(); + useEffect(() => { // Load recipe if recipe id of screen has changed or screen is navigated to From e5d9d0069847703b78e48157724d8ab98aa363a8 Mon Sep 17 00:00:00 2001 From: steve192 Date: Sat, 10 Feb 2024 22:27:58 +0100 Subject: [PATCH 2/2] fix: ci workflow artifact down/upload --- .github/workflows/ci.yml | 2 +- .github/workflows/preview.yml | 2 +- .github/workflows/release.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f297a09d..0d31e5c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,7 +113,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@master with: name: web-build path: web-build/ diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index f66c6cb6..727afbbb 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -59,7 +59,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@master with: name: web-build path: web-build/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d97f54d7..6aa7c7b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,13 +57,13 @@ jobs: - name: 📱 Upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: app-android path: app-build.aab - name: 📱 Upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: app-android path: app-build.apk