Commit graph

8176 commits

Author SHA1 Message Date
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
27a1a9baea
update changelog_preview 2024-09-27 11:58:41 +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
Cuong-Tran
fc84f2ad13
add MangaDex to Batch-Add example 2024-09-23 12:50:22 +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
AntsyLich
a408fedeb3
Move firebase permission removal to standard flavor
And disable some more stuff

(cherry picked from commit be671b42cefd70180644e01bb065a18cb7701bf9)
2024-09-19 13:04:19 +07:00
Cuong-Tran
93d695661f
update changelog_preview 2024-09-18 13:54:43 +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
c74a4bcc28
ui: show number of entries on upcoming screen (#363)
close #362
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
AntsyLich
1b637c9f4a
Remove more unnecessary permissions from Firebase dependency
(cherry picked from commit 02af9b1acf9f590d29560bc3fc90d206e8e6e1af)
2024-09-05 13:46:06 +07:00
AntsyLich
6b14769331
Migrate some classpaths to gradle plugins
(cherry picked from commit fc1c804bfda1d76c0399bbb6214e75b3def951cc)

# Conflicts:
#	app/build.gradle.kts
#	build.gradle.kts
#	i18n/build.gradle.kts
2024-09-04 19:07:51 +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
Cuong-Tran
66077917af
Fix DTO API for MangaDex tracker 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
AntsyLich
6d78d96850
Add stable marker to Manga data class
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
(cherry picked from commit 4ee31bfea5b6908e7131e2c46e4cb46155005abf)
2024-09-04 16:27:35 +07:00
AntsyLich
09a38669e8
Collect MangaScreen state with lifecycle
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
(cherry picked from commit 03eb756ecba0692d88d3a76254afc4c157fa225b)
2024-09-04 16:27:29 +07:00
AntsyLich
9f09ac94b9
PagerPageHolder: lazy init loading indicator
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
(cherry picked from commit a45eb5e5288159dbbbbb5f92140ce0dd32a8f3ab)
2024-09-04 15:56:28 +07:00
AntsyLich
96669f6ca4
Remove legacy broken source and history backup
(cherry picked from commit 518abf032ccb9bb45d197927be2a5faca4167d29)
2024-09-04 15:46:42 +07:00
Cuong-Tran
a0d0a2ba09
update changelog 2024-09-01 04:55:08 +07:00
Cuong-Tran
c498e77ced
fix extension won't update (#328) 2024-09-01 03:05:07 +07:00