Skip to content

Tag-driven Android versionName/versionCode - #9

Merged
keskad merged 1 commit into
mainfrom
feat/android-tag-versioning
Jul 30, 2026
Merged

Tag-driven Android versionName/versionCode#9
keskad merged 1 commit into
mainfrom
feat/android-tag-versioning

Conversation

@keskad

@keskad keskad commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add scripts/android-version.py as the single source of truth: on v* GitHub tags set versionName/versionCode from the tag; otherwise use latest v* tag with leading v stripped and -dev suffix (0.0.0-dev if none).
  • Gradle reads VERSION_* env overrides or runs the script; CI logs the resolved version, fetches full git history/tags, and asserts APK badging matches.

Test plan

  • CI on this PR: version resolves to *-dev (or 0.0.0-dev), APK badging matches
  • Locally: python3 scripts/android-version.py and with GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v1.2.3
  • After merge: push a vX.Y.Z tag and confirm release APK has matching versionName / versionCode

Made with Cursor

Wire CI and Gradle to a single scripts/android-version.py so release
tags v* stamp the APK, while local/main builds use latest tag + -dev.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit 8e38050 into main Jul 30, 2026
1 check passed
@keskad
keskad deleted the feat/android-tag-versioning branch July 30, 2026 20:28
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