Play Console flagged the bundle: DEX optimisation low, obfuscation 1%, no deobfuscation
file, no native debug symbols. Release builds now run R8 with resource shrinking and put
the native symbol table in the bundle; play-upload.mjs --mapping uploads mapping.txt.
Release APK 6.45 MB -> 3.35 MB. Capacitor's consumer rules keep every plugin class: the
seven plugins, MainActivity and AlwaysVisibleWebView keep their names in mapping.txt.
Uses a service account key outside the repo and node:crypto for the OAuth JWT, so no new
dependency. The draft keeps the track's live release (tracks.update replaces the whole
list) and replaces an older draft. Release notes are the summary line of
docs/releases/vX.Y.Z.md, checked against Play's 500-character limit. An edit that is not
committed is deleted so it cannot block the next run.
Verified against Play: 'tracks' lists alpha with 12403 (1.24.3) completed. Not yet
verified: an actual upload, which needs a new versionCode.
The folded history still made every body list all earlier releases, which
the GitHub releases list already shows. The body is now the tag's own
docs/releases file plus one link to the releases list. The job still fails
on a tag without a notes file.
GitHub shows the assets below the release body. With all 45 release files
written out in full, the APK of v1.24.0 sat below an 88 KB body. The tag's own
notes stay in full; every older release becomes a closed <details> block under
'Earlier releases', summary = tag + its one-line summary. Nothing is dropped,
so the cumulative rule in AGENTS.md still holds.
Material for the Google Play listing, under docs/play/:
- privacy-policy.md: what the app sends to the chosen deployment
(src/publisher.js payloads, account login), what stays on the phone,
the third parties it contacts (OpenStreetMap tiles, unpkg, Play services
for QR scanning) and how to get data deleted.
- data-safety.md: draft answers for the Data safety form, with one open
question (whether raw mesh packets count as messages).
- permissions-declaration.md: the permissions in the merged release
manifest and the foreground service (location) declaration text. The app
does not request ACCESS_BACKGROUND_LOCATION.
- store-listing.md: name, descriptions, graphics list.
- feature-graphic.png, drawn by scripts/play-graphics.ps1.
The contact email is a placeholder (CONTACT_EMAIL).
The APK carried Capacitor's default icon and splash. scripts/android-icons.ps1
draws them from public/icon-512.png: the adaptive icon foreground (source at
86% of the 108 dp canvas, so the ring stays inside the 66 dp safe zone) on
the icon's own background #0F1115, the legacy square and round icons, and
the splash images with the icon centred. The Android 12+ splash background
uses the same colour. Installed on a OnePlus 15; how each launcher masks
the icon was not checked beyond that phone.
AGENTS.md said every tag must carry a "What's New" body, cumulative, newest first. That
rule was a human convention and it was missed on twelve tags in a row: v1.6.0 through
v1.10.3 all shipped the CI-generated changelog link, so v1.5.0 was the last release
anyone could read while region discovery, the airtime budget, the retry backoff, the
FLOOD-reply warning and the AES padding fix all landed unannounced. v1.11.3 went the same
way earlier today until it was caught by hand, which is the argument against leaving it
to whoever is paying attention.
Each release now has docs/releases/vX.Y.Z.md, written in the same commit as the version
bump, so the notes are reviewed in git rather than typed into a web form afterwards.
scripts/release-notes.mjs concatenates every file from a given tag downwards, newest
first, and the release workflow publishes that as the body. A tag whose file is missing
fails the job before the build even starts, so a release without notes cannot be
published at all. generate_release_notes is gone.
The 25 files are a split of the cumulative body that v1.12.0 already carried, so no
section was rewritten. Verified by reassembling v1.12.0 from the files and diffing it
against the published body: identical once separators and blank lines are normalised.
Ordering is the one thing an assembler can get quietly wrong, and it has a test: sorting
tags as strings puts v1.9.1 above v1.10.0 and would drop a release out of the middle of
every body. Refusing an unknown tag has a test too, because that refusal is the whole
gate.
Not done: the bodies of v1.5.0 and older are left as they are, and no release title was
changed. The workflow change is unexercised until the next tag is pushed.
Tests: 260 pass (+5).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Manrn3qdrTJFz3C4o9PPFL