Commit graph

6507 commits

Author SHA1 Message Date
NGB-Was-Taken
8952c03b09
Show download state and progress on reader chapter list. (jobobby04/TachiyomiSY#1263)
* Show download state and progress on reader chapter list.

* Update download indicator on progress and status change.

(cherry picked from commit 558ce084c81ca8e82b540b62890ac3eb4e65aa18)
2024-10-23 14:19:45 +07:00
Cuong-Tran
721229b90e
matching source with SY 2024-10-23 14:19:45 +07:00
AntsyLich
5d47ca755e
Make sure random library sort is at the bottom
(cherry picked from commit 2e2c8d36c1e23bf274c7c19f1242e14b0c7afbc1)

(cherry picked from commit 91d61a75e3dc2f044de250f32a88f3bac6e72cd0)
2024-10-23 14:19:45 +07:00
AntsyLich
3e473e5698
Reorder reader menu overflow items
(cherry picked from commit 788235feeca241228eac0561339dd07b5ea0b77d)
2024-10-23 14:19:45 +07:00
Roshan Varughese
f839334c1c
Add option to backup non-library read entries (mihonapp/mihon#1324)
Co-authored-by: jobobby04 <jobobby04@gmail.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit de36357da834bff4110dbb56dd7ce7aad04d3c7d)

(cherry picked from commit 943555c0af49b48abaa18a47395e5516f3357bae)
2024-10-23 13:08:42 +07:00
brewkunz
bddfef47e5
Fix EnhancedTracker not auto binding when adding manga to library (mihonapp/mihon#1298)
(cherry picked from commit 3ed8a91c7b37ed89e6c4cab91daa79e6c846abe3)
2024-10-23 13:08:41 +07:00
Roshan Varughese
9eeb4a5032
Confirmation dialog when removing privately installed extensions (mihonapp/mihon#1320)
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 87db3f90dee8aa566038b46d0bdc975e715ab8f6)
2024-10-23 13:08:41 +07:00
Jack Hamilton
dacea90f10
Added random library sort (mihonapp/mihon#1317)
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit a72db41bf1746db095fd27bbbce9765c06453581)
2024-10-23 13:08:41 +07:00
Roshan Varughese
5e595ea7b9
Add Quantity Badge to Upcoming Screen (mihonapp/mihon#1250)
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 6b2bba4e5495274552787adc20db390a89d783b6)
2024-10-23 13:08:41 +07:00
AntsyLich
a076793e13
Tweak profile compilation status output
Co-authored-by: p
(cherry picked from commit c8bb78d91afc2824baaca999f0095559c49d1306)
2024-10-23 13:08:41 +07:00
AntsyLich
890941fc02
Remove usage of deprecated accompanist SystemUiController
Co-authored-by: p
(cherry picked from commit 2ba3f0612c08c7021fed2f6d96cd538da2f34a13)
2024-10-23 13:08:41 +07:00
AntsyLich
bf6e1abbc7
ChapterNavigator: dispatch page change only when needed
Co-authored-by: p
(cherry picked from commit f84d9a08b4af768b1e9920c43cc445c86f5427fc)
2024-10-23 13:08:41 +07:00
AntsyLich
80063ffba4
Bump compile sdk to 35
Co-authored-by: p
(cherry picked from commit 37419cdc26c2b5c4f8583fc2ba439b08fab42856)
2024-10-23 13:08:41 +07:00
AntsyLich
f3c48d3ad8
Cleanup LibraryScreenModel LibraryMap.applySort and some more
(cherry picked from commit 2beb89d53163a6d288f8acdebe0f5d26fea8ab3e)
2024-10-23 13:08:41 +07:00
Cuong-Tran
b99389d2d0
bulk-selection: reverse selection 2024-10-23 13:08:40 +07:00
Cuong-Tran
a40385554c
show loading indicator while bulk-selection is running 2024-10-23 13:08:23 +07:00
brewkunz
774f99e0b6
Retain remote last chapter read if it's higher than the local one for EnhancedTracker (mihonapp/mihon#1301)
(cherry picked from commit 44aab7a2437ffdab354ee5ed82593fbaabb06a64)
2024-10-11 19:18:30 +07:00
Cuong-Tran
a96984b4ef
Fix Custom theme breaking Compose preview 2024-10-06 21:31:42 +07:00
Secozzi
697f59c943
Fix AniList ALSearchItem.status nullibility (mihonapp/mihon#1297)
(cherry picked from commit 76e0aba70cc3a744e6ef4950a89ff6a498a54909)
2024-10-06 21:00:08 +07:00
Cuong-Tran
147a36a709
feat(ui): Panorama cover
* support panorama cover

* bigger panorama cover size in GlobalSearchCardRow

* setting to enable/disable

* panorama cover for History items

* Keep panorama cover position in Library View centered for better visual

* fix: update ratio in Detail page if cover doesn't reload anew

* adjust ratio to switch to panorma

* panorama cover for Migration items

* center panorama cover & add dominant background color

* panorama cover for EditMangaInfo

* Fix size on GlobalSearchCardRow

* display mode for manual panorama cover

* Fix LibraryFlagsTest
2024-09-27 11:58:16 +07:00
Cuong-Tran
d09949e2bb
feat(ui): read/resume button movable
* material3: update scaffold to support FabPosition.Start

also fix fab's width calculation with inset

* Moveable Read button & sticky to either size of screen
2024-09-24 00:52:51 +07:00
Cuong-Tran
444f199225
Colors palette for Custom theme
* colors palette

* color button styling & scroll to top

* button's color animation

* Color change with hex. Also using default BrightnessSlider
2024-09-23 19:59:43 +07:00
Cuong-Tran
b72d910cc9
Improve custom theme
* update string

* migrate to use DynamicMaterialTheme instead

* support various style for custom theme

* use BaseColorScheme with dynamicColorScheme instead, to avoid Activity being recreated

* apply theme right when changing theme style

* change default style to Fidelity

* adaptable to system contrast with Custom theme & Theme based cover
2024-09-23 19:41:34 +07:00
Riztard
76f43ec9ab
hide batch add if integrated H & Delegated src is off 2024-09-23 12:50:22 +07:00
Cuong-Tran
a4a18361c9
enable hidden categories by default 2024-09-23 12:49:23 +07:00
Roshan Varughese
f701db1dbe
Re-enable fetching chapters list for entries with licenced status (mihonapp/mihon#1230)
Enable Licensed

(cherry picked from commit 9cc7d42dd9676319559eddc7a4a264fca155e1ca)
2024-09-18 13:54:43 +07:00
MajorTanya
4ad0748c4e
Fix Kitsu synopsis nullability (mihonapp/mihon#1233)
This time, the Kitsu API docs are silent on whether this field (or
any other field) can be null/undefined/etc, but it can happen and
caused an error during search and update. This change just ensures the
attribute is nullable and is set to an empty String when it is null.

(cherry picked from commit f5c6d2e1a6896c031b8f4583375ee868f252822a)
2024-09-18 13:54:43 +07:00
Cuong-Tran
dd58a90588
fix: wrong feed adding when filter search (#366) 2024-09-18 13:54:43 +07:00
Cuong-Tran
326581e784
feat(ui): saved search tabs for browse source (#361)
Make all saved searchs to tabs in BrowseSource
2024-09-18 13:54:43 +07:00
Cuong-Tran
ef58951bac
feat: feed reorder screen (#356)
* feat: Add screen to reorder Feeds

* refactor: Update icons/title and add preview for FeedOrderListItem

* refactor & cleanup

* feat(source): Add functionality to reorder feeds in source feed screen.

* feat: Add sorting functionality to source feed order screen

* refactor: Update SourceFeedScreen AppBar buttons

* refactor: Reuse FeedDeleteConfirmDialog and FeedSortAlphabeticallyDialog

* refactor: Reuse FeedOrderListItem
2024-09-18 13:54:43 +07:00
kana-shii
ba43e5584c
disable smart-update for individual & fix custom interval (#318)
* set custom disabled interval

* fix wrong calculation of nextUpdate when setting custom fetchInterval

---------

Co-authored-by: Cuong-Tran <cuongtran.tm@gmail.com>
2024-09-13 00:48:13 +07:00
Cuong-Tran
6c9dfb82f4
feat: Hidden categories (#348)
* support hide categories (merged from Aniyomi)

* styling CategoryScreen: always showing all categories & shading the hidden one

* Hide categories directly on Library tab and load it as a flow

* fix: hidden categories got reset after delete/reorder

* remove unnecessary code
2024-09-11 18:06:37 +07:00
Cuong-Tran
4a2f8a7895
revert repo's hide/unhide icon 2024-09-11 17:40:12 +07:00
AntsyLich
81d70c5ce3
Use new library for injekt with inorichi patch
(cherry picked from commit 83fd4746eda1b99f35292b0c2211e606a421b3eb)
2024-09-08 23:04:57 +07:00
AntsyLich
2fe0236384
Use TextFieldState in BasicTextField where applicable (mihonapp/mihon#1201)
Co-authored-by: p
(cherry picked from commit bec549cc444328c8b46594c67a84d25dcc1aca6f)
2024-09-08 02:06:53 +07:00
NGB-Was-Taken
e730ae0837
Show toast for app restart when User-Agent is changed (mihonapp/mihon#1204)
(cherry picked from commit c8ad6cdf31a14bce9a525cfc2a0616e8ac51d7c3)
2024-09-08 02:06:48 +07:00
AntsyLich
e24f4b2a71
Reduce ChapterNavigator horizontal padding on small ui (mihonapp/mihon#1202)
Co-authored-by: p
(cherry picked from commit 6f422745ba6db135514ac4959216923932565760)
2024-09-08 02:06:37 +07:00
Cuong-Tran
18b4b071a8
e-hentai language flag (#343)
* add language flag to BrowseList

* add Japanese support

* show language flag in metadata view
2024-09-08 00:44:47 +07:00
Cuong-Tran
2e0eb6ce85
hide display mode for e-hentai (#342) 2024-09-07 22:10:40 +07:00
Cuong-Tran
03f42ac2cf
remove option clean invalid downloads (#341) 2024-09-07 20:53:46 +07:00
bapeey
8fa56c5efb
Ignore "intent://" urls on webview (mihonapp/mihon#1193)
ignore intent urls

(cherry picked from commit b56a97bb8eaf336c75e69e7fb32b87431d991bb3)
2024-09-05 22:02:44 +07:00
AntsyLich
a1e0a1cd4b
Move archive related code to :core:archive
(cherry picked from commit bd7b35419861df6d426d6ec0a188391910d0f615)
2024-09-05 22:00:46 +07:00
Cuong-Tran
ffd5b4ebc1
Fix crashlytics while using custom global exception handler (#338)
* Add crashlytics to standard builds

(cherry picked from commit 3c611b95fb79e5ac972019b76c7b24f46a3087fd)

* Testing crashlytics

* working

* cleanup

* Revert "Auxiliary commit to revert individual files from 84232c7fe229bf557680a787fa02c055ca18dc66"

This reverts commit 2c9b6277b276f108a25e90e6be9a227440136063.

* Revert "Auxiliary commit to revert individual files from cf3f5fe1586f40fabf5b75a649ab332282608a08"

This reverts commit 708f6b1d3803374b0440d163560a682f0cfc618e.

* Only send crashlytics on Standard & Release/Preview build

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-05 15:29:28 +07:00
MajorTanya
586001c9a7
Fix Kitsu ratingTwenty being typed as String (mihonapp/mihon#1191)
The API docs and the responses type `ratingTwenty` as a "number" (Int
in Kotlin, it's divided by 2 for a .5 step scale 0-10). It's nullable
because an entry without a user rating returns `null` in that field.

(cherry picked from commit 001249a89dd4824a3df5661733062662c0ab44bd)
2024-09-05 15:26:10 +07:00
Roshan Varughese
11c2ae70dd
Option to update trackers when chapter marked as read (mihonapp/mihon#1177)
* Track when marked as read

* Add dismiss to snack bar

* i18n & ignore decimal chapters

* Detekt would have caught that 🤣

* `Ok` > `Yes`

* Dont prompt if untracked or current > new

* Move to MangaScreenModel

* Suggestions

Co-Authored-By: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* Review 2

* toggleAllSelections first

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit abfb72c89c008973db866bf4b696b699db155574)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt
2024-09-04 19:07:51 +07:00
MajorTanya
a4d556affc
Use DTOs to parse tracking API responses (mihonapp/mihon#1103)
* Migrate tracking APIs to DTOs

Changes the handling of tracker API responses to be parsed to DTOs
instead of doing so "manually" by use of `jsonPrimitive`s and/or
`Json.decodeFromString` invocations.

This greatly simplifies the API response handling.

Renamed constants to SCREAMING_SNAKE_CASE.

Largely tried to name the DTOs in a uniform pattern, with the
tracker's (short) name at the beginning of file and data class names
(ALOAuth instead of OAuth, etc).

With these changes, no area of the code base should be using
`jsonPrimitive` and/or `Json.decodeFromString` anymore.

* Fix wrong types in KitsuAlgoliaSearchItem

This API returns start and end dates as Long and the score as Double.

Kitsu's docs claim they're strings (and they are, when requesting
manga details from Kitsu directly) but the Algolia search results
return Longs and Double, respectively.

* Apply review changes

- Renamed `BangumiX` classes to `BGMX` classes.
- Renamed `toXStatus` and `toXScore` to `toApiStatus` and `toApiScore`

* Handle migration from detekt to spotless

Removed Suppressions added for detekt.

Specifically removed:
- `SwallowedException` where an exception ends as a default value
- `MagicNumber`
- `CyclomaticComplexMethod`
- `TooGenericExceptionThrown`

Also ran spotlessApply which changed SMAddMangaResponse

* Fix Kitsu failing to add series

The `included` attribute seems to only appear when the user already
has the entry in their Kitsu list.

Since both `data` and `included` are required for `firstToTrack`, a
guard clause has been added before all its calls.

* Fix empty Bangumi error when entry doesn't exist

Previously, the non-null assertion (!!) would cause a
NullPointerException and a Toast with
"Bangumi error: " (no message) when the user had removed their list
entry from Bangumi through other means like the website.

Now it will show "Bangumi error: Could not find manga".

This is analogous to the error shown by Kitsu under these
circumstances.

* Fix Shikimori ignoring missing remote entry

The user would see no indication that Shikimori could not properly
refresh the track from the remote. This change causes the error Toast
notification to pop up with the following message
"Shikimori error: Could not find manga".

This is analogous to Kitsu and Bangumi.

* Remove usage of let where not needed

These particular occurrences weren't needed because properties are
directly accessible to further act upon. This neatly simplifies these
clauses.

* Remove missed let

(cherry picked from commit 9f99f038f341e325c4f56372a5ce950cf9f7cd6d)
2024-09-04 19:07:51 +07:00
Dani
10d155b9a0
Support skip-downloading-duplicate-read-chapters for merged entries
(cherry picked from commit e19c62a8aef2203eb287ef2f450c95b642f7f2f0)
2024-09-04 17:22:29 +07:00
NGB-Was-Taken
4f0960309b
Move "Choose what to sync" out of "Sync now" (jobobby04/TachiyomiSY#1264)
(cherry picked from commit 19bc08659b84498b1c1786ddc3d925528765f4d9)
2024-09-04 17:22:29 +07:00
NGB-Was-Taken
99e2e24b6d
Show local chapters as downloaded on merged entries. (jobobby04/TachiyomiSY#1262)
* Show local chapters as downloaded on merged entries.

* Disable downloadIndicator for local chapters on merged entries.

(cherry picked from commit 2cb8f8f872f055275bf6126f1ed4ef2617c69ea8)
2024-09-04 17:22:23 +07:00
NGB-Was-Taken
4a656f3e84
Respect thumbnailQuality and tryUsingFirstVolumeCover preferences. (MD) (jobobby04/TachiyomiSY#1260)
(cherry picked from commit bdb8553e28bd839c29785012ded2dde93cc885ab)
2024-09-04 17:22:18 +07:00