Commit graph

172 commits

Author SHA1 Message Date
Secozzi
85e732a459
Add composables from mpvkt 2024-11-14 08:43:37 +01:00
Secozzi
5cdaf753cd
Update dependency com.pinterest.ktlint:ktlint-cli to v1.4.0
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Mend Renovate <bot@renovateapp.com>
2024-10-31 11:56:54 +01:00
AntsyLich
cda43b7645
Cleanup .gitignore files
(cherry picked from commit afa50029882655af8d5eea40aed7644fce4564d8)
2024-10-31 11:03:02 +01:00
Secozzi
ba61019280
Bump compile sdk to 35
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-30 20:36:34 +01:00
Secozzi
8ce93b5402
spotlessApply my beloved 2024-10-30 12:01:58 +01:00
Secozzi
202eaf4f49
Fix moving of openFileDescriptor 2024-10-30 11:56:32 +01:00
AntsyLich
3599a38ad6
Move archive related code to :core:archive
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-30 11:42:29 +01:00
Secozzi
1cae533d65
Address spotless lint errors 2024-10-27 21:36:32 +01:00
AntsyLich
748ac38599
Remove WebViewClientCompat
(cherry picked from commit f4348df8709529b7b2319485fc8eb54c6e8173c7)
2024-10-27 10:29:19 +01:00
AntsyLich
ab3d974089
Bump default user agent string
(cherry picked from commit 8160b47ff5fbbd9b32caeb462b5be881fabd3449)
2024-09-19 11:11:34 +02:00
Secozzi
20d8b06104
Fix some issues when reading/saving images
* Fix unsupported mime type error when saving images

Avoid using platform mime type map to get extensions as it may not have
all mime types we support.

* Fix jxl images downloading/reading

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-13 09:31:27 +02:00
Secozzi
22c46273f9
Add safeguard to prevent ArchiveInputStream from being closed twice
* fix: Add safeguard to prevent ArchiveInputStream from being closed twice

* detekt

* lint: Make detekt happy

---------

Co-authored-by: Ahmad Ansori Palembani <46041660+null2264@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-12 22:29:41 +02:00
Secozzi
8f45a8e122
Refactor archive support with libarchive
* Refactor archive support with libarchive

* Revert string resource changs

* Only mark archive formats as supported

Comic book archives should not be compressed.

* Fixup

* Remove epub from archive format list

* Move to mihon package

* Format

* Cleanup

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-12 22:00:23 +02:00
Secozzi
4f865ff629
Use Okio instead of java.io for image processing
Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-11 21:00:47 +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
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
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
7778a2e3f9
Fix dual page split for local source
`InputStream.available()` is implementation-dependent, should never assume it will return the total number of bytes in the stream.

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-01 22:38:36 +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
e3200933e0
lint(lint): lint 2024-06-12 11:31:45 +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
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
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
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
8fdcfadcc6
remove unused import 2024-05-10 17:31:51 +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
Secozzi
ee2a62a19b
Fix extension interceptors receiving compressed responses (#10388)
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
2024-05-08 16:07:59 +02:00
Dark25
22ffb7eb50
fix: Update default user agent (#1561) 2024-05-05 19:21:19 +02:00
Quickdesh
cbb690688b fix(toasts): bring back missing toasts 2024-02-10 23:41:09 -05:00
jmir1
596f501ba1
feat(doh): Add LibreDNS (#1287) 2024-01-14 23:31:59 +01:00
giorgionegro
43bcdc9bd0
fix: Fix downloading large files (#1282) 2024-01-14 21:18:46 +01:00
jmir1
acaf5bd43e
Merge branch 'upstream/master' 2024-01-10 04:10:35 +01:00
arkon
7e053b5862 Bump minimum WebView version and default user agent string 2024-01-06 09:45:41 -05:00
arkon
8409ebe4eb Fix temp chapter files not being able to be created when reading 2024-01-05 15:48:56 -05:00
arkon
4e221397ce Remove tmp chapter files after exiting reader 2024-01-04 18:02:40 -05:00
arkon
8a7d6a328a Update Mullvad DoH configuration
Closes #10282
2024-01-02 18:34:49 -05:00
arkon
83130f9bf9 Try to show actual path in invalid location downloader notification
Instead of the class/hashCode, which doesn't mean much to a user.
2023-12-31 23:33:10 -05:00
arkon
6ab8e1e73d Don't use reflection for handling backup options as boolean array
Wasn't working correctly in release build, _probably_ because of R8 despite kotlin-reflect
shipping with Proguard rules and us already keeping all Tachiyomi classes.
2023-12-30 20:29:12 -05:00
arkon
f0a0ecfd4a Allow creating backups without library entries
- In case you want a backup of just settings?
- Also disable backup options if dependent option is disabled (and fix being able to toggle disabled items)
- Also fix crash in RestoreBackupScreen due to attempt to parcelize Uri
- Make restore validation message a bit nicer
2023-12-30 16:02:36 -05:00
arkon
5bba7af24a Allow partial restores (library/settings)
Closes #3136
2023-12-30 12:09:55 -05:00
arkon
f31bc47757 Clean up storage usage info
- Show bar representation of used/total space
- Handle all mounted storages
- Also included a bunch of unrelated immutables changes, sorry
2023-12-25 18:11:22 -05:00
arkon
2d7650537d Address some build warnings 2023-12-25 16:31:40 -05:00
arkon
446b146f95 Ensure sufficiently long prefix when creating temp file
Fixes #10265
2023-12-24 22:32:23 -05:00
arkon
19f0175a56 Don't use localized numbers for downloaded image filenames
Probably fixes #10258
2023-12-22 19:13:06 -05:00
arkon
dcf0379496 Janky workaround for Moko escaped quotes issue
Related: https://github.com/icerockdev/moko-resources/issues/337
2023-12-22 09:22:30 -05:00
arkon
a3c6da2dac
feat: Add basic onboarding screen (#10199) 2023-12-17 05:13:18 -03:00
arkon
8b57169e92
Add basic onboarding screen (#10199) 2023-12-09 16:50:02 -05:00
jmir1
2912e61b01
Merge branch 'upstream/master' into dev 2023-12-02 17:44:02 +01:00