GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

[Feature] Include a value for an int version useful for Android ApplicationVersion

Open diegosasw opened this issue 2 years ago • 3 comments

Feature request to include some value that only increases so that it can be used as an int.

Context

Some systems, like Google Play Store for Android apps, have something called ApplicationVersion which is an integer that should only increase.

Using GitVersion is great for SemVer, for example, but it doesn't seem to have anything that outputs a straightforward integer version that could only increase.

Using a trick like concatenating major, minor and patch version would be undesirable as 0.0.123 would be concatenated to 123 but it would be smaller than 0.1.0 which would be concatenated to 10

Possible Implementation

Include a total git commit or similar

git rev-list --count --all

diegosasw avatar Jan 15 '23 12:01 diegosasw

Sure, we could expose something like that as a variable. Pull requests are welcome!

asbjornu avatar Jan 15 '23 23:01 asbjornu

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.

github-actions[bot] avatar Jun 30 '23 11:06 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.

github-actions[bot] avatar Sep 29 '23 11:09 github-actions[bot]