Commit Graph

87 Commits

Author SHA1 Message Date
nicki e7ed130f2a Check for app updates by comparing semver (#7100)
Instead of just checking whether the current app version *matches* with
latest app version in GitHub Releases, compare the semver from the tag
names to check whether the latter is greater and the app needs an update

Reference: semver spec #11 https://semver.org/#spec-item-11

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
2022-05-10 17:04:40 -04:00
arkon 85ef40d0ff Don't allow swiping away app update install notification
Also show the new version number in the notifications.
2022-05-07 11:04:55 -04:00
arkon 9c30fa1da3 Update F-Droid migration guide link 2022-04-15 12:11:01 -04:00
arkon 821d9cdb02 Show different update notification for F-Droid installations 2022-04-13 17:44:43 -04:00
arkon 5afff31f72 Formatting 2022-04-08 16:44:23 -04:00
arkon f0eb42e72d Update linter 2022-04-08 15:30:39 -04:00
arkon 1b71e4cee7 Write job failure exceptions to error log 2022-01-26 22:21:01 -05:00
arkon 7f998ecdbd Revert download notification icon changes 2021-12-12 11:14:47 -05:00
arkon 13afa9f476 Show version name in new update notification 2021-12-11 13:09:16 -05:00
arkon ed4dea8686 Update notification icons
Although no recent version of Android even shows these....
2021-12-11 12:59:05 -05:00
Andreas c0d0ff66b6 Fix "Check for updates" not working due to time cooldown (#6232)
* Fix "Check for updates" not working due to time cooldown

* Update AppUpdateChecker.kt

Co-authored-by: arkon <arkon@users.noreply.github.com>
2021-11-14 10:23:12 -05:00
arkon 0edc981cd2 Move app and extension update notifications to new channels/group (closes #6168) 2021-10-30 17:42:06 -04:00
arkon 22ed163c8f Fix what's new link in dialog 2021-10-23 17:29:27 -04:00
arkon 93e2b88d41 Minor cleanup 2021-10-23 17:29:13 -04:00
arkon 3d8f123e05 Add notification action to open GitHub release page
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
2021-10-16 10:42:14 -04:00
arkon 21e647017b Rename app updating classes
So I stop confusing it for updaters of other things.
2021-10-16 10:21:15 -04:00
arkon 082eef708f Add warnings when library and download queues are considered large (closes #5950)
Arbitrarily set at a size of 100 for now. We could adjust this in the future as appropriate if needed.
2021-10-09 14:55:21 -04:00
Ivan Iskandar 7e61900cf5 Add new build type for weekly preview (#6067)
This adds new build type for minified non-debuggable preview builds.
"debugFull" is removed and "debug" will be unminified.

**It means preview build action needs to be updated to build "standardPreview"**
2021-10-09 10:28:43 -04:00
Ivan Iskandar 2e127dff1f Replace Timber with Square Logcat and make logging configurable (#6062)
* Replace Timber with Square Logcat

* Configurable logger
2021-10-07 22:12:55 -04:00
arkon 8aa11951bf Do background app/extension checks less frequently
Since the in-app checks occur at least once a day anyway.
2021-08-13 18:24:21 -04:00
arkon f23f22ab01 Add in-app app update check 2021-08-13 18:18:53 -04:00
arkon 07de367476 Revert "Set background job expedited policies"
This reverts commit c69420373a.

Caused crashes in TachiyomiSY for some reason. Will have to redo this once we target Android 12.
2021-06-09 17:11:23 -04:00
arkon f2e4b2fc99 Get appropriate download link based on CPU ABI 2021-06-05 18:30:04 -04:00
arkon c69420373a Set background job expedited policies 2021-06-02 22:58:03 -04:00
arkon 5113c78ab6 Consolidate some of the app update classes
We only use GitHub for all update checks, so the abstraction isn't useful.
2021-06-01 17:54:34 -04:00
arkon dfd858034f Avoid duplicate actions in update notifications 2021-04-17 12:58:14 -04:00
arkon 023311a874 Start download when tapping update notification (closes #4825) 2021-04-12 13:43:46 -04:00
arkon 2ffbee3db2 Avoid using global scope where appropriate
Also fixes the crash in tracking when an exception is thrown during a refresh.
2021-01-08 18:05:51 -05:00
arkon 8f98055e9e Refactor response parsing helper function 2020-12-27 10:22:24 -05:00
arkon 61a594493c Remove usage of Retrofit for update check and extensions list 2020-12-26 16:59:24 -05:00
arkon 04fff91e23 Update app repo URL 2020-12-15 15:56:16 -05:00
Taco 60755d0c26 Use some more KTX and Compat stuff (#3933)
* Use more KTX extensions

* Update Android Studio

* Use more Compat classes
2020-10-12 16:46:25 -04:00
arkon 7a476abb53 Migrate to kotlinx.serialization for extensions and update fetching 2020-10-11 14:53:02 -04:00
arkon 76f6fe4601 Use Kolinter Gradle plugin for linting instead of ktlint directly 2020-09-13 18:48:20 -04:00
arkon ca1373f36b Check GitHub for preview release updates instead of inorichi's server 2020-09-13 10:53:51 -04:00
arkon 64bdfabbd8 Revert ktlint update, unrevert Gradle and PR build workflow reverts (#3681) 2020-08-15 16:44:46 -04:00
arkon 4a136ef2aa Automatic linting fixes 2020-08-13 09:02:15 -04:00
arkon 4f02872a84 Minor cleanup 2020-08-03 23:03:31 -04:00
Jay 830a834ea6 Using a float on the progress on app updates
Not sure if needed but I saw some funny behavior with the progress bar
2020-05-12 09:17:33 -04:00
arkon 530daeaa3a Move notification logic out of LibraryUpdateService 2020-05-10 18:14:43 -04:00
arkon b4c7992726 Minor cleanup of wakelocks, extension ID backup 2020-05-07 09:14:52 -04:00
arkon 788ea052fc Convert app updater to foreground service 2020-05-06 22:34:30 -04:00
arkon 3f63b320c4 Linting fixes 2020-04-25 14:24:45 -04:00
arkon 8c1ec43500 Remove option to turn off app update checks, check every 3 days 2020-04-24 10:39:55 -04:00
arkon 6da350aee6 Minor extension update cleanup, default to on 2020-03-20 22:59:59 -04:00
arkon ef0b546d4c Replace more icons 2020-03-15 16:46:38 -04:00
arkon 8b6268966e Pass context to get WorkManager instance 2020-03-07 13:06:06 -05:00
arkon a3dd5c1e92 Tweak WorkManager task cancellation, add flex times 2020-03-02 19:04:57 -05:00
arkon d873d653d0 Migrate to WorkManager 2020-03-01 13:22:16 -05:00
arkon 043e3784e8 Run linter 2020-02-26 18:03:34 -05:00