Commit graph

14 commits

Author SHA1 Message Date
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