Repository navigation
feat: in-app OTA update banner and EAS update workflow fixes - #149
Open
HugoPerard wants to merge 2 commits into
Open
HugoPerard wants to merge 2 commits into
HugoPerard wants to merge 2 commits into
Conversation
Add UpdateBanner using expo-updates useUpdates(), foreground update checks, and i18n strings. Fix eas-update and eas-preview workflows to pass EAS --environment, --message, and APP_ENV. Document OTA behavior in README. Co-authored-by: prdHugo <HugoPerard@users.noreply.github.com>
|
π Expo preview is ready!
|
Document project linking, update:configure, channels/branches, EAS environments and env vars, EXPO_TOKEN, initial builds, and staging test flow. Co-authored-by: prdHugo <HugoPerard@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a non-blocking in-app update banner for production EAS builds and fixes GitHub Actions so
eas updatepasses the required--environmentand--messageflags (Expo SDK 55+), withAPP_ENValigned toapp.config.ts.In-app updates
UpdateBanner(src/features/updates/update-banner.tsx): usesexpo-updatesuseUpdates()for availability/download state.AppStateβactive), with errors logged viaconsole.warn.isUpdatePending; shows a loading label while downloading.__DEV__or!Updates.isEnabled.src/app/_layout.tsxwith top safe-area inset.updatesnamespace in en and fr.CI
--environmentAPP_ENVdevelopment--branch developmentdevelopmentdevelopmentstaging--branch stagingpreviewstagingproduction--branch productionproductionproductionpreviewstagingWhy
stagingβ EASpreview: EAS only exposesdevelopment,preview, andproductionserver environments. The repoβs staging build profile maps naturally to the preview environment for EAS env vars, while the update channel name staysstagingpereas.json.PR previews use
APP_ENV=stagingso bundled config matches internal/staging identifiers rather than production.eas-preview.yml: addedpermissions(pull-requests: write,contents: read) for preview comments.Docs
eas init,update:configure, channels/branches,eas env:set,EXPO_TOKEN, first builds, and staging test flow).Verification
pnpm run lint(oxlint +tsc --noEmit): passpnpm installprepare/lefthook may fail in some cloud agent VMs (core.hooksPath); harmless; not changed in this PR.Not done (by design)