Commit graph

2843 commits

Author SHA1 Message Date
Jobobby04
7e93557bd2 Remove markwan dependancy 2020-10-12 21:50:06 -04:00
Jobobby04
36c0d24143 Cleanup 2020-10-12 20:20:42 -04:00
jobobby04
445878794c
Make a protobuf based backup system (#112)
* Make a protobuf based backup system, restore not tested

* Fix a number

* Remove uneeded change

* Remove more uneeded changes

* Use 1.x style models, backup should be 100% compatible with the 1.x backups

* Fix restore service not running

* Fix offline chapter restore
Cleanup saved searches restore(untested)

* Implement onlione/offline option, fix merged manga restore online, fix restore total

* Allow setting auto backup to use a full backup

* Fix for saved searches restore

* Edit some comments

* Convert flows back to observables

* Fix a model

* Fixes and comment only the SY specific things

* Move SY values range to 600 from 60

* Combine legacy and full backup services into one
Deduplicate a lot of code
Simplify a lot of stuff
Modify comments

* Cleanup

* Remove unneeded protobuf config edit because its now the default

* Migrate to kotlinx.serialization for backup saved searches

* Cleanup saved searches more, move gson type adapters to the legacy package
2020-10-12 14:41:56 -04:00
Jobobby04
f3365cef67 Convert SY specific usages of Gson to Kotlin Serialization
Cleanup saved searches a bit
Cleanup json parsing
2020-10-12 14:20:54 -04:00
arkon
232f5b8aab Migrate to kotlinx.serialization for Bangumi
(cherry picked from commit f5aa36c787317441f34494472ec63e09c567f541)
2020-10-11 16:07:24 -04:00
arkon
4f575f37c0 Migrate to kotlinx.serialization for Shikimori
(cherry picked from commit f8d82cb0521012f16d11520daaac97e5efb0219c)
2020-10-11 16:07:11 -04:00
arkon
5b4f17777c Migrate to kotlinx.serialization for download store and deleter
(cherry picked from commit 980feb6c96282e5b0b92a2889980ce3bd2197c37)
2020-10-11 15:53:50 -04:00
arkon
38c3a926bb Migrate to kotlinx.serialization for Anilist
(cherry picked from commit e7d660549059e55f5cbeeb8607c658279a64ffdc)
2020-10-11 15:53:42 -04:00
arkon
b4cf0e9723 Migrate to kotlinx.serialization for extensions and update fetching
(cherry picked from commit 7a476abb53a4d3a36cf4f7618af83d984a78536b)

# Conflicts:
#	build.gradle.kts
2020-10-11 15:53:27 -04:00
arkon
57803bce2f Bump minimum WebView version to 84
(cherry picked from commit b88e444cbc9551f2ce89c587b5eb91bb9ae95bdd)
2020-10-11 15:34:53 -04:00
Jobobby04
776a4b2a24 History fixes 2020-10-10 00:32:39 -04:00
arkon
8e27ffcad7 Add Amharic locale
(cherry picked from commit 842295348e39bb910a4ff681a89fa03bc2961812)
2020-10-09 13:02:30 -04:00
Jobobby04
292dbf85c9 Cleanup 2020-10-09 12:59:40 -04:00
Jobobby04
96a5b456f5 Remove tooltip 2020-10-03 17:43:10 -04:00
arkon
95de42ad80 Prevent tag search if browsing from latest (sort of closes #3625)
(cherry picked from commit 4cbe49777015632816ea7b180d443805f7de980b)
2020-10-03 13:05:29 -04:00
arkon
8404b1c0c2 Set activated states for manga info favorite/tracker buttons
(cherry picked from commit 0904692f15179e420ea9140e2e31e556faa5164f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
#	app/src/main/res/layout/manga_info_header.xml
2020-10-03 13:01:25 -04:00
arkon
eef8b776f6 Reorder chapter filters to better match library filters
(cherry picked from commit 65bacd288b10d03662148e9282f97e78b8622a5a)
2020-10-03 12:58:26 -04:00
Andreas E
527e26137f Remove from queue after read (#3870)
* Add option to remove chapter from download queue after marked as read

* Begone bug

There was a bug when one queued a new download to the downloader. Which resulted in getChapterDownloadOrNull() would not find the corresponding download for the provided chapter

* Fix review comment

* Remove preference and just remove from queue

(cherry picked from commit 11ab3b2c2e906e51cd27c57cc7a7ed2deb188867)
2020-10-03 12:57:42 -04:00
Andreas E
f6d3c38d03 Ability to delete reading history (#3871)
* Added ability to delete history for all manga

* Fix review comments

(cherry picked from commit 812368e332b56a3b8964e7c1247c9fbc18804516)
2020-10-03 12:57:29 -04:00
arkon
2772e4960e Add banner for Incognito Mode
(cherry picked from commit cf39ae0000a39542ba867f894c095f96c71141ef)
2020-10-03 12:57:20 -04:00
arkon
085722e077 Show downloaded only banner in all views
(cherry picked from commit 7194f6520327d5419cfbe1fd226e094bf227f13b)
2020-10-03 12:57:10 -04:00
arkon
6a3a5c58d4 Minor string cleanup for Incognito Mode
(cherry picked from commit 4b78ff324dcce13e3f159b1067aad46391cfcce3)
2020-10-03 12:57:01 -04:00
Platiplus
e1d7713f14 [Feature Request] Option to turn off History - #3772 (#3855)
* Implementing do not save chapter history preference

* Refactor of labels

* Changing incognito mode from Readers section to More

* Fixing imports and removing unused strings

(cherry picked from commit 79ccfcd55397f3df7ce91d88e93a7c879a3360ab)
2020-10-03 12:56:53 -04:00
Jobobby04
a0cf7730f5 Undo some weird thing SY had 2020-10-02 22:01:25 -04:00
Jobobby04
63aab6f11e Fix deleting history not refreshing the view 2020-10-02 12:06:49 -04:00
Jobobby04
32748fa056 Allow migrating extra info like viewer, chapter filters, and other stuff 2020-10-01 22:12:37 -04:00
Jobobby04
1a55f4845c Fix manual search using browse's menu 2020-10-01 21:43:43 -04:00
Jobobby04
b4194de9e0 Fix SY filters not properly setting 2020-10-01 10:07:44 -04:00
Jobobby04
4f864152ea Cleanup some code 2020-09-30 19:48:26 -04:00
Jobobby04
c501c9ecc3 Modify the looks of the extra info for a few sources 2020-09-30 19:29:44 -04:00
Jobobby04
4bd88fa194 Add source categories removing the source in the language as a option 2020-09-30 18:27:09 -04:00
Jobobby04
604b4ec01e Fix expanding tags on E-Hentai and similar manga 2020-09-30 17:52:24 -04:00
Jobobby04
789f1392ac Fix clicking the updates button multiple times opening multiple download menus 2020-09-29 19:16:33 -04:00
Jobobby04
1b9c66896a Add a double click action on the updates bottom bar button to open downloads 2020-09-29 15:52:39 -04:00
arkon
3a07ee3deb Fix chapter filter icon tinting
(cherry picked from commit b5986b509eb7c2f201a5658e2df891352249d3ee)
2020-09-29 12:41:28 -04:00
jobobby04
9c76f1fd8f Match infinite history and search history from preview (#3827)
* Add infinite history and search history

* Cleanup code

(cherry picked from commit 9d2adcd512c28872c9e958e9fcdcbccbd11b3b35)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/database/queries/HistoryQueries.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/database/queries/RawQueries.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt
2020-09-29 12:41:10 -04:00
arkon
8acd834783 Use tristate checkboxes for chapters list filters
(cherry picked from commit fb3756420bcaf2ae568fff819ee3726e327e223a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt
2020-09-29 12:35:40 -04:00
arkon
703263246e Clean up bottom nav bar scrolling behavior toggling
(cherry picked from commit caeab0a63b41cad0fe500be5bb022569095aaf1e)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
2020-09-29 12:26:21 -04:00
scb261
2130a2a67e Add option to hide bottom bar when scrolling (#3758)
* [wip] hardcoded flag for hide on scroll

* add corresponding option in settings

* clean up a little

Co-authored-by: arkon <arkon@users.noreply.github.com>
(cherry picked from commit 3784d1a8f2886e1ebc598cd83afa2622f9c44b43)
2020-09-29 12:25:25 -04:00
scb261
a8946e4f98 Add ability to choose what to remove for selected mangas (#3796)
* [wip] started to change manga delete options

* Change dialog for deleting selected manga

* Move array to appropriate file

* Make first option enabled by default

* Use radio buttons to reduce amount of clicks

* Revert "Use radio buttons to reduce amount of clicks"

(cherry picked from commit 458e761b458bb3cb41924e88643faf2ee7efd4d9)
2020-09-29 12:25:16 -04:00
arkon
815ac9d55b Remove card backgrounds from browse lists
(cherry picked from commit a3c598a3e1758c00d00ad3a804d8dbb7e24ab2ac)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/MigrationSourcesController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourceHolder.kt
2020-09-29 12:24:33 -04:00
arkon
ab7bd3ebc2 Shorten settings search package name
(cherry picked from commit 79bbc9988267a0e25f3337c28c0b21edb91cfbc3)
2020-09-29 12:17:10 -04:00
Jobobby04
4805d3c0c0 Manage Exhentai better, if login is disabled the source will disappear 2020-09-29 12:15:41 -04:00
Jobobby04
3c8fe2ed0e Make mangadex icon in settings smol 2020-09-27 17:23:42 -04:00
Jobobby04
1b90590260 Cleanup Autoscroll coroutine code 2020-09-25 10:26:42 -04:00
Jobobby04
a903a48718 Add source setting controllers to search settings, hide settings in the E-Hentai settings when not logged in 2020-09-25 10:26:42 -04:00
Jobobby04
748e5d5b0f History tweak 2020-09-24 09:19:36 -04:00
arkon
ea3f90f107 Minor settings search code cleanup
(cherry picked from commit 3bce07e8734b4104f70788232eade97986c11161)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsMainController.kt
2020-09-24 09:13:48 -04:00
arkon
26557b3257 #3520 Searchable Settings (#3683)
* Adding class stubs for settings search, UI elements.

* -  implement searchable settings
- `SettingsController.setupPreferenceScreen` must return a PreferenceScreen

* Remove unneeded SettingsControllerFactory.

* Set query hint, clean up code smell.

* Add search button to MoreController, stop infinite recursion.

* - initialize SearchResultCollection once in Activity.onCreate

* - implement prefernce highlighting after settings search

* - Ensure all Preferences have a key set or else the highlighting effect will have no effect on it.
- remove ExtensionFilterController and SourceFilterController from settingControllersList in SettingsSearchHelper, since those are related to Extensions and not Settings

* Limiting search to settings menu only, localized breadcrumb string, and code cleanup after code review.

* - moved call to SettingsSearchHelper.initPreferenceSearchResultCollection() into SettingsSearchController

* Code review cleanup and refactoring.

* Inlined non-reused key strings.

* Adding more UI polish, add comments for future enhancements.

* - retain search query when navigating *away* from SettingsSearchController
- keep `searchItem` in `expandActionView` state until user goes back (fixes the empty view in `SettingsSearchSearchController` issue)

Co-authored-by: mpm11011 <markuscicero5@gmail.com>
Co-authored-by: lmj0011 <9396189+lmj0011@users.noreply.github.com>
(cherry picked from commit 766f9e37b52873080c58d73dfaff42c5add24dc0)

# Conflicts:
#	app/build.gradle
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourceFilterController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt
2020-09-24 09:09:45 -04:00
arkon
89eea4ab91 Move manga info summary more/less button toggle
(cherry picked from commit a9bed90d028bc93bfae49edd10e7ede71decd6a7)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
#	app/src/main/res/layout/manga_info_header.xml
2020-09-24 08:41:48 -04:00
arkon
616fbe4afe Center reader transition text properly (fixes #3819)
(cherry picked from commit 01ad405dd2f0dea00ef076926d2487ab915ada29)
2020-09-24 08:24:16 -04:00
arkon
4aff2d79b7 Remove support for backup v1
(cherry picked from commit 88aea311f810f1dbaeb092abe126bd32af7874fe)
2020-09-24 08:22:09 -04:00
arkon
a87f6811e5 Minor updates
(cherry picked from commit 477aedbffa56c99dec658aa0933ad399632631bd)
2020-09-24 08:22:00 -04:00
arkon
10f15d54f3 Add sah locale (closes #3818)
(cherry picked from commit b898442fe348dbe0adcff11431c876843596c4cb)
2020-09-24 08:21:48 -04:00
Jobobby04
91c05e76bc Fix mangadex manga getting set to completed when not actually finished 2020-09-22 14:22:21 -04:00
Jobobby04
caa6dd6d62 Fix issues with mangadex tracking, infinite loading and showing up on non-mangadex manga 2020-09-22 13:45:50 -04:00
Jobobby04
ffc80c084d Parse the error Mangadex sends so people know what they are doing wrong 2020-09-17 12:10:12 -04:00
Jobobby04
9ee712aea4 Fix some mangadex login imports 2020-09-17 10:41:41 -04:00
Jobobby04
11fbc1faf9 Use XLog in more places 2020-09-17 09:05:19 -04:00
Jobobby04
bd6e048108 Fix search in latest + browse view 2020-09-17 00:43:38 -04:00
Jobobby04
a3be1c2c39 Fix merged manga getting backed up 2020-09-16 14:19:16 -04:00
Jobobby04
cbbb3bbf72 Trim the created tag to account for user errors 2020-09-16 13:00:39 -04:00
Jobobby04
67c99c9c42 More fixing to the sort by tags logic 2020-09-16 12:58:25 -04:00
Jobobby04
905e1b68c6 Sort by tag settings is able to sort the tags and save the changes 2020-09-16 12:25:08 -04:00
Jobobby04
f5998505a3 Cleanup 2020-09-15 23:34:14 -04:00
Jobobby04
67e1fee4c5 Fix everything about the sort by tag list 2020-09-15 23:16:49 -04:00
Jobobby04
db70a62c8f Fix sort tag preference 2020-09-15 18:21:26 -04:00
arkon
a4d3fa5878 Fix downloaded only filter
(cherry picked from commit 7641bb4d0da8eb05d23c4e27c97dc2a75418d720)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt
2020-09-15 18:18:33 -04:00
Jobobby04
a8aef554bd Migrate button tweak 2020-09-15 18:16:29 -04:00
Jay
2583be9923 Send manga/chapter/page details when sharing a chapter page
(cherry picked from commit 004e1c98ee27881f1d70b0b74a912eee81b37e94)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
2020-09-15 18:16:06 -04:00
arkon
573768482f Tri-state library filters (closes #1814)
Based on https://github.com/inorichi/tachiyomi/pull/2127.

Co-authored-by: hXtreme <hXtreme@users.noreply.github.com>
(cherry picked from commit 687f3d48ea03e09c2fe33a8d8e36e1adb87bbf4b)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibrarySettingsSheet.kt
#	app/src/main/java/eu/kanade/tachiyomi/widget/ExtendedNavigationView.kt
2020-09-15 16:29:44 -04:00
arkon
8df978a91c Clean up global chapter settings code
(cherry picked from commit da5f10a2f1ac4f65c740c9838558456c43855678)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt
2020-09-15 14:52:31 -04:00
lmj0011
763335bd85 [feature] add ability to set global filter/sort/display for Manga chapters (#3622)
* - [feature] add ability to set global filter/sort/display for Manga chapters

* - move default chapter settings functionality to overflow menu
- code clean up

* - show confirmation dialog when user selects "Set as Default" option in Chapter Settings

* - hide overflow menu in LibrarySettingsSheet

* - apply default chapter settings if manga is added to Library from a Source's browsing screen

Co-authored-by: arkon <arkon@users.noreply.github.com>
(cherry picked from commit 64050e8266603320ec6dafa4a70849aa4a28004b)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt
2020-09-15 14:27:42 -04:00
arkon
4e8c30b7fe Start updating manga info view header design (SY edition)
(cherry picked from commit 791a7d5a01e25b13634291fc1af5970ea35f7692)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
#	app/src/main/res/layout/manga_info_header.xml
2020-09-15 14:08:14 -04:00
Jobobby04
07973bff32 Revert "Disable tag sorting for release"
This reverts commit 70bef08ed6.
2020-09-15 13:29:03 -04:00
Jobobby04
c69972f83a Revert "Hide dedupe by priority for release"
This reverts commit 92ae67630c.
2020-09-15 13:28:58 -04:00
Jobobby04
d05ea94d78 Revert "Hide parental controls section for release"
This reverts commit 02b90000f0.
2020-09-15 13:28:50 -04:00
Jobobby04
70bef08ed6 Disable tag sorting for release 2020-09-15 13:03:15 -04:00
Jobobby04
de05f88d5f Fix Mangadex 2 factor auth
Fix Backups with merge manga breaking(I think)
Tweak preload settings, make the max 20, defaults to 10
Add tag based sorting
2020-09-15 13:00:40 -04:00
Jay
89427ff37e Send manga/chapter/page details when sharing a chapter page
(cherry picked from commit 32aea55f424d77e78be50f288996fe04053db009)
2020-09-14 21:15:40 -04:00
Jobobby04
0f9f7ffc28 Cleanup 2020-09-14 14:36:56 -04:00
Jobobby04
9aab9d4ca4 Fix autofill exclusion 2020-09-14 14:06:48 -04:00
Jobobby04
92ae67630c Hide dedupe by priority for release 2020-09-14 12:47:54 -04:00
arkon
02b90000f0 Hide parental controls section for release
(cherry picked from commit 76c795d0d0cb12ba69f5dc38b3e49c936ab1c0bd)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsMainController.kt
2020-09-14 12:42:39 -04:00
arkon
8d5b2f40b3 Use Kolinter Gradle plugin for linting instead of ktlint directly
(cherry picked from commit 76f6fe46010b235ee59962c94c790428870fc23e)
2020-09-13 23:08:52 -04:00
arkon
49bee1af91 Update to Preivews new update checker, while keeping the SY repos and versions
(cherry picked from commit ca1373f36bb067a86a52ccd12867345d061dba3a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdateChecker.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/updater/github/GithubService.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/updater/github/GithubUpdateChecker.kt
2020-09-13 23:03:22 -04:00
arkon
0f16150613 Replace deprecated system window insets usage
(cherry picked from commit af4710370727511bd65f1f96dc6fd47bb245c4e1)
2020-09-13 22:24:06 -04:00
arkon
6dd7491ffe Remove list dividers
(cherry picked from commit c466baaa25d5ab234286f361f14212074833bf48)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChapterDividerItemDecoration.kt
2020-09-13 22:24:06 -04:00
Jobobby04
02e6eaae12 Cleanup and fix a few compiler warnings 2020-09-13 22:24:03 -04:00
Jobobby04
73523dbff8 Remove Manga Plus delegation as it is not needed with the new extension update 2020-09-13 18:54:38 -04:00
Jobobby04
7a834ea9f4 Mangadex tweaks, fix global update crashing sometimes 2020-09-13 18:45:57 -04:00
Andreas E
a4578611d7 Always show missing chapter warning if there are missing chapters (#3755)
* Always show missing chapter warning if there are missing chapters

* Change function parameter names

(cherry picked from commit 9f260c351352817f2cceed6323c5ebcceca5e2e9)
2020-09-12 13:51:55 -04:00
Jobobby04
bb6932ff80 Mangadex follows, tell browse there are no more pages 2020-09-12 13:51:54 -04:00
Jobobby04
b93298c411 Add MangaDex only implementation of Mangadex Follows list
Add login dialog that pops up whenever you are not logged in when trying to browse MangaDex
Remove attempts at porting over chapter read history from older galleries to new ones
Disable latest for ExHentai, it was browse without buttons anyway
2020-09-11 23:12:13 -04:00
Jobobby04
8928aa77eb Disable logging thread info, it wasnt very useful and made the log difficult to read 2020-09-10 20:27:49 -04:00
AbdullahM0hamed
c8a4ec37e0
Add Black-Red theme (#95)
* Appveyor

* stuff

* resolve conflict

* Let's try this again

* try again

* More fixing

* remove appveyor

* revert build.gradle

* Revert "revert build.gradle"

This reverts commit feaaa78157ffe8d6d6af7d6d63a74bc14b92f584.

* Undo line change

* Update build.gradle

* Update MainActivity.kt

Co-authored-by: AbdullahM0hamed<AbdullahM0hamed@users.noreply.github.com>
2020-09-10 17:06:49 -04:00
Jobobby04
f62d277894 Opps, forgot to push these changes 2020-09-08 12:04:53 -04:00
Jobobby04
238b2d108d Cleanup 2020-09-06 22:43:58 -04:00
Jobobby04
bdaf0f7492 Fix exclusion in library search 2020-09-06 22:43:45 -04:00
Jobobby04
ced8dc750a Cleanup 2020-09-06 21:30:36 -04:00