Commit graph

163 commits

Author SHA1 Message Date
9a2815d277
refactor: Migrate to gradle version catalog 2024-01-10 12:10:43 +07:00
65955482eb
chore: Rename project 2024-01-06 12:23:08 +07:00
Jays2Kings
0efcd9ae13 Handle Brotli-compressed responses
Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2023-11-05 18:18:28 -08:00
Jays2Kings
59e11ff486 Add back pressed animation + update controller push/pop animation
Likely am gonna revert for the stable just to save myself the headache

Limiting the new animations to Android 10+, new animations will still play on 10+ devices, but wont keep the view on low ram devices
2023-10-16 20:26:51 -07:00
Jays2Kings
dc1825d2dd Update material library to stable 1.10.0 2023-10-11 10:26:20 -07:00
Jays2Kings
2c1972cab9 Downgrade requery sqlite
idk why but it upgrading to java 17 has screwed it. should close #1619
2023-10-11 10:21:54 -07:00
Jays2Kings
106f6f52c0 Backup App and Source settings
Also added PreferenceStore/TrackPreferences and made the track username/password private
Updated kotlinSerialization to 1.6.0

Co-Authored-By: jmir1 <43830312+jmir1@users.noreply.github.com>
Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2023-10-09 14:11:24 -07:00
Jays2Kings
ba74224e06 update androidx.activity:activity-ktx to 1.8.0 2023-10-04 18:17:17 -07:00
Jays2Kings
d0b0e7c66c More work for ext 1.5
Updated the extension loader for support of it to match main (save for the private extension stuff, that's later)

* Rename new method in ConfigurableSource to get preferences (afb1ee2)
*Add more replacement suspend functions for source APIs (26c5d76)

Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2023-10-04 18:16:53 -07:00
Jays2Kings
21215e45bd update requery:sqlite-android 2023-09-28 22:21:26 -07:00
Jays2Kings
89ef4fc26f Update gradle libs 2023-09-25 16:47:43 -07:00
Jays2Kings
0f2c02d565 Update Kotlin to 1.9.10
Updated coil and compose as well
2023-09-25 16:13:20 -07:00
Jays2Kings
7cf4a42b87 Update gradle libs + proguard rules 2023-08-03 19:47:57 -04:00
Jays2Kings
3c45db265b Bump image-decoder dependency 2023-08-03 15:33:55 -04:00
Jays2Kings
19db2ebee5 Targeting SDK 34 (Android 14)
Its a much easier target than 13, first time ive gotten to change compile and target at the same time

Also updating a bunch of libraries while i'm at it

One of them is material and using it have back button progress on bottom sheet for now
2023-08-02 20:29:14 -04:00
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