Commit graph

6772 commits

Author SHA1 Message Date
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
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
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
Secozzi
c42c7ffd28
Fix shizuku being buggy for multi user setups
Fetch the current userid separately because shizuku always runs as the main user and would otherwise install and update for the main user

* Update app/src/main/java/eu/kanade/tachiyomi/extension/installer/ShizukuInstaller.kt

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Redjard <47570415+Redjard@users.noreply.github.com>
2024-07-01 23:19:44 +02:00
Secozzi
2b469339de
Fix ChapterDownloadIndicator
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 22:35:14 +02:00
Secozzi
5e5cb55e17
Small cleanup
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 22:33:40 +02:00
Secozzi
d0a7a0aa9e
detekt my beloved
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 22:27:08 +02:00
Secozzi
58fe2c8d25
Update dependency me.saket.swipe:swipe to v1.3.0
* Update dependency me.saket.swipe:swipe to v1.3.0

* Update MangaChapterListItem.kt

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2024-07-01 21:56:51 +02:00
Secozzi
99cf0cd4d5
Switch to Coil3
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 21:29:11 +02:00
Secozzi
0cf34a4759
Remove custom Pager
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 20:17:49 +02:00
Secozzi
e4a97eeef9
ChapterDownloadIndicator: Remove composed modifier usage
Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 20:01:32 +02:00
Secozzi
bf8b570c7a
Address ZipFile deprecation warning
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-01 19:40:57 +02:00
Secozzi
962b60a1eb
Made some changes to ComicInfo metadata
* Made some changes to ComicInfo metadata

The web field now contains a " " separated list of source and tracker urls.
The translator field will now use the source name if the scanlator field is empty.

* lint

* use already existing source instance

* made translator not nullable

* implemented requested changes

created new Mihon exclusive ComicInfo source field  and populated it with SourceName

reverted previous changes to translator field

* Update core-metadata/src/main/java/tachiyomi/core/metadata/comicinfo/ComicInfo.kt

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

* Update app/src/main/java/eu/kanade/domain/manga/model/Manga.kt

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

* Update app/src/main/java/eu/kanade/domain/manga/model/Manga.kt

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

* Update app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt

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

* Update app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Shamicen <84282253+Shamicen@users.noreply.github.com>
2024-07-01 19:33:43 +02:00
jmir1
5045fa18ce
fix(proguard): Use a newer proguard release 2024-07-01 18:49:22 +02:00
jmir1
a7644c2681
fix(proguard): Don't optimize anything 2024-07-01 18:16:41 +02:00
jmir1
98d252866e
fix(proguard): Don't optimize kotlin classes 2024-07-01 17:22:30 +02:00
Secozzi
affe6512ee
feat: Add detekt in the project (#1651)
Co-authored-by: Theo L.M. <9647399+theolm@users.noreply.github.com>
2024-07-01 13:55:45 +02:00
jmir1
1b80548686
fix(proguard): Don't optimize string calsses 2024-07-01 13:45:15 +02:00
jmir1
53686808b9
chore: Update version name 2024-06-30 23:34:05 +02:00
jmir1
fb9f463316
fix(player): Check for phone's maximum brightness value 2024-06-30 23:32:45 +02:00
jmir1
39ba4324e2
fix(datasaver): Escape image URL in data saver requests 2024-06-30 23:11:28 +02:00
jmir1
02c5672d29
fix(player): Tweak some subtitle options 2024-06-30 23:06:35 +02:00
jmir1
a423b560eb
fix(deps) Update a lot of dependencies 2024-06-30 21:29:59 +02:00
jmir1
72a95081fa
fix(deps): Fix incompatible compose library versions 2024-06-30 19:18:15 +02:00
renovate[bot]
68ce36ca86
fix(deps): Update okhttp monorepo to v5.0.0-alpha.14 (#1635)
Co-authored-by: jmir1 <jhmiramon@gmail.com>
2024-06-30 18:12:52 +02:00
perokhe
2a0f185186
fix: Advanced player settings crash in Android 10 and lower (#1627) 2024-06-30 17:06:55 +02:00