ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
5.92k stars 140 forks source link

Failure to Detect Update If Only Version Code Changed #658

Closed E0697 closed 11 months ago

E0697 commented 12 months ago

This is happening in a 3rd party f-droid repo: DivestOS Official The app is: us.spotco.malwarescanner

For the last couple of updates, only the version code changed, and Obtainium doesn't detect the updates properly.

ImranR98 commented 11 months ago

For most Apps, APKs with the same version number but different version codes are usually differ in things like CPU architecture, proprietary libraries, etc. For update checking, we care about new version numbers (indicating a newer version of the app with new changes) as opposed to higher version codes (indicating a different APK variant but not necessarily a newer "version"). So it makes sense to give the user a choice here instead of automatically picking the highest version code APK.

Just wanted to clarify that. The next version will have a new toggle to "Pick highest version code APK" for F-Droid Third Party Repo Apps, but this would be false by default and can be enabled for specific Apps where needed.

ImranR98 commented 11 months ago

https://github.com/ImranR98/Obtainium/releases/tag/v0.13.15-beta

E0697 commented 11 months ago

That's great! Thanks a lot.