Commit graph

6737 commits

Author SHA1 Message Date
Secozzi
7040eb4d83
fix(tracking): Fix enhanced tracking for jellyfin (#1656) 2024-07-02 20:00:08 +02:00
jmir1
959f84ab41
fix: Extensions disappearing due to errors with the ClassLoader 2024-07-02 00:23:14 +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
jmir1
9baf6adce5
chore: Merge branch 'mihonmerge' 2024-06-20 11:41:44 +02:00
Quickdev
495b68bf84
refactor(player): Implement more enums (#1609) 2024-06-20 11:32:18 +02:00
Secozzi
631c206822
lint(lint): lint 2024-06-12 22:08:13 +02:00
Secozzi
69ca0ee524
revert adding detekt 2024-06-12 11:14:04 +02:00
Quickdev
e1087abfb6
fix(pip): PiP not broadcasting intent in A14+ (#1603) 2024-06-09 07:40:38 +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
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
87348bbff6
Cleanup [BaseColorScheme.getColorScheme]
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-06-06 00:46:57 +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
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
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
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
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
Abdallah
a48a9f4162
feat: Hide the skip intro button if the skipped amount == 0 (#1598) 2024-06-04 00:54:44 +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
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
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
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
jmir1
847f877b98
fix: Lint error 2024-05-29 14:43:07 +02:00
jmir1
a23eea9805
Merge pull request #1578 from Secozzi/mihonmerge
Merge from mihon until mihon 0.16.2
2024-05-26 07:56:05 +02:00
Abdallah
69f0787a26
fix: Browse icon not animating after first interaction (#1582) 2024-05-26 07:54:43 +02:00
jmir1
224430ec0d
fix: Fix some issues with mpv config file settings 2024-05-18 01:14:27 +02:00
jmir1
4168579d4b
fix: Copy font for osd 2024-05-18 00:59:10 +02:00
jmir1
9d06277a18
fix: Use MANAGE_EXTERNAL_STORAGE to enable MPV scripts 2024-05-17 23:51:54 +02:00