Commit graph

8742 commits

Author SHA1 Message Date
Maddie Witman
a3fa240253
Rework Duplicate Dialog and Allow Migration (#492)
* (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>
(cherry picked from commit c0a888807b78891b28c6f6b9f16b719e24b03de1)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SourceSearchScreen.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreen.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreen.kt

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/manga/DuplicateMangaDialog.kt
#	app/src/main/java/exh/md/follows/MangaDexFollowsScreen.kt
2024-04-26 11:35:14 +07:00
FooIbar
085af9793f
Fix webtoon last visible item position calculation (#562)
Covers the case when image height > screen height.

(cherry picked from commit 34930920a50be25ca05024200bf871512962e3d0)
2024-04-26 11:35:14 +07:00
renovate[bot]
06d841a707
fix(deps): update dependency com.google.firebase:firebase-analytics-ktx to v21.6.1 (#561)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 6682b5dd39ea46ecc57e040a558420d512893ed8)

# Conflicts:
#	gradle/libs.versions.toml
2024-04-26 11:35:14 +07:00
FooIbar
c8217051b9
Fix recycled item's height being 0 in webtoon mode (#563)
Which will prevent the new image from being decoded until it's visible.

(cherry picked from commit ef6cad58fe0eeb7bfec7e8df33ada87946fa85d3)
2024-04-26 11:35:14 +07:00
AntsyLich
af5dcb6eeb
Address detekt issues
(cherry picked from commit 7e9340aa7f1021eabb4ae01eb0f4cbdfb6cc0589)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/coil/TachiyomiImageDecoder.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
2024-04-26 11:35:14 +07:00
w
a43e5355b7
Update image-decoder, color management (#523)
* 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 e1a75816950e100936699279e1618adb2fa341aa.

* Tweak label

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit 3f2c8e9ef6db540c77b818ffdf771674b3e46c8b)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt
#	app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsReaderScreen.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
#	gradle/libs.versions.toml
2024-04-26 11:35:14 +07:00
renovate[bot]
644d72d909
fix(deps): update dependency org.apache.commons:commons-compress to v1.26.1 (#502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit a29870c01e3b79952b0882441e266009bf1119f2)
2024-04-26 11:35:14 +07:00
renovate[bot]
0fe15dad9c
fix(deps): update dependency com.android.tools.build:gradle to v8.3.1 (#543)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 583aa430ba9e8e7454076afc049f812bd3df21df)
2024-04-26 11:35:14 +07:00
MajorTanya
4a715c2ff5
Switch to seconds for DATE_MODIFIED of saved pages (#552)
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.

(cherry picked from commit 0ea0138a73466af3d371a48e344753844e9bc3d8)
2024-04-26 11:35:14 +07:00
AntsyLich
cc5c56c8ed
Fix regression from coil3 migration
Fixes #495

Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com>
(cherry picked from commit 59bedb33ff59ad5db1df2e93567a2266fb63eacc)

# Conflicts:
#	core/common/src/main/kotlin/tachiyomi/core/common/util/system/ImageUtil.kt
2024-04-26 11:35:14 +07:00
renovate[bot]
446f315be5
fix(deps): update dependency io.kotest:kotest-assertions-core to v5.8.1 (#528)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit ebee2751109daf7be86d93736806374d6255be7c)
2024-04-26 11:35:14 +07:00
renovate[bot]
e140ef9b63
fix(deps): update dependency com.squareup.okio:okio to v3.9.0 (#529)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 015d9b3bd057fe218d5bab77fa0736be5488eb4d)
2024-04-26 11:35:14 +07:00
AntsyLich
8deab6a054
Disable SerialVersionUIDInSerializableClass detekt rule
(cherry picked from commit bcdf17fe27dfb140e120ef2223aceb79668b8c16)
2024-04-26 11:35:14 +07:00
Jobobby04
ed7792b4ee
Fix sync stalled 2024-04-26 11:35:14 +07:00
Cuong M. Tran
af4e58a789
Merge branch 'feature/related-mangas' 2024-04-26 11:32:31 +07:00
Cuong Tran
6353366e63
Move Regex out of loop 2024-04-26 01:32:45 +07:00
Cuong M. Tran
6a496de181
Update README 2024-04-25 17:31:34 +07:00
Cuong M. Tran
89453116d7
Manga won’t show Refreshing while waiting to show related titles 2024-04-25 17:31:23 +07:00
Cuong M. Tran
05aaacb7d1
Preferences for enable/disable related mangas 2024-04-25 17:23:24 +07:00
Cuong M. Tran
28ebabffbc
allow extensions to disable related mangas & catching exception when using search for related mangas 2024-04-25 16:59:50 +07:00
Cuong M. Tran
0cf256ccce
using search to enable all extensions’ related mangas 2024-04-25 16:43:18 +07:00
Cuong M. Tran
89f8723d7e
Fetching related mangas from Source 2024-04-25 11:40:34 +07:00
Cuong M. Tran
0df6a7fb09
Add relatedMangas to MangaScreenModel 2024-04-25 11:25:02 +07:00
Cuong M. Tran
4d3eeefb2c
LongClick to add/remove related mangas to library
Can support bulkSelection but let’s not complicated the screen
2024-04-23 14:23:44 +07:00
Cuong M. Tran
d764ac3b63
Related titles screen 2024-04-23 13:48:24 +07:00
Cuong M. Tran
cdd3a7f6f8
Update github workflow to include client_secrets.json in Preview build
- name: Write client_secrets.json
        uses: DamianReeves/write-file-action@v1.2
        with:
          path: app/src/main/assets/client_secrets.json
          contents: ${{ secrets.CLIENT_SECRETS_TEXT }}
          write-mode: overwriteclient_secrets.json
2024-03-29 13:50:09 +07:00
Cuong M. Tran
21ce8100ca
Update detekt's baseline & run detekt for future build (#1106)
* Update detekt baseline from mihon

* Update detekt baseline to current code & enable gradle's detekt task for future build
# Conflicts:
#	.github/workflows/build_push.yml
#	config/detekt/baseline.xml
2024-03-29 12:10:09 +07:00
Jobobby04
2f7617db9e
Actually fix animated images 2024-03-29 12:04:31 +07:00
Jobobby04
2708ddef70
Revert "Re-Add Animated Image Decoders to Coil"
This reverts commit 5d1b1408eb78d94912c36cfbe63ee7663f3c1bb4.
2024-03-29 12:04:31 +07:00
Jobobby04
6799f9b6f7
Re-Add Animated Image Decoders to Coil 2024-03-29 12:00:26 +07:00
Jobobby04
6a51a303ea
Revert "Minor fix for history url"
This reverts commit 28edaca869aed7eae231d04abc97f433b6465be3.
2024-03-29 12:00:26 +07:00
ɴᴇᴋᴏ
d6fe21f9c3
Add files via upload (#1120) 2024-03-29 12:00:26 +07:00
Jobobby04
57fa7c2421
Minor fix for history url 2024-03-29 12:00:26 +07:00
Jobobby04
ca645424ea
Update firebase 2024-03-29 12:00:26 +07:00
Jobobby04
2166c58e7c
Minor doc fix 2024-03-29 12:00:26 +07:00
Jobobby04
3a1ff5e4fc
Update baseline 2024-03-29 12:00:26 +07:00
Jobobby04
30a27cf6a2
History url is not globally unique 2024-03-29 12:00:26 +07:00
Fermín Cirella
aba59b5522
Add option to reset custom manga info (#1118)
* Add option to reset custom manga info

* Remove extra line

* Update app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt

---------

Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
2024-03-29 12:00:26 +07:00
KaiserBh
aec3f24831
fix: The trigger for library update wasn't working properly. (#1119)
Missed them, so it was always updating library without actually syncing even when the trigger was on.

Signed-off-by: KaiserBh <kaiserbh@proton.me>
2024-03-29 12:00:26 +07:00
Jobobby04
d8fe39b455
[skip ci] Add instructions for supporting Cloud Sync Google Drive Impl 2024-03-29 12:00:26 +07:00
Jobobby04
ab4703530c
Oops 2024-03-29 12:00:26 +07:00
ɴᴇᴋᴏ
2da0505c41
Update zh-rTW (#1117)
* Update plurals.xml

* Update strings.xml

* Update plurals.xml

* Update strings.xml

* Update plurals.xml

* Update plurals.xml

* Update strings.xml

* Update plurals.xml

* plurals.xml

* plurals.xml

* Delete i18n/src/commonMain/resources/MR/zh-rTW/strings.xml

* Add files via upload
2024-03-29 12:00:26 +07:00
Jobobby04
f6c6881a15
Add preview prefix 2024-03-29 12:00:26 +07:00
Jobobby04
53a8beaa1c
Write client_secrets.json on build 2024-03-29 12:00:26 +07:00
Jobobby04
a6a712901c
Remove Client Secrets 2024-03-29 12:00:26 +07:00
Jobobby04
5bcaf4ea4b
Cleanup sync code 2024-03-29 12:00:26 +07:00
Jobobby04
bd9f1c23e5
Update Detekt baseline 2024-03-29 12:00:26 +07:00
Jobobby04
d5ba5a14b4
Move strings to SY strings 2024-03-29 12:00:26 +07:00
Shamicen
02775c7c99
implement mihonapp/mihon#326 (#1104)
* implement mihonapp/mihon#326

Archives are now being read from channels

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

* disable parallelisms for loading into memory

* switched to mutex

* detekt changes

* more detekt baseline changes

---------

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-03-29 12:00:26 +07:00
KaiserBh
d7ed145c82
feat: add cross device sync (#1005)
* feat: add cross device sync.

* chore: add google api.

* chore: add SY specifics.

* feat: add backupSource, backupPref, and "SY" backupSavedSearches.

I forgot to add the data into the merging logic, So remote always have empty value :(. Better late than never.

* feat(sync): Allow to choose what to sync.

Various improvement and added the option to choose what they want to sync. Added sync library button to LibraryTab as well.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* oops.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* refactor: fix up the sync triggers, and update imports.

* refactor

* chore: review pointers.

* refactor: update imports

* refactor: add more error guard for gdrive.

Also changed it to be app specific, we don't want them to use sync data from SY or other forks as some of the model and backup is different. So if people using other forks they should use the same data and not mismatch.

* fix: conflict and refactor.

* refactor: update imports.

* chore: fix some of detekt error.

* refactor: add breaks and max retries.

I think we were reaching deadlock or infinite loop causing the sync to go forever.

* 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 migrations

* chore: version and is_syncing fields.

* chore: add SY only stuff.

* fix: oops wrong index.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* chore: review pointers.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* chore: remove the option to reset timestamp

We don't need this anymore since we are utilizing versioning system.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* refactor: Forgot to use the new versioning system.

I forgot to cherry pick this from mihon branch.

* chore: remove isSyncing from Chapter/Manga model.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* chore: remove unused import.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* chore: remove isSyncing leftover.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* chore: remove isSyncing.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

* refactor: make sure the manga version is bumped.

When there is changes in the chapters table such as reading or updating last read page we should bump the manga version. This way the manga is synced properly as in the History and last_read history is synced properly. This should fix the sorting issue.

Signed-off-by: KaiserBh <kaiserbh@proton.me>

---------

Signed-off-by: KaiserBh <kaiserbh@proton.me>
2024-03-29 12:00:26 +07:00