Repository navigation
Ship the Android APK in the desktop release with the same version - #1273
Merged
Merged
Conversation
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>
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
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-vline.package.json; the pre-release suffix is dropped andversionCodeismajor*10000 + minor*100 + patch.android/version.propertiesis removed.android/tools/release-apk.js vX.Y.Z <apk> [--upload]package.json;CAYADEV-Visualizer-<version>-android.apkand its.sha256to the existing release;AppUpdatereadsvX.Y.Zreleases and counts only those that contain an.apk, so a desktop-only patch release does not tell phones to update.Checks
node --test android/js-tests/*.test.js: 162 pass.:app:testDebugUnitTest --tests AppUpdateTest: 12/12.versionName 4.0.0-devandversionCode 40000.