Optionally allow the version of a build to be figured out at index generation 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 it 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: https://gitlab.com/fdroid/fdroiddata/issues/833
- 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.
It would make it easier to solve #144 and #248 as we just don't care about figuring out the correct version name anymore.