Commit graph

7620 commits

Author SHA1 Message Date
Secozzi
e3200933e0
lint(lint): lint 2024-06-12 11:31:45 +02:00
Secozzi
960538f870
lint(lint): lint 2024-06-12 11:25:56 +02:00
Secozzi
69ca0ee524
revert adding detekt 2024-06-12 11:14:04 +02:00
Secozzi
c5cd9947fd
Revert "Tweak detekt config"
This reverts commit d481da4668.
2024-06-12 11:12:16 +02:00
Secozzi
a23581d227
Update dependency com.squareup.okio:okio to v3.8.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-06 01:20:02 +02:00
Secozzi
f58624aa79
Update dependency org.apache.commons:commons-compress to v1.26.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-06 01:19:35 +02:00
Secozzi
09966bad71
Allow disabling reader's zoom out
* Allow disabling reader's zoom out (#62)

* Renamed disable zoom out pref and string

* Zoom to default rate if the scale is inferior

* Fixed null value check and formatting

* Fixed detekt

Co-authored-by: Splintor <55398298+Splintorien@users.noreply.github.com>
2024-06-06 01:17:57 +02:00
Weblate (bot)
1b7080f5b4
Translations update from Hosted Weblate (#301)
* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/id/

* Translated using Weblate (Chuvash)

Currently translated at 75.7% (601 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/cv/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (Chuvash)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/cv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/eo/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/tr/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/tr/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/tr/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/tr/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ja/

* Translated using Weblate (Polish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/pl/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/zh_Hant/

* Translated using Weblate (Hungarian)

Currently translated at 97.3% (772 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/hu/

* Translated using Weblate (Hungarian)

Currently translated at 94.1% (16 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/hu/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (Romanian)

Currently translated at 99.3% (788 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ro/

* Translated using Weblate (Romanian)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/ro/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/uk/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (Nepali)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ne/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (793 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/

* Translated using Weblate (French)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/fr/

* Translated using Weblate (Esperanto)

Currently translated at 62.0% (492 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/eo/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (17 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/eo/

* Translated using Weblate (Esperanto)

Currently translated at 63.6% (505 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/eo/

---------

Co-authored-by: bapeey <90949336+bapeey@users.noreply.github.com>
Co-authored-by: Eji-san <ejierubani@gmail.com>
Co-authored-by: C201 <derasetad@gmail.com>
Co-authored-by: Swyter <swyterzone@gmail.com>
Co-authored-by: Radoŝ Porka <animatorzPolski@gmail.com>
Co-authored-by: Deniz <denizgezgin365@gmail.com>
Co-authored-by: Uzuki Shimamura <hzy980512@126.com>
Co-authored-by: sebastians17 <sebastians117.ss@gmail.com>
Co-authored-by: ɴᴇᴋᴏ <s99095lkjjim@gmail.com>
Co-authored-by: B4LiN7 <B4LiN7@users.noreply.hosted.weblate.org>
Co-authored-by: Saft Octavian <saftoctavian@gmail.com>
Co-authored-by: Сергій <sergiy.goncharuk.1@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: FateXBlood <zecrofelix@gmail.com>
Co-authored-by: Naga <yz2000.pro@gmail.com>

(cherry picked from commit 7edecae57f77ece7a5a3b457620c61e225fdc906)
2024-06-06 01:10:52 +02:00
Secozzi
22712d3b83
Fix some issues from 7ff95e2
* Fixed extra header introduced in 7ff95e2

* Removed parentheses to make detekt happy

* Updated relative date display for dates in the future

* Small cleanup for header creation logic

* replaced "and" with "&&" for better formatting

Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-06-06 01:10:02 +02:00
Secozzi
27ff22e297
[ExtensionLoader] Prioritize extension classpath over app classpath
Co-authored-by: beerpsi <92439990+beerpiss@users.noreply.github.com>
2024-06-06 01:00:15 +02:00
Secozzi
af7471e446
Fix DelayedTrackingUpdateJob spam on update errors
* Fix DelayedTrackingUpdateJob spam on update errors

DelayedTrackingUpdateJob would start spamming when it encountered an
error (e.g. a tracker has an issue) and never stop.
This seems to stem from a circular dependency between the Job's
`doWork` and TrackChapter's `await`.

TrackChapter sets up a completely new instance of the
DelayedTrackingUpdateJob if any Exception was thrown during the track
update.

This causes the Job to get replaced (as per the WorkManager's set
ExistingWorkPolicy).

Because of this, the guard clause at the start of doWork would never
trigger, as all instances of the Job would report being the 0th try
(because they were completely new instances).

This simple fix introduces a boolean `isRetry` parameter to
TrackChapter's await method, which is set to `false` by default.
DelayedTrackingUpdateJob however sets this parameter to `true`, which
means TrackChapter won't try to set up the Job again.

* Rename isRetry parameter to setupJobOnFailure

This also inverts the logic, so true & false were swapped.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-06-06 00:56:22 +02:00
Secozzi
dcd34b53bb
Address overridePendingTransition deprecation
This function is deprecated starting with API 34 "UpsideDownCake" and
should be replaced with `overrideActivityTransition`.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-06-06 00:52:54 +02:00
Secozzi
d481da4668
Tweak detekt config
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-06 00:48:45 +02:00
Secozzi
87348bbff6
Cleanup [BaseColorScheme.getColorScheme]
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-06 00:46:57 +02:00
Secozzi
edae0f5222
Update gradle.properties
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-06 00:43:41 +02:00
Secozzi
eabd93c726
Small cleanup in WorkerInfoScreen
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-06 00:41:40 +02:00
Secozzi
7a72c3b565
Ignore detekt [LongParameterList] for composables
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-06 00:39:40 +02:00
Secozzi
2a875f6c86
thank you android studio, very cool 2024-06-06 00:32:44 +02:00
Secozzi
f72df3f620
Refactor use of Java.util.date to Java.time.*, to fix localized date …
…issues. (#402)

* Add support for localdate based relative times

* Update History Screen to use new localdate based relative times

* Update Updates Screen to use new localdate based relative times

* Cleaned up date util classes

* Updated build time display

* Code cleanup

* Fixed crash in settings

* Updated Preferences item

* Worker Info works

* Fixed Tracker date display

* Code changes to pass detekt

Co-authored-by: Maddie Witman <1882979+sirlag@users.noreply.github.com>
2024-06-06 00:17:28 +02:00
Secozzi
a2c293de8c
Minor refactor of theming when expressions
* Minor refactor of theming when expressions

Avoids triggering detekt's CyclomaticComplexMethod warning because of
too many when branches, which would happen with one more theme being
added in these two locations.

In TachiyomiTheme, the Monet theme is separated because it requires
the current Compose context to function. The other themes do not and
are delegated to a Map.

* Implement requested changes

- moved themeResources out of the ThemingDelegate interface
- replaced single condition when with if expression

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-06-05 15:16:07 +02:00
Secozzi
2448072923
Update dependency androidx.test.ext:junit-ktx to v1.2.0-alpha03
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:59:15 +02:00
Secozzi
88a5ff1105
Update dependency androidx.test.espresso:espresso-core to v3.6.0-alph…
…a03

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:58:44 +02:00
Secozzi
1ee407c213
Update lifecycle.version to v2.7.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:58:21 +02:00
Secozzi
8481be6366
Update dependency com.github.requery:sqlite-android to v3.45.0
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:57:52 +02:00
Secozzi
a2742f793f
Update dependency io.github.fornewid:material-motion-compose-core to …
…v1.2.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:57:22 +02:00
Secozzi
49a98cd542
Update dependency androidx.benchmark:benchmark-macro-junit4 to v1.2.3
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:56:44 +02:00
Secozzi
2b99fc9544
[skip ci] Add Dependencies label to Renovate Dependencies
Co-authored-by: Soitora <10836780+Soitora@users.noreply.github.com>
2024-06-05 14:53:12 +02:00
Secozzi
8b3d57e005
Update dependency gradle to v8.6
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:50:08 +02:00
Secozzi
b4f0d91481
Fix extracting ComicInfo.xml files in local source
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-06-05 14:49:26 +02:00
Secozzi
0424b60b3e
Don't copy archives to temp files when opening
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-06-05 14:45:53 +02:00
Secozzi
60c5636da2
move more stuff to core.common 2024-06-05 12:20:53 +02:00
Secozzi
daa8d36e85
Update workflow dependencies
* feat: updated build_pull_request actions version

* feat: updated build_push actions version

* feat: updated issue_moderator action version

* feat: updated deprecated arguments in build_pull_request

* feat: updated deprecated arguments in build_push

* feat: removed explicit declaration of gradle version

Co-authored-by: pabalaba <53042146+pabalaba@users.noreply.github.com>
2024-06-05 12:05:30 +02:00
Secozzi
f678ce3c83
Remove old ISSUE_TEMPLATE.md
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-05 11:57:40 +02:00
Secozzi
5825f6e84c
Don't throw MALTokenExpired whenever we fail to refresh MAL token
Also cleanup

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-05 11:56:39 +02:00
Secozzi
0864981951
[skip ci] Increase size of the message indicating which apk to download
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-05 11:42:33 +02:00
Weblate (bot)
d97827c3e1
Translations update from Hosted Weblate (#269)
* Translated using Weblate (Persian)

Currently translated at 84.8% (673 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/fa/

* Translated using Weblate (Finnish)

Currently translated at 85.3% (677 of 793 strings)

Translation: Mihon/Mihon
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/fi/

* Translated using Weblate (Chuvash)

Currently translated at 88.2% (15 of 17 strings)

Translation: Mihon/Mihon Plurals
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/cv/

---------

Co-authored-by: Arash <ara.khoram95@gmail.com>
Co-authored-by: A <ogloppi@mailbox.org>
Co-authored-by: C201 <derasetad@gmail.com>

(cherry picked from commit 63146e717ba2cf178b79ae3de4b9b15b0ecc788f)
2024-06-05 11:39:56 +02:00
Secozzi
4b7d9583b1
Lint
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-05 11:37:52 +02:00
Secozzi
55e66f9e07
Fix new extension install not registering in app.
* Fix extension install not registering

* fix duplicate key compose error on extension update

* fix doubling of extension after update

* not needed

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
2024-06-05 11:27:13 +02:00
Secozzi
ccc29527dd
Move :core to :core:common
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-05 11:21:41 +02:00
Secozzi
e347424f91
Merge branch 'master' of https://github.com/Secozzi/aniyomi into mihonmerge 2024-06-02 16:11:36 +02:00
Secozzi
96b79299c9
[skip ci] Delete ic_launcher-web.png
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-02 15:50:12 +02:00
Secozzi
4edf559a65
Address build warning in :i18n
And small cleanup

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-02 15:45:15 +02:00
Secozzi
e762aeb987
Add click-to-copy extension debug info
* Add click-to-copy extension debug info

Adds some debug info about an extension to the user's clipboard when
tapping the logo/name/package name area at the top of the details
screen. Modeled after the debug info from the About screen.

Closes #168.

* Fix linting failure

* Slight cleanup

* Address detekt

---------

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-02 15:43:25 +02:00
Secozzi
9340eebc51
Upgrade combose-bom to latest
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-02 15:39:22 +02:00
Secozzi
8d119767e1
Fix #197 - Scroll crashing
Updating compose bom.

Co-authored-by: Theodoro Loureiro mota <9647399+theolm@users.noreply.github.com>
2024-06-02 15:18:01 +02:00
Secozzi
fe26badbbd
Adding Detekt in the project
* Removing ktlint

* Removing compose lint

* Adding initial Detekt config

* Setting up detekt config

* Adding detekt baseline

* Fixing workflows

* Moving to a module based solution

* Adding new line

* Adding new line

* Updating baseline

* Addressing PR suggestions

* Regenerating baseline.xml

* Cleanup

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Theodoro Loureiro mota <9647399+theolm@users.noreply.github.com>
2024-06-02 15:15:05 +02:00
Secozzi
d0255eae10
Update dependency com.android.tools.build:gradle to v8.2.2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-02 14:34:17 +02:00
Secozzi
0d7bc83a46
Change extension update error file name
Co-authored-by: Jishnu M <83004520+mjishnu@users.noreply.github.com>
2024-06-02 14:33:03 +02:00
Secozzi
bef8e4f586
Fixing bottom sheet UI bug in non-tablet devices
* replace the windowInsetsPadding for navigationBarsPadding + statusBarsPadding

* Setting decorFitsSystemWindows = true to fix ui bug on Android 11

Co-authored-by: Theodoro Loureiro mota <9647399+theolm@users.noreply.github.com>
2024-06-02 14:30:02 +02:00
Secozzi
addb8dc402
Hide display cutout setting if fullscreen is off
- make it behave like the one on more -> setting -> reader

Co-authored-by: Riztard <16263232+Riztard@users.noreply.github.com>
Co-authored-by: Soitora <10836780+Soitora@users.noreply.github.com>
2024-06-02 14:11:18 +02:00