From that, we build the following apkUrl based on the suggestedVersionCode: https://f-droid.org/repo/com.wireguard.android_498.apk
I had assumed that you were supposed to download the version according to the suggestedVersionCode (silly me :D), but it looks like that doesn't necessarily have to exist…
The F-Droid website currently list 496 as the newest available version, and the download for that works. So, I guess it's possible that suggestedVersionCode is incremented before that version is actually uploaded.
I guess we have to change our algorithm to:
Check whether suggestedVersionCode is present in packages. If yes, download that.
If not, download the highest versionCode from packages.
Currently, the automatic WireGuard download on Android fails. The downloaded APK file is actually an HTML file of a 404 page.
Here's what
fdroidMeta
from the F-Droid API looks like:From that, we build the following
apkUrl
based on thesuggestedVersionCode
:https://f-droid.org/repo/com.wireguard.android_498.apk
I had assumed that you were supposed to download the version according to the
suggestedVersionCode
(silly me :D), but it looks like that doesn't necessarily have to exist…The F-Droid website currently list
496
as the newest available version, and the download for that works. So, I guess it's possible thatsuggestedVersionCode
is incremented before that version is actually uploaded.I guess we have to change our algorithm to:
suggestedVersionCode
is present inpackages
. If yes, download that.versionCode
frompackages
.