Commit graph

6795 commits

Author SHA1 Message Date
CrepeTF
aa2f4ec302
Update themes to follow new compose update changes (#766)
* Update Green Apple theme

* Add some Green Apple theme comments

* Update Lavender theme

* Update Midnight Dusk theme

* Update Nord theme

* Update Strawberry Daiquiri theme

* Update Tako theme

* Update Teal & Turquoise theme

* Update Lavender secondaryContainer and onSecondaryContainer colour

* Update M.Dusk secondaryContainer and onSecondaryContainer colour

* Update Tako secondaryContainer and onSecondaryContainer colour

* Comments

* Update Tidal Wave theme

* Update Yin Yang theme

* Update Yotsuba theme

* Fix navbar tinted background on pure black

* Add surfaceContainer levels to Lavender theme

* Resolve detekt issues

* Add surfaceContainer levels to Midnight Dusk theme

* Add surfaceContainer levels to Nord theme

* Add surfaceContainer levels to Tako theme

* Add surfaceContainer levels to Teal & Turquoise theme

* Add surfaceContainer levels to Tidal Wave theme

* Add surfaceContainer levels to Yin Yang theme

* Add surfaceContainer levels to Yotsuba theme

* Add dark theme surfaceContainer levels to Yotsuba theme

* surfaceContainer tweaks to Yotsuba theme

* surfaceContainer tweaks to Strawberry Daiquiri theme

* surfaceContainer tweaks to Nord theme

* surfaceContainer tweaks to Lavender theme

* Update Tachiyomi theme

* Update Pure Black theme

* Resolve detekt issues

* Oopsie

(cherry picked from commit 16392adcbba4027cbed0a44e2fc62df330af6385)
2024-07-12 18:16:53 +02:00
Secozzi
e3226196a1
update r8 rules for MultipartBody.Builder in extensions
Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
2024-07-12 18:16:16 +02:00
Secozzi
30359baaba
Remove dependency on compose material 2 components
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 18:13:02 +02:00
Secozzi
cdc9e7c8b0
Fix tap control area shifting after zooming out
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-11 23:19:25 +02:00
Secozzi
268581c84e
Use new SurfaceContainer color roles
Non-dynamic themes need to be updated

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-11 23:17:25 +02:00
Secozzi
303f0f2763
Fix search bar style
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-11 23:08:10 +02:00
Secozzi
04325a832c
Change keyboard type in extension repo dialog
Co-authored-by: Reagan <24711088+xbjfk@users.noreply.github.com>
2024-07-11 23:07:11 +02:00
Secozzi
02ccbfd172
Bump compose version
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-11 23:04:41 +02:00
Secozzi
f9d340819a
Massively improve findFile performance
* Massively improve findFile performance

* Update libs.versions.toml

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Radon Rosborough <6559064+raxod502@users.noreply.github.com>
2024-07-11 22:39:59 +02:00
Secozzi
5419d987f8
Remove some legacy folder/file name lookup for download
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-11 22:29:43 +02:00
Secozzi
d07bd71678
Trust extension by repo
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-11 22:27:52 +02:00
Secozzi
482425f7b2
Fix some extension related issue and cleanups
- Extension being marked as not installed instead of untrusted after updating with private installer
- Extension update counter not updating due to extension being marked as untrusted
- Minimize `Key "extension-XXX-YYY" was already used` crash

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-11 22:02:56 +02:00
Secozzi
a10fc6dcb7
Log app crash exceptions in dumped crash logs
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-11 21:12:33 +02:00
Secozzi
1ee6f0fc57
Use Coil pipeline instead of SSIV for image decode
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-11 21:09:41 +02:00
Secozzi
4f865ff629
Use Okio instead of java.io for image processing
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-11 21:00:47 +02:00
Secozzi
3c4142cb54
Use m3 ripple and clean up interactionSource usage
Also remove a leftover of scoped storage adaptation.

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-11 20:38:02 +02:00
jmir1
525c4715e9
Merge branch 'master' into mihonmerge 2024-07-11 14:55:23 +02:00
Secozzi
c51100d0b5
feat(player): Set mpv's media-title property (#1672) 2024-07-11 14:54:55 +02:00
Secozzi
5c0d507f85
feat(external players): Add mpvKt (#1674)
Co-authored-by: jmir1 <jhmiramon@gmail.com>
2024-07-11 14:53:13 +02:00
Secozzi
fb5275535a
Merge branch 'master' into mihonmerge 2024-07-04 14:43:36 +00:00
Secozzi
f258614e9b
MangaCoverFetcher: Small cleanups
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-04 13:56:23 +02:00
Secozzi
3eb3f01646
Rework buildSrc and remove usage of subprojects
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-04 13:43:31 +02:00
Secozzi
c593c83745
Fix build time zone in about screen
And slight cleanup

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-04 13:00:16 +02:00
Secozzi
67875b7e10
Add ProGuard rule to keep mihon namespace classes
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-07-04 12:50:40 +02:00
Secozzi
26486df267
Fix Migrator not doing work
Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
2024-07-04 12:49:44 +02:00
Secozzi
e67a6a2c79
New Feature: Introduce Upcoming page to Mihon
* Work in progress upcoming feature

* Checkpointing WIP upcoming feature

* Functional Upcoming Screen

* Rename UpdateCalendar to UpdateUpcoming

* Converted Strings to resources

* Cleanup

* Fixed detekt issues

* Removed Link icon per @AntsyLich's suggestion.

* Detekt

* Fixed Calendar display on wide form factor devices

* Added Key to upcoming lazycolumn

* Updated tablet mode UI to support two column view

* Updated header creation logic

* Updated header creation logic... again

* Moved stray string to resources

* Fixed PR Comments and query refactor

* Tweaks to query, refactored to flow, comments on calendar

* Switched to Date Formatter

* Cleaned up date formatter

* More Refactor work

* Updated Calendar to support localized week formats

* Fixed year format

* Refactored Header animation

* Moved upcoming FAQ

* Completed YearMonth Migration

* Replaced currentYearMonth with delegate

* Even more cleanup

* cleaned up alignment modifiers

* Click Handler and other refactors

* Removed Wrapped Content Height/Size/extra clips

* Huge Refactor for CalendarDay

* Another cleanup attempt

* Migrated to new mihon.feature.* module pattern

* changed access modifier

* A Bunch of changes from the next round of reviews

* Cleanups

* Cleanup 2

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-07-04 12:46:05 +02:00
Secozzi
664fb1d6fd
Migrator improvements
Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
2024-07-03 22:55:33 +02:00
Secozzi
428c6e1e08
detekt(detekt): detekt 2024-07-03 22:30:19 +02:00
Secozzi
486db1fd53
Rewrite Migrations (#577)
* Rewrite Migrations

* Fix Detekt errors

* Do migrations synchronous

* Filter and sort migrations

* Review changes

* Review changes 2

* Fix Detekt errors

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
2024-07-03 22:23:57 +02:00
Secozzi
1ea107226c
Fix more TypeReference issues and cleanup
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-03 19:30:02 +02:00
Secozzi
233af962cd
Fix extension repo crash with TypeReference issue
Fix by @AntsyLich.

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-07-03 19:13:15 +02:00
Secozzi
5111522769
Fix repo name used for URL instead of baseUrl
* Fix repo name used for URL instead of baseUrl

This applies to both the item being shown in the screen as well as the
"copy to clipboard" button. Before, copying a repo url would return
"The Repo Name/index.json.min". This PR fixes that.

* Correct Misunderstanding

Passing the whole ExtensionRepo data class through now, using the name
for display purposes and the baseUrl for copying the URL.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-07-03 19:11:28 +02:00
Secozzi
f4f6986cac
Migrated from Accompanist Webview to KevinZou WebView
* Migrated from Accompanist Webview to KevinZou WebView to preempt deprecation

* Removed old webview from version library

Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-07-03 19:01:00 +02:00
Secozzi
cdb0621434
detekt(detekt): detekt 2024-07-03 18:55:00 +02:00
Secozzi
6c42541dc7
Grab extension repo detail from repo.json and include in DB
* WIP Extension Repo DB Support

* Wired in to extension screen, browse settings screen

* Detekt changes

* Ui tweaks and open in browser

* Migrate ExtensionRepos on Update

* Migration Cleanup

* Slight cleanup / error handling

* Update ExtensionRepo from Repo.json during extension search.
Added Manual refresh in extension repos page.

* Split repo fetching into separate API module, major refactor work

* Removed development strings

* Moved migration to #3

* Fixed rebase

* Detekt changes

* Added Replace Repository Dialog

* Cleanup, removed platform specific code, PR comments

* Removed extra function, reverted small change

* Detekt cleanup

* Apply suggestions from code review

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

* Fixed error introduced in cleanup

* Tweak for multiline when

* Moved getCount() to flow

* changed getCount to non-suspend, used property delegation

* Apply suggestions from code review

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

* Fixed formatting with updated comment string

* Big wave of PR comments, renaming/other tweaks

* onOpenWebsite changes

* onOpenWebsite changes

* trying to make single line

* Renamed ExtensionRepoApi.kt to ExtensionRepoService.kt

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-07-03 18:35:12 +02:00
Secozzi
69b9db4e8e
fix(tracking): Fix crashing for Jellyfin enhanced tracking (#1658) 2024-07-02 21:37:02 +02:00
Secozzi
7040eb4d83
fix(tracking): Fix enhanced tracking for jellyfin (#1656) 2024-07-02 20:00:08 +02:00
Secozzi
ccc66a8a8c
fix(deps): update aboutlib.version to v11 (major)
* fix(deps): update aboutlib.version to v11

* 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-02 14:50:50 +02:00
Secozzi
caf269a787
Rework Duplicate Dialog and Allow Migration
* (Mostly) Working Manga screen migration via duplicate dialog

* Fully working migrate from Browse Search

* Small tweaks for Antsy

* Update app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt

* Update app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreen.kt

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-07-02 14:39:20 +02:00
Secozzi
1e75c9ca8c
Fix webtoon last visible item position calculation
Covers the case when image height > screen height.

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-02 14:08:03 +02:00
Secozzi
6b49a5d41a
Fix recycled item's height being 0 in webtoon mode (#563)
Which will prevent the new image from being decoded until it's visible.

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-02 14:05:04 +02:00
Secozzi
8378c5a400
Address detekt issues
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-02 14:03:25 +02:00
Secozzi
6d1717788b
Update image-decoder, color management
* Update image-decoder, color management

* move display profile pref

* remove true color pref

* Move Display Profile settings to a new section

* Partially revert "remove true color pref"

This partially reverts commit e1a7581.

* Tweak label

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: w <19401176+wwww-wwww@users.noreply.github.com>
2024-07-02 14:01:47 +02:00
Secozzi
e016c0e393
Switch to seconds for DATE_MODIFIED of saved pages
While most Android skins are seemingly able to handle the millisecond
format, the documentation technically specifies seconds. This seems to
be causing issues on Samsung devices using the Samsung Gallery app,
which renders the millisecond timestamps as if they were second ones,
causing the dates to be set at some point in the year 56189.

This change should fix that issue on Samsung devices and have no real
impact on the rest.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-07-02 13:46:50 +02:00
Secozzi
3c9cfda1ed
Fix regression from coil3 migration
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com>
2024-07-02 13:45:22 +02:00
Secozzi
e9f91522a8
Disable SerialVersionUIDInSerializableClass detekt rule
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-02 13:29:28 +02:00
Secozzi
fd5d568a10
Fix multiple issues regarding sources loading too late
Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-02 13:19:38 +02:00
Secozzi
94730b153e
Fix crash in track date selection dialog
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-02 12:44:54 +02:00
jmir1
959f84ab41
fix: Extensions disappearing due to errors with the ClassLoader 2024-07-02 00:23:14 +02:00
Secozzi
c9161b32c7
feat: db changes to accommodate new cross device syncing logic.
* feat: db changes to accommodate new syncing logic.

Using timestamp to sync is a bit skewed due to system clock etc and therefore there was a lot of issues with it such as removing a manga that shouldn't have been removed. Marking chapters as unread even though it was marked as a read. Hopefully by using versioning system it should eliminate those issues.

* chore: add new line.

* chore: remove isSyncing from Chapter/Manga model.

* chore: remove isSyncing leftover.

* chore: remove isSyncing.

* refactor: remove isSync guard.

Just use it directly to 1 now since we don't have the isSyncing field in Manga or Chapter.

* Lint and stuff

* Add missing ,

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: KaiserBh <41852205+kaiserbh@users.noreply.github.com>
2024-07-02 00:10:22 +02:00