Repository navigation
docs: complete the preview APK recipe and print versionCode (#26) - #289
saurabhbhoir456 wants to merge 1 commit into
Conversation
|
Thanks! Two small fixes: in |
saurabhbhoir456
left a comment
There was a problem hiding this comment.
Review — blocked on one docs-formatting bug
Verdict: request changes (posted as a comment review, since GitHub doesn't allow a formal request-changes review on your own PR).
The workflow logic is correct and this is a clean step 1 of #26 (no reproducibility overclaim, #26 stays open). One thing must be fixed first:
🔴 Blocking: the new code fence in docs/devices.md:59 never closes
'
``` It signs with the key you name when Gradle runs, in the environment or as Gradle
properties …The closing fence shares a line with the following sentence. A closing fence can't carry trailing text, so GitHub's GFM parser doesn't recognise it as a close — verified by rendering the file through GitHub's markdown API. Everything from line 59 through line 88 (the signing-key paragraph, the environment/Gradle-property table, and the whole "Run it on an iPhone" section up to its code block) renders as single shell code block. No CI check catches this, since it's purely rendering.
Fix — fence on its own line:
'
```
It signs with the key you name when Gradle runs, in the environment or as Gradle
properties (for example in `~/.gradle/gradle.properties`), never in a file in the repository:Worth eyeballing the rendered PR diff after the fix.
✅ Verified correct
- Notes
versionCodematches the build.release-apk.yml:193setsCODE: ${{ github.run_number }}, the same expression the version-stamping step uses at line 102 — so the printed number is the one baked into that build, including onworkflow_dispatchrebuilds (both steps re-evaluate in the same run, and the notes are overwritten together). - Notes formatting preserved. The
\n\nblank-line terminator moves from the certificate line to the newversionCodeline (lines 201–202). - Recipe snippet matches the workflow byte-for-byte (same
node -ebody as lines 104–111), andapps/mobile/app.jsonhasexpo.android, so the assignment works as relied on in production. - Scope is right. No code, dependency, network, or UI-string changes; steps 2–4 of #26 explicitly left open.
- Checks: PR guard ✅, Privacy/types/lint/tests ✅, mergeable.
🟡 Minor (non-blocking)
- The recipe permanently dirties
app.jsonfor a local builder, with no hint to revert it. Agit checkout -- apps/mobile/app.jsonafter building would prevent an accidental commit of a stamped version. - Releases published before this merges have no
versionCodein their notes, so "the number printed in that release's notes" only holds going forward. Qualifying that would stop readers of older releases hunting for a number that isn't there.
With the fence fixed (ideally plus the two nits), good to merge.
What and why
For #26, step 1 only; this does not close #26.
Makes the recipe complete and the rebuild inputs public:
docs/devices.md("Or build it yourself") now carries the same step.github/workflows/release-apk.ymlruns before building, writing the tag's version and aversionCodeintoapps/mobile/app.json, and the workflow prints that run'sversionCodein the release notes next to the APK's SHA-256, so a rebuild from the tag can use the same two numbers. Steps 2 to 4 of #26 stay open: building twice from one tag and comparing the APKs apart from the signature needs a JDK 17 and Android SDK/NDK toolchain, which is being installed on the machine doing this work; what the comparison finds will be listed on #26, fixed where possible, and only then claimed as reproducible.Vision fit
ROADMAP "Now": preview APKs anyone can install and check. A rebuild that can use the published version and versionCode is the first half of trusting that the APK is the code on the tag.
Non-negotiables
Checklist
acceptedproposal. For Make the preview APK reproducible from its tag #26 step 1, linked above; Make the preview APK reproducible from its tag #26 itself stays open for steps 2 to 4.apps/mobile/app.jsonin a scratch copy of the step (it setsversionandandroid.versionCodeexactly as the workflow does; the file was restored unchanged).pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Run locally: the PR guard (ok, 2 changed files) and a YAML parse of the workflow (ok). No app code changes; CI runs the full gates.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. n/a: documentation and release notes only, no UI string changed, no em or en dashes in the changed lines.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None in the repository. (Installing JDK 17 on the machine doing the follow-up comparison builds is local tooling only, not a repository dependency. Build-time downloads stay pinned as the workflow already pins them.)
AI agents