You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aca5005
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/android/VERSIONING.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,23 @@ Android release builds use pinned app metadata instead of auto-bumping `build.gr
6
6
7
7
-`apps/android/version.json` is the source of truth.
8
8
-`version` is the Play `versionName` and uses CalVer: `YYYY.M.D`.
9
-
-`versionCode` uses `YYYYMMDDNN`, where `NN` is a two-digit build number for that pinned app version.
9
+
- the phone `versionCode` uses `YYYYMMDDNN`, where `NN` is a two-digit build number for that pinned app version.
10
+
- the generated Wear `versionCode` uses the independent `YYMMDDNN1` range. The final `1` identifies the Wear
11
+
form factor, so phone and watch artifacts never reuse a Play version code.
10
12
-`apps/android/Config/Version.properties` is generated from `version.json` and read by Gradle.
11
13
-`apps/android/CHANGELOG.md` is the Android-only changelog and release-note source.
12
14
-`apps/android/fastlane/metadata/android/en-US/release_notes.txt` is generated from the changelog.
13
15
14
16
Examples:
15
17
16
18
-`version = 2026.6.2`
17
-
-`versionCode = 2026060201`
18
-
- another upload on the same release train: `versionCode = 2026060202`
19
+
- phone `versionCode = 2026060201`
20
+
- Wear `versionCode = 260602011`
21
+
- another upload on the same release train: phone `2026060202`, Wear `260602021`
22
+
23
+
The separate Wear range follows the
24
+
[Wear OS packaging requirement](https://developer.android.com/training/wearables/packaging#version-code)
25
+
that watch artifacts use version codes unique across form factors.
return`# Shared Android version defaults.\n# Source of truth: apps/android/version.json\n# Generated by scripts/android-sync-versioning.ts.\n\nOPENCLAW_ANDROID_VERSION_NAME=${version.canonicalVersion}\nOPENCLAW_ANDROID_VERSION_CODE=${version.versionCode}\n`;
return`# Shared Android version defaults.\n# Source of truth: apps/android/version.json\n# Generated by scripts/android-sync-versioning.ts.\n\nOPENCLAW_ANDROID_VERSION_NAME=${version.canonicalVersion}\nOPENCLAW_ANDROID_VERSION_CODE=${version.versionCode}\nOPENCLAW_ANDROID_WEAR_VERSION_CODE=${wearVersionCode}\n`;
0 commit comments