arkon
ee818bc7c5
Move chapter utils to domain module
2023-02-18 15:24:04 -05:00
arkon
f816196df2
Move more things to domain module
2023-02-18 15:14:04 -05:00
arkon
f2c48480b6
Move some interactors to domain module
2023-01-27 22:37:17 -05:00
arkon
1730dd6af1
Move more things around
2023-01-27 22:31:12 -05:00
Andreas
cdf242e8c8
Move more to data and domain modules ( #8973 )
2023-01-22 16:19:22 -05:00
arkon
14500ba4f8
Move more repositories to domain module
2023-01-22 10:59:52 -05:00
arkon
345e9c2a9a
Move more models to domain module
2023-01-22 10:54:28 -05:00
arkon
c6c4c1c393
Migrate to more domain model usages
2022-11-10 22:42:44 -05:00
d-najd
ba00d9e5d2
Add "Play" button on manga in library ( #8218 )
...
* resume manga button in libarary
* work on resume button
* Backup
* work on opening the last read chapter
* backup
* renaming
* fab instead of image
* done with logic
* cleanup
* cleanup
* import cleanup
* cleanup...
* refactoring
* fixing logic
* fixing scopes
* Reworking design
* adding ability to turn on/off the feature
* cleanup
* refactoring, fixing logic, adding filter logic (partial)
* backup
* backup
* logic done
* backup before merge fix
* merge conflict....
* merge conflict...
* reworking ui logic
* removing unnecessary file
* refactoring
* refactoring
* review changes + minor parameter position movement
* commiting suggestion
Co-authored-by: arkon <arkon@users.noreply.github.com >
* fixing minor mistake
* moving ChapterFilter.kt
Co-authored-by: arkon <arkon@users.noreply.github.com >
2022-11-07 22:32:23 -05:00
arkon
37cb4ec0c2
Don't filter out partially read chapters when marking as unread
...
Fixes #8313
2022-10-28 18:29:00 -04:00
arkon
b04807e53a
Proper DI instantiation for some more download related classes
2022-10-21 14:29:44 -04:00
Andreas
8d97b980e3
Tweak library view ( #8240 )
...
- Move category join to improve performance
- Move bookmark calculation into query
- Move unread calculation into domain
2022-10-18 16:33:26 -04:00
AntsyLich
a2b21e5ad6
Retain bookmark of readded chapters ( #8205 )
...
* Retain bookmark of readded chapters
* Fix typo
2022-10-15 14:22:58 -04:00
Swords
3fdcd636d7
Add bookmark filter ( #8198 )
...
* feat: add bookmark filter
* feat: add getBookmarkChaptersByMangaId query + interactor to be used for filtering
2022-10-15 11:33:09 -04:00
arkon
bc1fbfac9d
Minor cleanup
2022-10-14 16:13:50 -04:00
Andreas
b5dca2eb09
Move chapter preferences from PreferencesHelper to LibraryPrefrences ( #8061 )
2022-09-24 10:14:16 -04:00
Andreas
e82963c9ef
Split download preferences from PreferencesHelper ( #8048 )
2022-09-21 17:45:07 -04:00
Andreas
0086743a53
Use 1.x preference abstraction ( #8020 )
...
* Use 1.x preference abstraction
- Uses SharedPreferences compared to 1.x impl which uses DataStore but it breaks all settings screens currently
- Move PreferencesHelper to new PreferenceStore
- PreferencesHelper should be split into smaller preference stores and be in core or domain
- Remove flow preferences as new PreferenceStore handles changes for us
Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com >
* Fix PreferenceMutableState not updating
* Fix changes not emitting on first subscription
Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com >
2022-09-17 11:48:24 -04:00
AntsyLich
ff4a217730
Cleanup chapter name when syncing chapter with source ( #7910 )
2022-09-02 10:07:50 -04:00
stevenyomi
1f9f9662bc
Fix download chapter dir when scanlator is empty or changed ( #7780 )
2022-08-16 17:26:08 -04:00
AntsyLich
11f640cfee
Change return value of SyncChaptersWithSource.await() ( #7715 )
...
* Change return value of `SyncChaptersWithSource.await()`
`updatedToAdd.subtract(reAdded).toList()` never worked as at this point `updatedToAdd` contained ids from db where `reAdded` had default one. Was the same case before the rewrite.
Removed `toDelete` from return value as it was not being used anywhere
* Add doc string
* Use HashSet
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com >
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com >
2022-08-11 09:06:46 -04:00
arkon
d6f1534ee8
Address misc. build warnings
2022-08-10 23:26:34 -04:00
AntsyLich
2a875fe9b8
SyncChaptersWithSource: Fix early exit condition for readded chapters ( #7661 )
2022-07-31 10:58:55 -04:00
Andreas
5159eabc5d
Reset lastPageRead when chapter is marked unread ( #7475 )
...
* Reset lastPageRead when chapter is marked unread
* Remove a bit of repetition in SetReadStatus
2022-07-07 22:34:58 -04:00
arkon
a3378e6080
More domain model usage
2022-07-03 16:51:11 -04:00
arkon
3791d82540
More domain model usage
2022-07-03 16:34:58 -04:00
Andreas
29633b64aa
Use SQLDelight for all Chapter related queries ( #7440 )
2022-07-02 18:51:33 -04:00
AntsyLich
deaded5af2
Reimplement chapter download indicator longpress ( #7412 )
2022-07-02 12:43:18 -04:00
AntsyLich
e1525a5125
DownloadProvider: Only provide necessary info and not whole chapter/manga class ( #7411 )
2022-06-30 09:20:55 -04:00
AntsyLich
04f0ca7846
Use sqldelight for direct db calls in MangaPresenter ( #7366 )
2022-06-26 15:54:34 -04:00
AntsyLich
e3b1053c03
Use sqldelight in migration ( #7331 )
...
* Use sqldelight in migration
* Some more changes
Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com >
* Review Changes
* Review changes 2
* Review Changes 3
* Review Changes 4
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com >
2022-06-21 17:27:55 -04:00
AntsyLich
a01c370d63
Set db chapter metadata from correct chapter ( #7303 )
2022-06-14 09:09:21 -04:00
AntsyLich
693cc103ea
Add date_upload to toDbChapter() ( #7297 )
2022-06-12 11:44:02 -04:00
arkon
5ccde61ae1
Minor cleanup
2022-06-12 11:29:48 -04:00
AntsyLich
b96686e6ad
Fix chapter list live update ( #7296 )
2022-06-12 11:23:41 -04:00
AntsyLich
5bb78eb77f
Update manga metadata on library update with sqldelight ( #7293 )
...
Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com >
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com >
2022-06-12 10:21:45 -04:00
AntsyLich
120943a8b3
Make syncChaptersWithSource use sqldelight ( #7263 )
...
* Make `syncChaptersWithSource` use sqldelight
Will break chapter list live update on current ui
Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com >
* Review Changes
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com >
2022-06-11 11:38:39 -04:00
AntsyLich
809da49301
Reader: Save reading progress with SQLDelight ( #7185 )
...
* Use SQLDelight in reader to update history
* Move chapter progress to sqldelight
* Review Changes
Co-Authored-By: inorichi <len@kanade.eu >
* Review Changes 2
Co-authored-by: FourTOne5 <59261191+FourTOne5@users.noreply.github.com >
Co-authored-by: inorichi <len@kanade.eu >
2022-05-28 09:09:27 -04:00
arkon
ae7df4fb7f
Update linter
2022-05-10 17:54:52 -04:00
arkon
2b79295240
Revert "Revert history Compose/SQLDelight changes"
...
This reverts commit 96c894ce5b .
2022-04-22 17:35:18 -04:00
arkon
96c894ce5b
Revert history Compose/SQLDelight changes
2022-04-22 17:27:58 -04:00
Andreas
b1f46ed830
Migrate History screen database calls to SQLDelight ( #6933 )
...
* Migrate History screen database call to SQLDelight
- Move all migrations to SQLDelight
- Move all tables to SQLDelight
Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com >
* Changes from review comments
* Add adapters to database
* Remove logging of database version in App
* Change query name for paging source queries
* Update migrations
* Make SQLite Callback handle migration
- To ensure it updates the database
* Use SQLDelight Schema version for Callback database version
Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com >
2022-04-21 15:45:56 -04:00