Commit graph

248 commits

Author SHA1 Message Date
Jays2Kings
3140361452
Targeting SDK 33 (Android 13) (#1525)
* starting workmanager updates

* Update Download service to download job

Also making downloader use suspend methods like upstream

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>

* Make BackupRestorer a job

* Make LibraryUpdateJob a datasync service type

* Changing Extension auto installer to a job instead of service

* Changing App auto installer to a job instead of service

With it theres no more services, and nearly ready to up the target sdk

* Add runtime permission for notifications

Shows permission when adding to library, seeing the app update in app prompt, or loading library or recents
Tries to show the permission again (or a warning message) when trying to restore a backup or set library update timing
Same warning messages shows when not allowing notifications

* Set target sdk to 33

we made it.

* Clean up ContextExtensions

* Add notification check for incognito mode

* Add last updated timestamp to updates job

* Update LibraryUpdateJob.kt

minor changes to the notifier's placeholder, and making sure it uses localeContext for versions under A13

* update channel logic in library updater

* Change library update channel to just take a Long instead a whole Manga

* Use extensionManager flow in ExtensionInstallerJob

* Update MainActivity.kt

* Fixes to downloadFlow

* reworking running extensions after library update logic

* Change update channel to shared flow in library job

* More updates to the library updates flow

no longer using a suspend, instead holding a buffer for the flow

* updates to the flow in extensionInstaller

from state to shared, also using "tryEmit" less for it

* Fix extension auto installing notification not dismissing/dismissable

* Version 1.7.0

* Update AppDownloadInstallJob.kt

* Refactor DownloadJob

* Version 1.7.0-b02

* Fix uninstalling extensions not refreshing the list

* Show notification permission prompt when pressing update all

* Chunked the extension install job in case too many extensions are being updated at once

The limit is around 62 extensions, but to be safe it runs 32 per job (which jobs still update 3 at a time)

Closes #1584

* Update Java Version

---------

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2023-07-31 16:19:43 -04:00
Jays2Kings
b560fe6b02 Update gradle libs 2023-04-19 17:24:14 -04:00
Jays2Kings
760615fbc6 Change beta version suffix logic (again)
Instead of going by commits, it will be (01, 02, 03, etc) based on the last beta version (if any)
2023-03-23 15:48:23 -04:00
Jays2Kings
6a0d161793 Remove some old libraries
And converting 4 screens into coroutine MVPs
2023-03-23 14:09:52 -04:00
Jays2Kings
28dc7bd738 update sqlite lib 2023-03-21 16:03:35 -04:00
Jays2Kings
cd699a17dc Remove arca in favor of crashlytics 2023-03-21 16:03:13 -04:00
Jays2Kings
8d45237c18 revert back part of the build gradle 2023-02-16 21:46:02 -05:00
Jays2Kings
b153883f05 update other libs 2023-02-16 21:44:38 -05:00
Jays2Kings
1bd7df254b Update appcompat to 1.6.1 2023-02-16 21:37:40 -05:00
Jays2Kings
a09fd8ac48 Glance widget for Recents
Recents because its using the same logic as app shortcuts already use

Also added Compose + Kotlin 1.8.10 but no one cares about that

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2023-02-14 20:35:10 -05:00
Jays2Kings
d443da4dcc Convert ReaderPresenter to ReaderViewModel
Also fixed certain sources without a contenttype not loading
Also remove HTTP 103 interceptor
Also upgrade some serialization libraries
Look a lot of stuff got taken from upstream if you're reading this commit and you work on main your code is probably is in this commit

Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2023-02-14 03:13:21 -05:00
Jays2Kings
a6cc84d41c Add Kavita & Suwayomi tracker
OkHttp Call: split await() and awaitSuccess()
Also some light tracker refactoring from upstream
Also updated okhttp to 5.0.0 alpha11

Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
Co-Authored-By: ThePromidius <thepromidiusyt@gmail.com>
Co-Authored-By: Aria Moradi <aria.moradi007@gmail.com>
Co-Authored-By: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
2023-02-11 19:48:26 -05:00
Jays2Kings
08afc7fdf6 Add APK output for x86_64 CPU architecture
Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com>
2022-12-17 16:04:18 -05:00
Jays2Kings
4f0caca3c0 hinge support 2022-12-15 18:55:39 -05:00
Jays2Kings
3e823d61dc Update dependecies
Material -> 1.7.0-rc01
Webkit -> 1.5.0
2022-09-03 17:00:25 -04:00
nzoba
0201021450
Stats page (#1359)
* Add StatsController and StatsDetailsController

* Add read duration to stats

* Add chipIcon

* Fix chips when orientation changes and cleanup

* Few fixes charts

* Fix charts too big on tablet

* Change category filter order to library's
2022-08-28 14:49:38 -04:00
Jays2Kings
59ecab3bbc update dependencies
lifecycle-viewmodel-ktx
firebase:firebase-core
firebase-analytics-ktx
2022-08-21 14:31:44 -04:00
Jays2Kings
93e56c194a Migrating titles maintains custom covers
Closes #972

Co-Authored-By: Saud-97 <39028181+Saud-97@users.noreply.github.com>
2022-08-21 03:46:43 -04:00
Jays2Kings
3dcf50704c Remove 1.x source models
Co-Authored-By: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
2022-08-21 00:06:17 -04:00
Jays2Kings
b707cd19fe Remove Duktape
Now that none of the official extensions are using it.

Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2022-08-20 23:29:49 -04:00
Jays2Kings
63ca5f5525 material -> 1.7.0-beta01 2022-08-17 20:30:11 -04:00
Jays2Kings
30b4b589e0
App language change (#1370)
* Add back option to change app langauge

Courtesy of AndroidX/Appcompat
On Android 13, it uses the native methods (at least for now) Also adding locales config file to only list supported languages in android app info's setting

A bit about this for A12 and under, an app restart is needed right now when switching from LTR to RTL or vice versa, not sure if later versions of androidx app compat will change this

* stop using preference context for strings (when possible)

which fixes some of the language issues on a12 and under

* Fixes to timespanfromnow method

now respect set language

* Dont show langauge selector on android 6

it doesn't work so rip

* Filter out unsupported locales in language selector

* appcompat -> 1.6.0-beta01

* Set notifications to use app language

* Add beta tag to language

* Update ExtensionHolder.kt
2022-08-17 14:57:47 -04:00
Jays2Kings
46d5285af3 update dependiences
okhttp-> 4.10.0
kotlinSerialization -> 1.3.3
2022-07-09 17:55:32 -04:00
Jays2Kings
f7cddd25c5 JpegXL support 2022-07-05 18:13:18 -04:00
Jays2Kings
a79a3fb777 M3 Switches
With bonus logic to keep material cards the same radius
And new colors to support them because mixing and matching colors suck
2022-07-03 13:01:33 -04:00
Jays2Kings
dc404af31a lib updates
ktx -> 1.8.0
lifecycle model -> 2.5.0
annotation -> 1.4.0
2022-07-03 12:59:45 -04:00
Jays2Kings
781208d999 revert back to alpha03 of appcompat
since 04 will attempt to use sdk 33 method and can't compile with that just yet
2022-05-31 15:30:15 -04:00
Jays2Kings
96946e8277 Update dependencies
constraintlayout -> 2.1.4
firebase -> 21.0.0
appcompat -> 1.6.0-alpha04
coilVersion -> 2.1.0
2022-05-23 13:26:53 -04:00
Jays2Kings
cc9fefe4eb Revert "Revert "Add Beta flavor builds""
This reverts commit 20aa3c6e2d.
2022-05-22 22:43:49 -04:00
Jays2Kings
20aa3c6e2d Revert "Add Beta flavor builds"
This reverts commit 2040462c49.
2022-05-21 16:28:26 -04:00
Jays2Kings
2040462c49 Add Beta flavor builds
Use Beta tag instead of version check in advanced settings

Simplify beta check logic in advanced settings

new version app check fixes for beta
2022-05-21 15:24:35 -04:00
Jays2Kings
073b454342 Use AndroidX's onBackPressedDispatcher
removing the soon to be deprecated onBackPressed
2022-05-13 02:26:39 -04:00
Jays2Kings
f6ccfadf43 Update gradle to 7.2.0
Using AS Chipmunk now
2022-05-10 14:01:47 -04:00
Jays2Kings
708648361d Dependencies cleanup 2022-05-07 13:51:02 -04:00
Jays2Kings
e0bbb1a24c google material -> 1.6.0 2022-05-05 16:31:27 -04:00
Jays2Kings
42b15aa634 Remove firebase crashlytics 2022-05-04 19:41:03 -04:00
Jays2Kings
cc4c8923d7 Temporarliy disable jpeg xl
Yeah too large and since i cant split apks yet, I'll save it for next release
2022-05-04 16:44:50 -04:00
Jays2Kings
13d8a79926 remove kotson lib 2022-05-04 16:24:38 -04:00
Jays2Kings
601ca6a44c Reinstate Proguard/R8
Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2022-05-04 14:49:57 -04:00
Jays2Kings
de2c7ed4e7 Fixed cropping and added jpegxl support (sadly)
apk size go BIG

closes #1236
2022-05-04 14:49:57 -04:00
Jays2Kings
bc778347fd Coil 2.x upgrade
Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2022-05-02 17:07:06 -04:00
Jays2Kings
0764012b87 More gradle updates + remove tests
junrar -> 7.5.0
firebase -> 20.1.2
acra-http -> 5.9.3
java-string-similarity -> 2.0.0
com.google.guava (added)

Same as upstream, been broken for a while
2022-05-02 15:30:38 -04:00
Jays2Kings
fd1f5a4212 Gradle cleanup/upgrades
kotlinter -> 3.10.0
com.github.ben-manes.versions -> 0.42.0
google-services -> 4.3.10
okhttp -> 4.9.3
fastadapter -> 5.6.0
taptargetview -> 1.13.3
rxbinding (removed)
2022-05-02 14:57:17 -04:00
Jays2Kings
931626d3b6 remove deprecated use of -Xopt-in for -opt-in
in the span of a single release, I've changed this twice because the deprecation warning
2022-04-26 23:21:03 -04:00
Jays2Kings
85ad45e082 appcompat to 1.4.1 2022-04-26 21:10:02 -04:00
Jays2Kings
89cfd87283 use FlexibleAdapter by Arkon(TM Pending) 2022-04-26 21:10:02 -04:00
Jays2Kings
3587feb8fa Remove all usage of gson and retrofit
We made it!
2022-04-26 00:08:16 -04:00
Jays2Kings
6c14ea5654 Update preference dependencies + constraintlayout 2022-04-21 21:03:32 -04:00
Jays2Kings
e415a365b9 gradle updates - kotlin/ndk
kotlin -> 1.6.10
ndk -> 23.1.7779620

+ removal of using use-experimental for opt-in
2022-04-20 23:08:08 -04:00
Jays2Kings
c87806465f kotlinxSerialization -> 1.3.2 2022-04-20 22:39:57 -04:00