Skip to content

Ship the Android APK in the desktop release with the same version - #1273

Merged
CaYatur merged 2 commits into
dev/androidfrom
feat/android-same-release
Dec 1, 2026
Merged

CaYatur merged 2 commits into
dev/androidfrom
feat/android-same-release

Conversation

@CaYatur

@CaYatur CaYatur commented Dec 1, 2026

Copy link
Copy Markdown
Owner

What

The Android app now uses the desktop version number and ships in the same GitHub Release, as decided on 2 Dec 2026. Before this, it had a separate android-v line.

  • Version: Gradle reads it from the root package.json; the pre-release suffix is dropped and versionCode is major*10000 + minor*100 + patch. android/version.properties is removed.
  • Release script: android/tools/release-apk.js vX.Y.Z <apk> [--upload]
    • checks that the tag matches package.json;
    • rejects debug-signed APKs;
    • uploads CAYADEV-Visualizer-<version>-android.apk and its .sha256 to the existing release;
    • does not touch Latest.
  • Update check: AppUpdate reads vX.Y.Z releases and counts only those that contain an .apk, so a desktop-only patch release does not tell phones to update.
  • Why: the cayadev.com product page (CaYatur/CaYaDevWeb#38) reads the platform files from the latest release. With the APK in the same release, the Android download button appears there automatically.

Checks

  • node --test android/js-tests/*.test.js: 162 pass.
  • :app:testDebugUnitTest --tests AppUpdateTest: 12/12.
  • The debug manifest now shows versionName 4.0.0-dev and versionCode 40000.

CaYatur and others added 2 commits December 2, 2026 01:45
The Android app now carries the desktop version number (root package.json)
and its APK is added to the same GitHub Release as the desktop files, named
CAYADEV-Visualizer-<version>-android.apk with a SHA-256 file. This replaces
the separate android-v line.

- Gradle reads the version from package.json (pre-release suffix dropped);
  android/version.properties is removed.
- release-apk.js checks a vX.Y.Z tag equal to package.json, uploads to the
  existing release under the desktop naming and leaves Latest alone.
- The in-app update check reads vX.Y.Z releases and counts only those that
  contain an APK, so a desktop-only patch release does not notify phones.
- PLAN K9/D9 updated.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
release-assets.js --check reported the APK and its SHA-256 as unexpected
files. They are now known optional assets: missing is fine, present means
their labels are checked. release-apk.js uploads them with the same
"<file> (<description>)" label format as the desktop files. The desktop
updater picks its file by name pattern and never matches the APK.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
@CaYatur
CaYatur merged commit df734f8 into dev/android Dec 1, 2026
7 checks passed
@CaYatur
CaYatur deleted the feat/android-same-release branch December 1, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant