« Previous | Next » 

Revision dcf3a9da

IDdcf3a9dae8c0c26eb9a24c49ada392da6ae05da9
Parent 628d684a
Child d16c7fc9

Added by Peter Serwylo almost 4 years ago

Fixed assumption that repo updates have all apps available.

Previously, I accidentally made the repo updater presume that it
had access to all apps in a big fat list. This meant that I was iterating
over that list, performing calculations, etc, rather than actually
querying the entire database.

The solution was to bundled all update-service related processing to one
process in AppProvider (I didn't want to have to pull every single app/apk
out of the database in order to perform the update, because that will become
more and more burdensom as the repo grows).

There is a method calcDetailsFromIndex() in the AppProvider.Helper class.
It now does three things: * updates compatibility flag. * updates suggested version (outstanding issue is documented in gitlab issue #1) * updates iconsUrl (fixed in this commit)

Icons from old repos will just have icons in an "icons" dir
in the same folder as the index.jar. New repos have density
specific icon dirs (e.g. "icons-240") which depend on the
device F-Droid is running on.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences