Flavours with different versionCode and versionName
Hi, we at nextcloud want to build a dev version from master with a different flavour (generic vs versionDev). Beside that we have 2 other flavors. So we specify versionCode/versionName within defaultConfig { }. Within productFlavors -> versionDev we "overwrite" versionCode/versionName.
During "fdroid checkupdates" each tag gets checkout and the versionCode / versionName is checked. As you go line by line you will always end up with the same (and wrong) versionCode / versionName.
https://gitlab.com/fdroid/fdroidserver/blob/master/fdroidserver/common.py#L1307 The comment "Grab first occurence of each to avoid running into alternative flavours and builds." is not clear for me and I think it is wrong as with this we cannot have a specific flavor.
The fix would be to limit the search to the specified flavour (gradle=...) and if there is no specific versionCode/versionName fall back to "any" versionCode/versionName.