Commit graph

6710 commits

Author SHA1 Message Date
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
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
Secozzi
bf43455ed6
Lint
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-15 21:55:21 +02:00
Secozzi
6232336376
Update types of legacy tracker model to match to domain one (#245)
* `score` to Double

* `tracker_id` to Long

* `last_chapter_read` to Double

* `total_chapters` to Long

* `status` to Long

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-15 21:50:00 +02:00
Secozzi
b863acabf3
Fix #126: Inconsistent button height with some languages in "Data and…
… storage" (#202)

* replace the windowInsetsPadding for navigationBarsPadding + statusBarsPadding

* Fixing bug in the MultiChoiceSegmentedButtonRow

* Rollback file

Co-authored-by: Theodoro Loureiro mota <9647399+theolm@users.noreply.github.com>
2024-05-14 10:22:47 +02:00
Secozzi
1a55853b2e
Adding Type-safe project accessors (#194)
* replace the windowInsetsPadding for navigationBarsPadding + statusBarsPadding

* Enabling TYPESAFE_PROJECT_ACCESSORS

* Adding typesafe project accessors in the app module

* Adding typesafe project accessors in the core module

* Adding typesafe project accessors in the core-metadata module

* Adding typesafe project accessors in the data module

* Adding typesafe project accessors in the domain module

* Adding typesafe project accessors in the presentation-core module

* Adding typesafe project accessors in the presentation-widget module

* Adding typesafe project accessors in the source-local module

* Adding typesafe project accessors in the source-api module

* Rolling back

* Changing TYPESAFE_PROJECT_ACCESSORS line

* Removing extra spaces

Co-authored-by: Theodoro Loureiro mota <9647399+theolm@users.noreply.github.com>
2024-05-14 10:17:59 +02:00
Secozzi
3deb7f55d8
Lint
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-14 09:56:22 +02:00
Secozzi
ad687d78e0
Use custom user agents
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Med <45147847+kitsumed@users.noreply.github.com>
2024-05-14 09:52:58 +02:00
Secozzi
389ff605d9
Revert 4fe7681 2024-05-14 08:24:12 +02:00
Secozzi
0ec1583e2d
Fix issues when updating extensions
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-14 08:22:37 +02:00
Secozzi
98633df396
Remove usage of .not() where possible
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-14 08:08:37 +02:00
Secozzi
d1645e0290
Backup and Restore Excluded scanlators (#166)
* Backup and Restore Excluded scanlators

* Improve performance

* This looks better

Co-authored-by: jobobby04 <17078382+jobobby04@users.noreply.github.com>
2024-05-14 07:55:42 +02:00
Secozzi
36ea0acf3c
Fix "Flash on page change" gives black screen on page change
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-14 07:04:29 +02:00
Secozzi
fa8b7160bd
remove useless line 2024-05-14 06:59:56 +02:00
Secozzi
e5ef80b8d4
Lint
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-10 17:37:30 +02:00
Secozzi
5f630407e9
Remove aniyomi-specific android 6/7 support 2024-05-10 17:29:42 +02:00
Secozzi
b85fc16ecd
Make the app Android 8+
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-05-10 17:17:53 +02:00
jmir1
c91fb86e4b
chore: Release v0.15.3.0 2024-05-10 10:44:59 +02:00
Secozzi
e0eacb22a2
lint(lint): lint 2024-05-08 18:32:30 +02:00
Secozzi
36113c7f6c
Install build-tools 29.0.3
Co-authored-by: arkon <4098258+arkon@users.noreply.github.com>
2024-05-08 17:19:20 +02:00
Secozzi
b214ec16ae
Use newer build tools
Co-authored-by: arkon <4098258+arkon@users.noreply.github.com>
2024-05-08 17:14:30 +02:00
Secozzi
6f5172f904
Better message for empty extensions list
Co-authored-by: arkon <4098258+arkon@users.noreply.github.com>
2024-05-08 16:53:41 +02:00
Secozzi
5f5915b25c
Fixed tap controls not working when zoomed in (#10378)
Co-authored-by: Paloys <40764414+Paloys@users.noreply.github.com>
Co-authored-by: arkon <4098258+arkon@users.noreply.github.com>
2024-05-08 16:38:52 +02:00
Secozzi
104291a83c
Minor extension repo enhancements
- Shortcut to settings from extensions tab
- Don't show error toast anymore if nothing's loaded
- Ability to copy extension repo URL to clipboard

Co-authored-by: arkon <4098258+arkon@users.noreply.github.com>
2024-05-08 16:36:05 +02:00
Secozzi
6ea76e0dbc
[download-cache] Fixed init logic to skip when cache file is missing (#10362)
There are several possible causes of the cache file to not exist, including user
 action. By skipping these couple steps during initialization when the file is
 missing, a renew action is allowed to start and the cache will rebuild and
 hopefully work as expected.

Co-authored-by: Caleb Morris <347395+CalebMorris@users.noreply.github.com>
2024-05-08 16:18:39 +02:00
Secozzi
28e70ffd5d
Use transaction on restore to go brr. (#10375)
refactor: use transaction to go brr.

This improve the restore speed on fresh db and non fresh db.

Co-authored-by: KaiserBh <41852205+kaiserbh@users.noreply.github.com>
2024-05-08 16:14:23 +02:00
Secozzi
dd5e9b17f1
Fixed dev UI preview (#10385)
The TachiyomiTheme introduced a dependency-injection construct that didn't
 exist at the time of rendering previews, so I've changed the preview function
 to use a preview version of the theme that uses declarative configuration
 over dependency injection

Co-authored-by: Caleb Morris <347395+CalebMorris@users.noreply.github.com>
2024-05-08 15:57:54 +02:00
Secozzi
39832daa75
feat(repo): Remove default manga repo (#1571) 2024-05-07 15:45:20 +02:00
Secozzi
b6aa5e34db
feat: Add auto-safe as (default) audio channel (#1552) 2024-04-26 12:35:27 +02:00