Repository navigation
feat(updates): require a minimum build and hold the app while an update downloads - #207
Merged
Merged
Conversation
LockScreen's logo, title, subtitle and pinned call to action move into LogoScreenLayout, so the update screens can use the same layout. Its middle now scrolls, and the title stops scaling at 1.5x, so nothing is cut off at the largest text sizes. SyncScreen's bar becomes ProgressBar, which can also draw an indeterminate sweep. Both screens render pixel for pixel as before at the default text size. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…te downloads A build below the minimum the update server sets for its channel (GET /policy, set with scripts/ota/minimum-build.mjs) shows "Update required" with a button to its store, in place of the app. The policy is unsigned, so the store links are built into the app. The last answer is kept on the device, so a block also holds offline. When the launch check finds an over-the-air update, the app is held on an "Updating" screen until the download is done, then asks for a restart. A failed download, or one still going after a minute, can be skipped until the next launch. Both screens are off in development and under Detox. There are no native, app.json or package.json changes, so the runtime version is unchanged and this can reach installed builds over the air. The new script runs with node rather than as an npm script, since package.json scripts are part of the fingerprint. Also fixes upload() skipping a pointer rewritten within the same second at the same size: rsync's quick check took it for unchanged, so pointers and policies now go with --checksum. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.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.
What this adds
Forced upgrade. The update server can now set the oldest native build each platform may run. A build below it shows "Update required" with one button to its store, in place of the app.
node scripts/ota/minimum-build.mjs --channel production --ios N --android M --upload deploy@…. A platform you leave out keeps its live value. The script shows live → new and asks you to typeyesbefore uploading (--yesskips it).GET /policyas unsigned JSON. Store links are built into the app (constants/links.ts), so the JSON can only carry numbers.OTA update screen. When the launch check finds an update, the app is held on "Updating Shroud" until the download is done, then shows Restart. The restart goes through a native reload screen in the theme colours.
CompressionInterceptorstrips Content-Length before the progress listener sees it. The screen switches to a real percentage by itself if the last file ever reports bytes.Both screens take the navigator's place rather than covering it. AppLock stays outside on purpose, so a re-lock survives them. Both are off in development and under Detox.
Also in this PR
refactor(ui): LockScreen and the update screens shareLogoScreenLayout, and SyncScreen uses the newProgressBar. Both render pixel-identical to before at the default text size, and now scroll at the largest sizes.upload()bug fix: a pointer or policy rewritten within the same second at the same size was skipped by rsync's quick check. This applies to channel pointers too. These small files are now compared with--checksum.Runtime version
There are no native,
app.jsonorpackage.jsonchanges. The iOS and Android fingerprints match master (bf3ea9ab…,b8c6efb0…), so this can ship over the air to installed builds. That's also why the new script isn't an npm script:package.jsonscripts are part of the fingerprint. Only builds that already run this code can be blocked.Before merging / using it
update-server(adds/policy). The script refuses to upload until the server serves it.ota:rollback→ Restart; preview minimum above the build → blocked, store opens, still blocked offline, 0 unblocks.UpdateGateand RELEASE.md.Testing
--yes, and a malformed file returning a logged 500.🤖 Generated with Claude Code