3 Commits

Author SHA1 Message Date
AwkwardPeak7
060473aedf
use Preferences functions from utils (#7757)
* import all temporarily

* use `getPreferencesLazy()`

regex: lazy\s*\{\s*Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?\s*\}

* use `getPreferences()`

regex: Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?

* `getPreferences` and `getPreferencesLazy` with migration

regex to find: getPreferences\(\)\s*\.

* preferences edge cases

* run lint

* why kotlinter not add newline

* bruh

* bump

* unused import not caught by kotlinter

* review suggestions on all files

* bump after merge main

* review

* reduce usage of
2025-03-27 00:02:28 +00:00
Tim Schneeberger
4ceef9ca9b
NamiComi: lower chapter list page size and fix missing tags (#7145)
* fix(namicomi): request tags in searchMangaRequest

* fix(namicomi): request chapter lists & chapter access maps in chunks of 200 entities

* fix(namicomi): read id directly from URL query parameter instead of using string manipulation

* chore(namicomi): bump version code

* Fix regression caused by simplification of createManga(...)

* Add missing slash

* Use new extension function to add parameters
2025-01-18 20:14:01 +00:00
Tim Schneeberger
d470490087
Add NamiComi (#7057)
* Add Namicomi

* Remove conditional; already handled by the intent-filter

* Simplify error handling

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

* Update old comment

* Remove hardcoded /en/ url path

* Chapters missing from the accessMap should be considered inaccessible

* Remove setOnPreferenceChangeListener

* Remove unused i18n key

* Rename Namicomi to NamiComi

* Revert accidental change to settings.gradle.kts

* Remove remaining setOnPreferenceListener

* Close response on error

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

* Require nonnull chapter access map

* Change abstract to sealed in EntityDto

Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>

* Change abstract to sealed in MangaDto

Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>

* Change SManga.PUBLISHING_FINISHED to SManga.COMPLETED

Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>

* Set initialized = true

Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>

* Remove allowSpecialFloatingPointValues and prettyPrint

* Remove markdown cleanup functions

* Cleanup import

* Remove constructors for new sealed interface

* Fix PaginatedResponseDto structure

* Simplify and remove createBasicManga

* Remove old MangaDex code

* Use 🔒 for locked chapters

* Update NamiComiHelper.kt

Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>

* Remove data modifier from dto classes

* Apply suggestions from code review

Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>

* Update URL/ID handling

* Move companion object to bottom

---------

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
Co-authored-by: FourTOne5 <107297513+FourTOne5@users.noreply.github.com>
2025-01-18 20:13:54 +00:00