Implement automatic updates after repository sync

Initial implementation of fully automatic updates, allowing apps to be
updated after a repo sync has been completed. It can be enabled with a
new preference in settings.

Implemented by greatly modifying SyncService to allow updates to be run
on every completed sync before notifications would be outputted. Note
that the update notification no longer appears if auto updates are
enabled.

BuildConfig.DEBUG is used to force syncing to run to completion, even if
there are no changes to the repos. This allow reliable testing by
turning the sync button into an "update all" button. This should be
removed once an "Update all" button has been implemented in the updates
tab.

Cache file checking in DefaultInstaller is now more robust.
This commit is contained in:
Matthew Crossman
2022-01-03 20:21:36 +11:00
parent adf305ffc0
commit fce311098d
5 changed files with 129 additions and 60 deletions

View File

@ -180,4 +180,6 @@
<string name="installed_applications">Installed applications</string>
<string name="sort_filter">Sort &amp; Filter</string>
<string name="new_applications">New applications</string>
<string name="sync_auto_install">Update apps after sync</string>
<string name="sync_auto_install_summary">Automatically install app updates after syncing repositories</string>
</resources>