Commit graph

6805 commits

Author SHA1 Message Date
Secozzi
1c0e44f7f9
Fix Migrator test and also add the test to build script
* Fix MigratorTest after update to Kotlin 2.0.0

* add main module's test to build script

Co-authored-by: Tran M. Cuong <16017808+cuong-tran@users.noreply.github.com>
2024-07-12 21:21:58 +02:00
Secozzi
406cec32f7
Remove unused file 2024-07-12 20:59:56 +02:00
Secozzi
5c3d5cdc18
Fix issue with creating and restoring backup
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 20:53:33 +02:00
Secozzi
013b1ee762
Check category order before restoring from backup
Closes #632

Co-authored-by: Cologler <10906962+Cologler@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 20:07:29 +02:00
Secozzi
3e2498828d
MangaChapterListItem: Don't use alpha modifier
Possibly fixes #822

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 19:24:54 +02:00
Secozzi
162471c7fb
fix(deps): update okhttp monorepo to v5.0.0-alpha.14
* fix(deps): update okhttp monorepo to v5.0.0-alpha.14

* 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 19:21:03 +02:00
Secozzi
d1cf93bed1
fix(deps): update dependency dev.chrisbanes.compose:compose-bom to v2…
…024.05.00-alpha03

* fix(deps): update dependency dev.chrisbanes.compose:compose-bom to v2024.05.00-alpha03

* 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 19:19:21 +02:00
Secozzi
639d56364f
chore(deps): update kotlin and compose compiler to v2 (major)
* chore(deps): update kotlin and compose compiler to v2

* Update .gitignore

* 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 19:10:02 +02:00
Secozzi
fc5fc7ed65
Fix MigratorTest after update to io.mockk v1.13.11
* Fix MigratorTest after update to io.mockk v1.13.11

Causing error: io.mockk.MockKException: was not can only be called on a mocked object

* remove import

Co-authored-by: Tran M. Cuong <16017808+cuong-tran@users.noreply.github.com>
2024-07-12 18:46:12 +02:00
Secozzi
8b406fd4eb
fix: storage permission request for non-conforming devices
* fix: storage permission request for non-conforming devices

* fix: catch more specific exception

* chore: add toast message to indicate missing persistent permissions

* chore: correct newly introduced translaction string

* Change error toast message

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Sven <5113257+mainrs@users.noreply.github.com>
2024-07-12 18:42:29 +02:00
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