Commit Graph

5 Commits

Author SHA1 Message Date
Draff 5c8cb75e9a come up to date with keiyoushi builds
CI / Prepare job (push) Successful in 3s Details
CI / Build multisrc modules (push) Successful in 8m10s Details
CI / Build individual modules (push) Successful in 38s Details
CI / Publish repo (push) Successful in 1m39s Details
2024-01-22 21:19:41 +00:00
AwkwardPeak7 c5f82e6aeb Move plugin section to common.gradle (#281)
* move apply plugins to common.gradle

* update CONTRIBUTING.md

* remove whitespace

* move common.gradle apply above in multisrc

* move kotlinter

* newlines
2024-01-16 02:49:40 +00:00
Federico d'Alonzo 40c354f4d0
Project Suki: refactors and fixes (#19513)
* refactor(reportErrorToUser): enhance reportErrorToUser

* refactor(DataExtractor): add unexpectedErrorCatchingLazy

Makes it easier to quickly find and fix unexpected errors

* refactor(BookDetail): attempt at making BookDetail more extensible

Also fixes a rare bug that would throw a NoSuchElementException when the status or origin fields weren't found in the details table.

* refactor(mangaDetailsParse): refactor mangaDetailsParse to follow BookDetail's refactor

* chore(reportErrorToUser): Review reportErrorToUser messages

* refactor(Search): completely separate simple and smart search

create SmartBookSearchHandler as an attempt to speed up search by wasting less resources on unnecessary multiple normalization and reinitialization of resources via ThreadLocal

* chore(build): bumped extVersionCode to 3

* refactor(activities): Add activities to handle /book and /read URLs

Create a MangasPage with only a single Manga present (unfortunately needs to fetch manga details as title can't be inferred just by bookid)
Group activities in "activities" package for clarity

* fix(KDoc): fix Cannot resolve symbol

* chore: Update README and CHANGELOG

* chore: Add a bit of documentation to SmartBookSearchHandler

* feat: Handle /book and /read urls as search query

* chore(CHANGELOG): entries incorrectly listed as PUBLISHING_FINISHED now are correctly listed as COMPLETED

* chore(README): expanded README
2023-12-31 18:57:50 -03:00
Federico d'Alonzo d161dafd17
Project Suki: Enhancements and fixes (#19323)
* build(gradle)!: Migrate ProjectSuki build.gradle to kotlin dsl

* feat: Add PathPattern

* feat: Add DataExtractor

* feat: Add ProjectSukiAPI

* feat: Add ProjectSukiFilters

* refactor!: migrate to new API and cleanup extension

Completely replace NormalizedURL with HttpUrl, remove PS.kt, PSBook.kt and PSFilters.kt

* chore(naming): rename pattern properties to be consistent

* refactor(preferences): Centralize and cleanup preferences

* chore(preferences): remove Android Preference import

* refactor(everything): Fix most of everything

Now apk builds, and correctly fetches books, chapters and images, including thumbnails.

* revert(gradle): revert to build.gradle.kts to be consistent with other extensions as context receivers are still unusable

* feat(url-activity): enhance

Needs to be tested, got distracted

* feat(preferences): Enhance preferences by providing more robust constructs

* feat(filters): Update and enhance filters

* feat(site-api): add search request data request and response parse

* refactor: replace require and error with reportErrorToUser in PathPattern

* refactor(core): Enhance everything

Now extension will show browse results on popular, main page on latest, will default to actually-useful search (with naive option on older devices) while still allowing old search.
Enhance user interaction by capturing or preventing almost all errors and alerting the user on what went wrong and what to do.

* chore: Suppress warnings

* docs: Document everything

Add documentation and revise pretty much everything.

* docs: Add CHANGELOG.md

* docs: Add README.md

* refactor(search-mode): Combine Naive/Full Site/Strict search options into single filter

* revert(manifest): Remove android:icon

it's set in the core AndroidManifest.xml

* chore(lang): switch extension language to "all"

explicitly set id: 8965918600406781666

* fix(preferences): fix blacklisted languages id

was the same as whitelisted

* fix: Fix bugs and more

Change Naive to Simple, provide more understandable description, make it possible to use Simple mode on any Android version if one wishes to do so.
Provide better regex for Simple search.
Test chapter filtering, download (single chapters and multiple), all searches, chapter view.

* docs: Update README and CHANGELOG

* refactor(url-activity): Refactor Url Activity from kotlin to java

Process kept complaining about java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics

* revert(url-activity): Avoid kotlin Intrinsics
2023-12-22 14:30:58 -03:00
Federico d'Alonzo 4d1d90a07b
New Source: Project Suki (#18774)
* projectsuki initial commit

* update preferences

* non-lazy client

* buildMap -> mapOf

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>

* inline constants

* switched from custom NormalizedURL to HttpUrl

* band-aid fix for "No results found"
Has edge case where current page has 30 results and next page has 0 results.

* update remote & strip debug Log statements

---------

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
2023-11-01 22:10:14 -03:00