Commit graph

6855 commits

Author SHA1 Message Date
Secozzi
11f30c885d
Fix lint errors 2024-10-28 10:51:57 +01:00
Secozzi
1cae533d65
Address spotless lint errors 2024-10-27 21:36:32 +01:00
Secozzi
324a4850a3
Remove more detekt annotations 2024-10-27 10:52:26 +01:00
AntsyLich
aeb17fa859
Remove detekt (#1130)
Annoying. More annoying in this project.

(cherry picked from commit 777ae2461e1eb277a3aa0c998ff69e4f100387a1)
2024-10-27 10:38:00 +01:00
FooIbar
fa3966151e
Add comment about RecyclerView cache size (#1119)
Note for forks: Increasing cache size may cause OOM on API < 26, better
to make it API 26+ only.

(cherry picked from commit 1c47a6b9b35c622200c731cdbbc076f5263e8d06)
2024-10-27 10:30:03 +01:00
AntsyLich
c2945c3e62
Sync compose theme with MDC theme
(cherry picked from commit 9a34ace09c66274e6c2b3f9446058a0fa99d4bd0)
2024-10-27 10:28:23 +01:00
Secozzi
3da7fbb281
Fix some migrations never running
Both `SetupBackupCreateMigration` and `SetupLibraryUpdateMigration` were
trying to get the `App` class from Injekt which is never provided via
the `AppModule`. Using `Application` instead works since the
`workManager` property used by the respective `setupTask` functions is
an extension property on `Context`.

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-10-27 10:27:04 +01:00
AntsyLich
0cf8a7cdfe
Handle Android SDK 35 API collision
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-27 09:31:18 +01:00
Catting
b2e91517e7
Add an "open in browser" button to reader menu (#1110)
* Add an "open in browser" button to reader menu

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

* fixup! Add an "open in browser" button to reader menu

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

---------

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>
(cherry picked from commit c5994e057b37484fec3a5300491946afe377a90a)
2024-10-27 09:29:39 +01:00
AntsyLich
e40b81b077
Fix UI freeze after migration
Fixes #938

(cherry picked from commit 3f1d28c3833e6b868152149ed02b3fb8c54eccef)
2024-10-27 09:29:18 +01:00
AntsyLich
364fbc5161
Add a button to select all scanlators
Resolves #943
Closes #1109

(cherry picked from commit 84b2164787a795f3fd757c325cbfb6ef660ac3a3)
2024-10-27 09:27:13 +01:00
Secozzi
8c75d6ccba
Add Copy Tracker URL on icon long press
* Add Copy Tracker URL on icon long press

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Add 'Copy To Clipboard' to tracker item menu

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Add 'Copy link' to locales.

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Implement code review suggestions
>
> Co-authored-by: AntsyLich  <59261191+AntsyLich@users.noreply.github.com>

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Update app/src/main/java/eu/kanade/presentation/track/components/TrackLogoIcon.kt

---------

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-26 10:38:27 +02:00
Secozzi
973a137716
Fix MAL search results not showing start dates
The previous approach would always throw an Exception because
`SimpleDateFormat.format()` expects the input to be of type `Date` or
`Number`, not `String`.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-10-26 10:22:35 +02:00
MajorTanya
2e6b1642e9
Change Kitsu to kitsu.app domain
cf. hummingbird-me/kitsu-server@244fdcc

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-10-26 10:20:03 +02:00
Secozzi
80f038fb78
ExpandableMangaDescription: Adjust size transform anim spec
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-26 10:15:15 +02:00
Secozzi
8f2466d61e
Add Backup and Restore of Extension Repos (#1057)
* Backup/Restore Extension Repos

* Refactor

* Moving to Under App Settings

* Sort by URL, Check existing by SHA and Error Logging

Untested. Currently in a lecture and can't test if the changes really work.

* Changes to logic

* Don't ask me what's happening here

* Renaming Variables

* Fixing restoreAmount & changes to logic

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

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-10-26 10:12:39 +02:00
Secozzi
4c4c20700c
Rename backup restore error log file
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-19 11:19:43 +02:00
FooIbar
f09e563359
Don't crash on ill-formed URLs (#1084)
(cherry picked from commit 854474f85ffc41eccdc2b3a6cf105fa2805ebc3c)
2024-09-19 11:18:18 +02:00
FooIbar
1d2dcac601
Match extra layout space with scroll distance (#1076)
And increase recycler item view cache size.

(cherry picked from commit a3dfd2efe6ace7a2a4d79bd09fb1a729989f1094)
2024-09-19 11:15:51 +02:00
Secozzi
f5eb3e044e
Improve error message if restoring from JSON file
* Improve error message if restoring from JSON file

* Replace Exception with IOException

* Use more generic error message if protobuf fails

* fix lint

Co-authored-by: Vetle Ledaal <13540478+vetleledaal@users.noreply.github.com>
2024-09-19 11:15:36 +02:00
Secozzi
5eb1bf700b
Cleanup backup/restore related code
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-19 11:09:57 +02:00
Secozzi
83a10d384e
Fix library is backed up when disabled and make categories backup/restore independent
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-19 10:43:31 +02:00
Secozzi
98941fe2d8
Adds Option to Copy Panel to Clipboard
* Add Copy to Clipboard

* Removing Unused Import

* Reusing onShare function

* Commit Suggestion

* Early Return on null

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-09-18 09:12:21 +02:00
Secozzi
4f3509cbae
Fix disappearance items when fast scrolling
* Don't use animateItem's fade-in/fade-out in FastScrollLazyColumn

* Move to extension function

Avoid using animateItemPlacement name since it's shadowed by compose-bom's deprecated one

Co-authored-by: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
2024-09-18 09:03:57 +02:00
Secozzi
0d712f8df4
Format Category String on Subtitle Display
* Fixes #1029

* Max Line Length Fix

* Update SettingsLibraryScreen.kt

No idea how this works.

Co-authored-by: Foolbar <118464521+Foolbar@users.noreply.github.com>

---------

Co-authored-by: Foolbar <118464521+Foolbar@users.noreply.github.com>
Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-09-18 08:54:02 +02:00
Quickdev
79cd35b29a
feat(downloader): Copy the file location when using ext downloader (#1758) 2024-08-29 10:28:43 +02:00
Secozzi
dabfdf968e
fix(downloader): Don't invalidate anime downloads on startup (#1753) 2024-08-29 10:28:05 +02:00
Secozzi
5c939814a7
fix(animescreen): Fix airing time not showing (#1720) 2024-07-25 12:19:56 +02:00
Secozzi
1d18aa313f
feat(entry): Show "Now" instead of "0 minutes ago" (#1715) 2024-07-21 14:47:55 +02:00
jmir1
c83ebf322f
fix: Group updates by date and not time 2024-07-18 16:01:36 +02:00
Secozzi
291c24b405
feat(player): Add better auto sub select (#1706)
Co-authored-by: Abdallah <54363735+abdallahmehiz@users.noreply.github.com>
Co-authored-by: jmir1 <jhmiramon@gmail.com>
2024-07-18 13:48:26 +02:00
jmir1
58817c724e
fix(tracking): Fix Shikimori 2024-07-16 22:59:30 +02:00
jmir1
74b32a3a0b
fix: Use different status strings for anime trackers 2024-07-16 22:53:53 +02:00
jmir1
03e1ecd75e
fix: Some issues with relative date calculations 2024-07-16 20:25:18 +02:00
jmir1
1f3be7b523
feat: Show hours and minutes in relative time strings
Closes #1702
2024-07-16 17:37:09 +02:00
jmir1
5ae35c891b
fix: Actually remove ACRA 2024-07-16 15:44:43 +02:00
Abdallah
60c671aa27
feat(player): Add video filters (#1698) 2024-07-16 15:40:08 +02:00
jmir1
d3c6a159d8
chore: Remove ACRA 2024-07-16 15:38:41 +02:00
Secozzi
150ba47b76
detekt(detekt): detekt 2024-07-13 10:07:28 +02:00
Secozzi
633e9880a2
Bump coil version and some cleanup
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-13 09:34:39 +02:00
Secozzi
20d8b06104
Fix some issues when reading/saving images
* Fix unsupported mime type error when saving images

Avoid using platform mime type map to get extensions as it may not have
all mime types we support.

* Fix jxl images downloading/reading

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-13 09:31:27 +02:00
Secozzi
5e1a6c9d9c
Fix login prompts despite being logged in to trackers in Manga screen
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-13 09:26:00 +02:00
Secozzi
38ba45b6e7
Observe tracker login state instead of fetching once
* Observe tracker login state instead of fetching once

* Review changes

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 23:15:47 +02:00
Secozzi
2ff66d7f1d
Make global search "Has result" sticky
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 22:39:54 +02:00
Secozzi
2ccd3ffc8f
Smart Update Dialog Tweak
* Smart Update Dialog Fix

* Build Fail Change 1

* Commit Suggested Change

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* Build Fail Change 2

---------

Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 22:35:31 +02:00
Secozzi
c312832812
fix(deps): update dependency io.coil-kt.coil3:coil-bom to v3.0.0-alph…
…a07

* fix(deps): update dependency io.coil-kt.coil3:coil-bom to v3.0.0-alpha07

* Fix build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 22:27:00 +02:00
CrepeTF
bcf72c919f
Theme fixes (#963)
* Fix theme issue with download progress indicator

* Fix theme issue with download progress indicator + better contrast

(cherry picked from commit e132cc405f23e18dd8d73626730821eae9051149)
2024-07-12 22:14:53 +02:00
Secozzi
637f159079
Added configuration options to e-ink page flashes
* Recommit for e-ink pref changes

* Fixed state holder for flash interval

* Detekt

* Refactor suggested by Antsy

* inverted currentDisplayRefresh check for early exit

Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-07-12 22:11:53 +02:00
Secozzi
8f45a8e122
Refactor archive support with libarchive
* Refactor archive support with libarchive

* Revert string resource changs

* Only mark archive formats as supported

Comic book archives should not be compressed.

* Fixup

* Remove epub from archive format list

* Move to mihon package

* Format

* Cleanup

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-12 22:00:23 +02:00
Secozzi
b1fba0e55f
Cleanup in CommonMangaItem.kt
Closes #19

Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 21:29:26 +02:00