arkon
a0f47d3f1b
Don't exclude same source when checking for duplicate entries
...
Closes #8870
2023-01-08 22:06:42 -05:00
AntsyLich
ba91b483a0
Delayed Tracking Update related fix ( #8642 )
...
* Delayed Tracking Update related fix
* Lint
2022-12-01 23:01:24 -05:00
AntsyLich
3d7591feca
Implement simple stats screen ( #8068 )
...
* Implement simple stats screen
* Review Changes
* Some other changes
* Remove unused
* Small changes
* Review Changes 2 + Cleanup
* Review Changes 3
* Cleanup leftovers
* Optimize imports
2022-11-26 15:50:26 -05:00
arkon
dd6c9ce2fe
Avoid crashing if multiple entries exist for same URL/source
...
Related to #8331 . We'll need to revisit some of the get/insert logic to make sure this doesn't actually happen,
but at least it'll stop crashing for now.
2022-10-31 17:38:56 -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
d6cbff2837
Tweak library query ( #8214 )
...
* Tweak library query
Co-Authored-By: Quang Kieu <kieuq@wit.edu >
* Update app/src/main/sqldelight/migrations/21.sqm
* Update app/src/main/java/eu/kanade/domain/library/model/LibraryManga.kt
* Update app/src/main/sqldelight/view/libraryView.sq
* Update app/src/main/java/eu/kanade/data/manga/MangaMapper.kt
* Update app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt
* Update app/src/main/java/eu/kanade/data/manga/MangaMapper.kt
* Bump version
Co-authored-by: Quang Kieu <kieuq@wit.edu >
2022-10-16 15:33:12 -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
Ivan Iskandar
42b0e3e438
HistoryScreen: Remove paging ( #8125 )
...
* HistoryScreen: Remove paging
Per my testing performance-wise there's virtually no
difference in loading time.
* cleanups
* add key and contentType
2022-10-01 10:50:25 -04:00
Alessandro Jean
ba533f30ce
Add support to update strategy on global update ( #7902 )
...
* Add support to update strategy.
* Add JavaDoc and bump the LIB_VERSION_MAX constant.
* Fix a word typo.
* Store update strategy enum as integer in the DB.
2022-09-25 10:12:36 -04:00
AntsyLich
48d3d454c0
Fix missing condition on getLibrary sql query ( #8006 )
2022-09-14 11:36:23 -04:00
Andreas
880407442c
Tweak flag classes for Library ( #7829 )
...
* Tweak flag classes for Library
- Add interface for Flag and Mask
- Merge Sort Type and Direction into one class
- Use custom serializers for preferences
- Mainly to not break the old
* Review changes
2022-08-29 13:10:30 -04:00
Andreas
914831d51f
Move default category into database ( #7676 )
2022-08-05 09:32:10 -04:00
AntsyLich
d8fb6b893f
Migrate Updates screen to compose ( #7534 )
...
* Migrate Updates screen to compose
* Review Changes + Cleanup
Remove more unused stuff and show confirmation dialog when mass deleting chapters
* Review Changes 2 + Rebase
2022-07-17 22:17:40 -04:00
Andreas
35ec593658
Use Flow in ExtensionManager and SourceManager ( #7547 )
...
- Replace ExtensionManager relay and observable with Flow
- Inverse SourceManager dependency
- SourceManager observers ExtensionManager flow
- Separate SourceData from SourceRepository as it created a circular dependency
2022-07-16 15:08:15 -04:00
Andreas
069bd90c0f
Cleanup data layer ( #7450 )
2022-07-03 15:48:13 -04:00
Andreas
17951cfd68
Use SQLDelight for all Manga related queries ( #7447 )
2022-07-03 10:17:41 -04:00
Andreas
29633b64aa
Use SQLDelight for all Chapter related queries ( #7440 )
2022-07-02 18:51:33 -04:00
Andreas
05085fe57f
Use SQLDelight on Library screen ( #7432 )
...
- Uses the new `asObservable` function to change the database calls to use SQLDelight, which should make the impact minimal when it comes to bugs.
- Use interactors where they already exist
- The todos are for the Compose rewrite
- Removed unused StorIO methods/queries
- Tested loading library, move manga to new category, unfavorite multiple manga, move multiple manga from one category to another, change filter, sort and display settings (with and without per category settings), (un)mark chapters, start/delete downloads
Thank Syer for asObservable
Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com >
Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com >
2022-07-02 12:55:34 -04:00
Andreas
1f10b79ee8
Use SQLDelight on Updates screen ( #7423 )
2022-06-30 22:18:12 -04:00
AntsyLich
0969226fd3
Fix crash when adding if there are more then 1 dupe ( #7405 )
2022-06-28 08:14:08 -04:00
AntsyLich
04f0ca7846
Use sqldelight for direct db calls in MangaPresenter ( #7366 )
2022-06-26 15:54:34 -04:00
arkon
9f66c85281
Migrate duplicate manga check to SQLDelight
...
Extracted from #7244
Co-authored-by: ivaniskandar <ivaniskandar@users.noreply.github.com >
2022-06-19 10:15:24 -04:00
Ivan Iskandar
1b804e61cb
Fix cover fetching in compose views ( #7315 )
...
Make sure it passed thru the custom fetcher
2022-06-17 22:21:29 -04:00
Andreas
017f6b22f0
Use SQLDelight on Category screen ( #7310 )
...
* Use SQLDelight on Category screen
* Include category name in DuplicateNameException
2022-06-16 10:59:10 -04:00
AntsyLich
9d5b7de1d8
Maintain source info in the database. ( #6389 )
...
* Maintain Source Info in database
* Review changes and cleanups
* Review changes 2
* Review Changes 3
2022-06-14 09:10:40 -04:00
Andreas
fd5da2de3a
Use SQLDelight in Backup/Restore ( #7295 )
...
* Use SQLDelight in Backup/Restore
* Use CoroutineWorker
2022-06-12 14:33: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
arkon
e15a867106
Convert clear database queries to SQLDelight
2022-06-10 21:33:56 -04:00
Andreas
4560033e66
feat: add read last read chapter shortcut ( #7230 )
...
Supersedes #6861
Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com >
Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com >
2022-05-31 22:55:58 -04:00
arkon
cd0294b1b6
Replace history query with actual upsert
2022-05-29 12:12:06 -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
FourTOne5
08fb2fe467
Add option to reset viewer flags ( #7062 )
...
* Add option to reset viewer flags
* Review Changes
* Run `resetViewerFlags()` content with `launchIO`
2022-05-12 09:00:57 -04:00
Andreas
609f552c8d
Fix migrations ( #7051 )
2022-05-01 10:27:01 -04:00
Andreas
bf6d59cd21
Migrate Migrate Manga screen to Compose ( #7045 )
...
* Migrate Migrate Manga screen to Compose
* Changes from review comments
2022-04-30 09:37:10 -04:00
Andreas
7261fcccda
Use Compose in Migrate tab ( #7008 )
...
* Use Compose in Migrate tab
* Add missing header
* Remove unused files
* Fix build after rebase
* Changes from review comments
2022-04-27 08:36:16 -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
b4981058a2
Add indexes to creational tables ( #6974 )
2022-04-22 08:03:07 -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