Harden APK build pipeline and Android download landing flow - #1
Draft
ALaustrup wants to merge 12 commits into
Draft
Harden APK build pipeline and Android download landing flow#1ALaustrup wants to merge 12 commits into
ALaustrup wants to merge 12 commits into
Conversation
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@users.noreply.github.com>
Co-authored-by: Andrew | Godmode <ALaustrup@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
This PR implements the APK-first path so users can reliably download/install ASTRA MATRIX from the landing page while keeping runtime behavior resilient when optional online integrations are unavailable.
What changed
Hardened runtime service loading for mobile environments:
src/core/services/GitHubService.jsoctokit/simple-gitloading behind runtime-evaluated requires.src/core/services/Web3Service.jsethersimport and switched to runtime-evaluated require.src/ai/NarrativeService.jssrc/core/SceneEngine.jsprocess.env.GITHUB_TOKENwhen available.Build and release scripts:
package.jsonstartnow launches Expo app (expo start).start:cli,web,build:web,build:apk,build:apk:production.eas.jsonbuildType: apk).CI workflow fixes:
.github/workflows/build-apk.ymlnpm ci+npm run build:apk.Expo config updates:
app.jsonowner: psybrninja.extra.eas.projectIdfor non-interactive EAS linkage.Replaced placeholder app assets with proper dimensions:
assets/icon.png(1024x1024)assets/adaptive-icon.png(1024x1024)assets/splash.png(1242x2436)assets/favicon.png(48x48)Landing page distribution hardening:
public/index.html/download/latest.json.public/download/latest.jsonscripts/publish-apk-release.shvercel.jsonpublicoutput, APK headers, metadata caching, and download route handling.DEPLOY_APK.mdCurrent CI status
EXPO_TOKENaccepted).Unknown error. See logs of the Bundle JavaScript build phase for more information.https://expo.dev/accounts/psybrninja/projects/app-369/builds/7e062190-6197-42f7-88cd-8cdae506d8adhttps://expo.dev/accounts/psybrninja/projects/app-369/builds/6906c2d2-9c54-4fcd-83a2-b9f3bd58033bhttps://expo.dev/accounts/psybrninja/projects/app-369/builds/93718335-ef7b-4014-8bd2-7f0b70066201Remaining step to publish real APK
A successful EAS Android build artifact is still required before running:
Then commit/push updated files:
public/download/astra-matrix-latest.apkpublic/download/latest.json