Commit Graph

36 Commits

Author SHA1 Message Date
e559f19529 Fix: Database access on Main crashes 2022-01-13 23:52:30 +01:00
d427968ccb Remove: Allowing queries on MainThread 2022-01-13 00:53:40 +01:00
4cd50b971d Fix micro jitters on Download State change 2022-01-13 01:18:48 +05:30
3e149cf946 Fix: Conflict/breakage after merging #159 2022-01-05 00:43:06 +01:00
874370f34a Merge branch 'master' into installer-improvements 2022-01-04 23:34:54 +01:00
430b18e77b Rename auto install preference to better reflect behaviour.
Auto install preference always runs after a sync, even if it's manual.
The names of the preference & strings have been updated to reflect this
new behaviour.
2022-01-04 21:44:24 +11:00
5fbb6dcb61 Improve SyncService post-sync behaviour, rewrite new preference.
Moved the update query disposable to before the post-sync if-else block
so that the debug flag can be removed and everything can operate as
normal.

Rewrote the title of the new preference for auto updates to reduce the
use of jargon and to be a bit clearer.
2022-01-04 21:30:57 +11:00
375ab23edb Improve install notifications, improve DefaultInstaller, misc. clean-up
Installer notifications have their own channel, their tags have been
fixed, and the timeout has been properly set instead of using sleep.

Ensured that DefaultInstaller's sessions use unique file names. Also
improved error handling by including broken pipes and by preventing
post-copy operations if an error has occurred.

Some cleaning up has been done in Common, DownloadService, and
SyncService. A few changes have been cherry-picked from master.
2022-01-04 20:26:07 +11:00
fce311098d 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.
2022-01-03 20:21:36 +11:00
73ac718ce2 Fix install prompt notification, further automate updates/installs.
Fixes "tap to install" notification not launching an activity. Install
notifications moved to InstallerService so that we only show them for
apps that need intervention (and lets us preserve our install session).

All installs go to the installer, allowing for downloads to jump
straight into installation if possible (auto updates or showing prompt
on A9 and earlier). If a prompt is needed, the notification is still
shown.

Additional utility function checks if app is in the foreground. Used to
ensure that we do not launch a prompt that cannot be launched.

Miscellaneous comments have been added and improved.
2021-12-31 10:41:45 +11:00
66075c9e64 Fix: Micro-crash on download cancel
Improve: Use provided function
2021-12-27 13:27:26 +05:30
9e022d477d Fix: Calling the data repository with the real id 2021-12-26 00:44:15 +01:00
88776cbe04 Clean up 2021-12-24 15:13:07 +01:00
5386c9d843 Merge DB migration branch (Warning: possible conflict solving failures) 2021-12-24 13:20:38 +01:00
e7184ecccc Move DownloadService to Coroutine (1/2) 2021-12-04 00:28:55 +05:30
848c5ce863 Legit Material3 Theming 1/5 (style/colors.xml)
Chnage Source code Icon (Touches #127)
Some code cleanups
etc... (Sry I forgot what all I did)
2021-12-03 00:37:55 +05:30
64a61da973 Improve: MainScope() is for UI changes 2021-11-23 11:39:36 +05:30
6fbc94dca8 Improve: Move away from RxJava
Syncing is fast but looks less responsive (Will fix later)
2021-11-22 21:57:16 +05:30
5f64a8f071 Fix: App Crash on Download 2021-11-21 14:11:37 +05:30
1086df93c5 Fix: Crash with Installation without root (Closes #119) 2021-11-17 20:45:05 +05:30
b41715a2f0 Update: styles.xml reformatted
Improve: No Overscroll Animation
Improve: Use new colorAccent Attr (styles.xml)
2021-11-17 00:32:23 +05:30
0fd8e3b8b7 Improve: Root Installer will Install in background 2021-11-17 00:15:34 +05:30
a321e9bfa5 Improve: Android Studio's Reformat 2021-11-16 01:12:52 +05:30
ed49230d4e Revert: Revert Back to RxJava for Now 2021-11-13 10:13:15 +05:30
bc44c9de15 Improve: Use IO Thread to show notification (Inconsistent Notification)
Improve: List Animation Disabled by default
Add: Coroutine and Lifecycle Dependencies
2021-11-13 10:11:23 +05:30
dc65c060e7 Update: Migrate from Database to DatabaseX (4.7/5 in replacing SQLite with Room) 2021-11-01 01:05:15 +01:00
4b39477b36 Update: Make Common a file 2021-10-28 00:42:54 +02:00
0512bc884a Fix: Memory Leak while syncing repo 2021-10-23 00:28:50 +05:30
424823dab2 Improve: Notification Icon 2021-10-22 19:36:26 +05:30
b969032c37 Fix: Crash while Installation
My Git Commit settings sucks
2021-10-20 21:17:05 +05:30
84bf96e42e Update: Use Android extension for sdk determination 2021-10-20 17:44:18 +05:30
50f40d8f3a Fix: Crash on A12 (closes #51) 2021-10-20 12:05:57 +02:00
c1fc08eac6 Hotfix!!
Fixed the crash on downloading
2021-10-13 07:32:10 +05:30
a8336bbde0 Fully Implement Silent Installation
Automated Code Formatting
2021-10-13 00:32:34 +05:30
29ef88853d Reformated all the code 2021-06-08 21:18:44 +05:30
e57df974d6 Initial Commit 2021-03-07 18:20:35 +05:30