Help request: PSLab (io.pslab) versionName and versionCode not contained in build.gradle anymore, how to change metadata to adapt?
I am requesting help since I am not sure how to adapt the metadata of the PSLab app (https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/io.pslab.yml) to some recent changes in the project.
The app is built via GitHub actions recently and when the process was adapted, the values for versionName
and the versionCode
were removed from the build.gradle.kts file. They are set dynamically during the build process via system variables now.
When F-Droid tries to read the versionCode
after detecting a new tag being set, it will fail and the update will be ignored.
I have read the F-Droid documentation and I stumbled over UpdateCheckData
which may help solving this issue. The versionName
of the update is contained in the tag (e.g. if the tag is "v3.1.36", the versionName
is "3.1.36"). The versionCode
is contained in a file which can be retrieved via an URL. The URL contains the tag name: https://github.com/fossasia/pslab-android/releases/download/v3.1.36/versionCode.txt (for the tag from the previous example).
According to the documentation, it is possible to get the versionName
from the tag if UpdateCheckMode: Tags
is set. But then it is not possible to get the versionCode
from the file since UpdateCheckMode: HTTP
would have to be set. But in that case, I can not use the tag for the versionName
.
Am I missing something? Would it be advisable to add a second file (e.g. versionName.txt) which contains the versionName
or is there a better way to solve the problem? Any help is very much appreciated.
I am not the person who is in charge of the build process of the app, but I am in contact with them.
The documentation I am referring to should be located at https://f-droid.org/en/docs/Build_Metadata_Reference/#UpdateCheckMode (can't check right now since I am getting "502 Bad Gateway" errors from the server).