Commit graph

9341 commits

Author SHA1 Message Date
renovate[bot]
efd2161be3
fix(deps): update dependency com.google.accompanist:accompanist-systemuicontroller to v0.36.0 (#336)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 15:30:19 +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
AntsyLich
6d4a7f02de
Rename LocalesConfigPlugin file to LocalesConfigTask
(cherry picked from commit 70c1a842b207d8faf0d87635674667d190669fd1)
2024-09-05 15:26:10 +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
renovate[bot]
e552b3fff5
fix(deps): update dependency com.android.tools:desugar_jdk_libs to v2.1.2 (#333)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 19:28:08 +07:00
renovate[bot]
95bbcbc00e
chore(deps): update actions/upload-artifact action to v4.4.0 (#326)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 19:27:55 +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
Smol Ame
8845c2c317
Enable 'Split Tall Images' by default (mihonapp/mihon#1185)
(cherry picked from commit 9c1905ede750f0229fad1a01431058b1cc9fb32d)
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
55b88a4c42
Update links 2024-09-04 17:22:18 +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
Weblate (bot)
76c4f68b2b
Translations update from Hosted Weblate (jobobby04/TachiyomiSY#1259)
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy-plurals/es/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy-plurals/fil/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy-plurals/ja/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/fil/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/hr/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/id/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/ne/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/ru/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/mihon/tachiyomisy/zh_Hant/
Translation: Mihon/TachiyomiSY
Translation: Mihon/TachiyomiSY Plurals

Co-authored-by: Dexroneum <Rozhenkov69@gmail.com>
Co-authored-by: Fadhil Muhammad <alpanumerik1@gmail.com>
Co-authored-by: HDYOU <308485965@qq.com>
Co-authored-by: Infy's Tagalog Translations <ced.paltep10@gmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: NGB-Was-Taken <myalternate34@gmail.com>
Co-authored-by: akir45 <akkn0708@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: ɴᴇᴋᴏ <s99095lkjjim@gmail.com>
(cherry picked from commit fbac29e0cdc9487ac1943a2cff950ed21c24e1de)
2024-09-04 17:22:12 +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
AntsyLich
c79fd145a1
Use feature flags in compose compiler plugin
And slight cleanup

(cherry picked from commit 8f9a325895bb7b94c2ec92dd969094fc30b3b5e2)
2024-09-04 15:46:36 +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
Cuong-Tran
e372542faa
fix: ext obsolete status (#327)
* fix: ext obsolete status

it was flip-flop each time refreshed

* reformat
2024-09-01 02:37:57 +07:00
Cuong-Tran
dfc33f983f
adjust source search's padding (#325) 2024-08-31 01:59:39 +07:00
Cuong-Tran
eb62927c1b
Add source search, icon & flag on Feed adding dialog (#324)
* add language flag

* add source icon

* source search
2024-08-31 01:23:20 +07:00
renovate[bot]
e94a6d3d80
fix(deps): update dependency com.android.tools.build:gradle to v8.6.0 (#319)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 17:19:43 +07:00
Cuong-Tran
b29e7c3ec5
bump versionCode 70
update changelog & README
2024-08-30 00:18:33 +07:00
Cuong-Tran
5bdf5ec862
Update translation from Crowdin 2024-08-29 23:32:14 +07:00
renovate[bot]
d1e449ecd7
fix(deps): update serialization.version to v1.7.2 (#316)
* fix(deps): update serialization.version to v1.7.2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 23:16:14 +07:00
Cuong-Tran
af212480ae
Serializable object must implement 'readResolve' 2024-08-29 23:14:46 +07:00
Cuong-Tran
a979e3cda5
rename Related Titles to Suggestions (#317)
* Rename RelatedTitles to RelatedMangas/Suggestions

* Website suggestions
2024-08-29 23:13:42 +07:00
Cuong-Tran
ce6bd7cbad
Show language flags in AppLanguageScreen 2024-08-29 16:48:39 +07:00
Cuong-Tran
8b50cba75a
More language flags 2024-08-29 16:48:09 +07:00
Cuong-Tran
32e25f7959
use FlagEmoji instead of vector flags in some places 2024-08-29 16:21:08 +07:00
Cuong-Tran
9fc6ea65a5
use UN flag for language All 2024-08-29 16:14:35 +07:00
Cuong-Tran
454228e78f
Hide language icon for LocalSource 2024-08-29 02:14:58 +07:00
renovate[bot]
f4b8fdc59e
fix(deps): update dependency com.android.tools:desugar_jdk_libs to v2.1.1 (#312)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 00:15:41 +07:00
Tran M. Cuong
19b36d724c
revert: language badge for ALL (#314) 2024-08-29 00:15:27 +07:00
Tran M. Cuong
593aac4d0a
language flags for SourceFilter (#315) 2024-08-29 00:15:00 +07:00
Tran M. Cuong
ce727d6d42
fix: correctly using language flag in source name to avoid it appears in folder name (#313)
* fix: correctly using language flag in source name to avoid it appears in folder name

* using flag language in PreMigration list
2024-08-28 23:54:39 +07:00
Tran M. Cuong
9def7e7380
add back button on smartsearch source (#309) 2024-08-28 18:37:05 +07:00
Tran M. Cuong
9a12a904ba
safe-guard some edge-cases where chapters are duplicated some how on a merged entry (#311) 2024-08-28 18:36:52 +07:00
Tran M. Cuong
37a817e8f8
don't expand description on the manga found by smart search being used for merging, so user can see the button 'Merge with another' (#310) 2024-08-28 18:36:36 +07:00
Tran M. Cuong
eb311ee27a
feat: merge multiple library entries (#302)
* extract SmartSearchMerge to a separated class

* multiple select & merging from library

* fix various case when merging an already merged entry

* allow run 1 manga search-merging directly from Library screen

* allow remove merged entries after merging

* Open the newly-created merged manga after merging

* don't expand description on the merged manga being opened after merging
2024-08-28 18:26:00 +07:00
Roshan Varughese
c4f54e54b3
Hide keyboard when a Tracker SearchResultItem is clicked (mihonapp/mihon#1168)
* Hide keyboard on select

* Code Review Suggestion

(cherry picked from commit 7ca64a67c5c64103aa3a5c7efb9227d3a98b715d)
2024-08-28 00:00:37 +07:00
Tran M. Cuong
dadcfe6e21
Don't show Related Titles for merged entries (#308)
Also fix the case it was always showing Related Titles on overflow menu.
2024-08-27 23:58:42 +07:00
Tran M. Cuong
2d73e5e526
move dropdown menu to correct position (#303) 2024-08-27 18:21:12 +07:00