Using property files for version code
Hello!
In our projects, we move as much static data out of the Gradle build files as possible. As part of this, we put the application version code in the gradle.properties
file in the project root:
https://github.com/io7m-com/exfilac/blob/07c53c4dd8e425b54920882798de690c6eaa972e/gradle.properties#L16 https://github.com/io7m-com/exfilac/blob/07c53c4dd8e425b54920882798de690c6eaa972e/com.io7m.exfilac.main/build.gradle.kts#L18
Unfortunately, this upsets fdroid
:
2024-09-19 17:49:14,260 ERROR: ...checkupdate failed for com.io7m.exfilac : Couldn't find any version information
2024-09-19 17:49:14,261 DEBUG: Traceback (most recent call last):
File "/builds/io7m/fdroidserver/fdroidserver/checkupdates.py", line 751, in main
checkupdates_app(app, options.auto, options.commit)
File "/builds/io7m/fdroidserver/fdroidserver/checkupdates.py", line 537, in checkupdates_app
(version, vercode, tag) = check_tags(app, pattern)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/builds/io7m/fdroidserver/fdroidserver/checkupdates.py", line 270, in check_tags
raise FDroidException(_("Couldn't find any version information"))
fdroidserver.exception.FDroidException: Couldn't find any version information
Is there some way I can get fdroid
to extract version data from the property files?