allow the version of a build to be figured out at build time
This was triggered by the question why we do have
Current Version (CV) and
Current Version Code (CVC) in the build metadata where CVC should be enough to uniquely identify the corresponding build. (Edit: See relans comment)
For some apps which it might be interesting to instead of encoding the version name in for every build to determine it at index generation time after the app has been build. (this might already be done anyway?).
- It also would allow us to handle weird version names like this: fdroiddata#833 (closed)
- It also would add support for more easily auto updating apps that calculate the version number during gradle build (
git describe, etc...). I forgot which app did that but I've come across this.
This would greatly simplify the update check logic, as we just do what android does. A higher version code means a newer version, the version name can be whatever.