Commit e472a9f
committed
Show a real version name on Android builds instead of the run number
The rolling APK workflow passed the CI run number as both versionCode
and versionName, so the app reported its version as "117". Keep the
increasing code as CI's job, but compose the user-visible name in
gradle from a single base version: rolling builds now show
"0.1.1 (build N)" so testers can still report the exact build.
Also treat blank ANDROID_VERSION_CODE/NAME env vars as absent: the
release workflow forwards optional inputs verbatim, so a blank input
used to produce an empty versionName (and a NumberFormatException on
the code) instead of falling back to the gradle default.1 parent fd530db commit e472a9f
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | | - | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
0 commit comments