* chore(library): Optimize library grouping
(cherry picked from commit 2f89d98cf9f0568401b39c09fdffe9fb3ece1fda)
* refactor(library): Avoiding a redundant iteration when grouping by Track Status
* fix(strings): Remove unnecessary period from search/filtering string
* feat(library): Improve category tab selection when searching/filtering library or adding/removing categories
* Improve active category index handling in LibraryScreenModel
* fix(webtoon): improve webtoon scale type handling and listener invocation
* fix(webtoon): streamline webtoon scale type handling and improve listener invocation
* add retry
* qualifier
* remove listener on destroy to avoid memory leaks
* using an object expression for the listener
* ensure listener is removed only if viewTreeObserver is alive
* refactor layout listener to improve retry logic and ensure proper removal
* using doOnLayout
* use doOnLayout for scaling logic to ensure proper execution after view is laid out
* remove filtered_scanlators (old field not used anymore)
* Improve coding
* Revert "remove filtered_scanlators (old field not used anymore)"
This reverts commit 24042c17a432ff4c5012010155476aedbed3825f.
* consistent text style
* add comment
* feat: Add webtoon scale type option
This commit introduces a new setting for webtoon reading mode that allows users to select a scale type for webtoon images.
The available scale types are:
- Fit Screen
- 16:9
- 20:9
- 4:3
- 3:2
This setting can be found in both the reader settings sheet and the global reader settings.
* mutable
* add to Reader's settings page & fix size calculation
* option for long strip gap preference
* fix: ensure recycler scales to default when screen ratio is less than desired
* hide smart scale for long strip gap preference
* Avoid zero division
* using forEach
* improve readability
* better viewer size calculation & optimize list
* feat: Add option to disable pinch to zoom in webtoon viewer
* Change default settings & also include settings for Paged mode
* refactor webtoon
---------
Co-authored-by: Cuong-Tran <cuongtran.tm@gmail.com>
* Add RPC [Barebone, barely works]
Co-Authored-By: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
* refactor connections
* RPC (#223)
* Add error handling and refactor DiscordRPCService methods
* Add Discord RPC customization options and preferences
* Update Discord RPC button labels and clean up comments
* Refactor DiscordRPCService to improve readability by adding braces for null checks
* Refactor ConnectionsPreferences to improve code clarity and organization
* Refactor ConnectionsPreferences to improve code clarity and organization
(cherry picked from commit df42d196368d28c3c9dcee3692f3f9140da7f2a1)
* Feat: implement Discord account management enhancements and RPC restart functionality (#245)
* fix: correct indentation in CastManager for better readability
* feat: implement Discord account management enhancements and RPC restart functionality
(cherry picked from commit b7c50f1f0184dd717c5cc4dee0310053bfb8d613)
* Notification color & icon for DiscordRPC
Co-Authored-By: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
* Change foss variant application id suffix to '.foss' and more (mihonapp/mihon#1831)
- Remove `BuildConfig.PREVIEW`
- Rename `BuildConfig.INCLUDE_ANALYTICS` -> `BuildConfig.ANALYTICS_INCLUDED`
- Rename `BuildConfig.INCLUDE_UPDATER` -> `BuildConfig.UPDATER_ENABLED`
- Rename build property `with-analytics` -> `include-analytics`
- Rename build property `with-updater` -> `enable-updater`
- Add build property to disable code shrink
- Add build property to include dependency info in apk/app bundle
(cherry picked from commit 0893609ad2c4791dc404d72a5e69a2e0373517ae)
* feat(discord): update App/icon & fully works with all screens
* update Discord Rich Presence application ID and icon URLs
* Fix updateDiscordRPC for all screens (also reuse code)
* integrate Discord Rich Presence for WebViewScreen
* feat: ghibli style images for Discord RPC
* optimize code
* further optimize
* supprest useless warning
* refactor: simplify setScreen calls related to lastUsedScreen
* optimize whole file
* a
Co-Authored-By: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
* fix(discord): update download button URL to point to the official website
* feat(discord): allow stop Discord RPC from notification
also improve error handling
* fix(i18n): Torrent server "stop" multi-lang
* Start DiscordRPCService as foreground service on Android O+
This commit modifies the `DiscordRPCService` to start as a foreground service on Android O (API level 26) and above. This change ensures the service continues to run in the background, especially when the app is not in the foreground.
- Added a conditional check using `Build.VERSION.SDK_INT` to detect if the device is running Android O or later.
- If the device is running Android O or later, `startForegroundService` is called instead of `startService` to ensure it runs as foreground service.
- If the device is running a version prior to Android O, `startService` is called.
(cherry picked from commit 869617d8cac3aa8461158f1f9a34b9e29147e8f0)
* fix(discord): episode/chapter formating
* fix(discord): Fix & improve Discord login/accounts
* New webview with DiscordLoginScreen
* Add appbar
* Using Webview directly instead of AndroidView and add clearCookies, browsing navigation
* Using coroutine instead of thread
* Revert service
* use response block
* save preference in coroutine too
* no web navigator
* address comments for DiscordLoginScreen
* Refactor Settings screen & dialog
* Using serialization to parse JSON to avoid blocking API
* Don't clear all cookies and web storage aggressively
* Extract constant
* Fix login
Co-Authored-By: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
* fix(discord): Fix screen crash & token retrievement
* Update images to my liking
* spotless
* small fixes
* Update strings.xml
* Revert "Update images to my liking"
This reverts commit 4ad3b9f84fdada45ee480ae7dc242b6e1b4bc18a.
* small fixes
* hopeful fix + chapter progress
* Update ReaderActivity.kt
* Update ReaderActivity.kt
* remove timestamps
* Remove isNSFW check
because 95% of tachi extensions are rated as +18, even when there is sfw content
* Clean up
* Fix ReaderActivity
* Cleanup Settings
* Fix login
* Fix lag when getting categories
* Fix jump to pages
* Remove old SDK check
* Fix status when back from reading
* Remove pages progress
* Only set necessary action in ReaderActivity
* Using IO coroutine instead
* Add back timestamps
* Fix strings & settings
* Fix crash
* ActivityType
* Adjust description
* refactor Discord settings menu
* Using its own scope
* Optimize the connection waiting
* remove source.isNSFW
* Using screenModelScope
* Fix state access
* add modifier
* sharing OkHttpClient instance for better resource management
* Restart RPC directly via service intent instead of toggling
* remove lint suppression
* add back showProgress
* Fix set Discord status
* Fix Discord login no avatar
* Handle API rate limits and errors in getDiscordUri
* Token-based isLogged checking
* Make Discord token sensitive data and not in backup
* Minor fix
* remove debug message
---------
Co-authored-by: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
Co-authored-by: Cuong-Tran <cuongtran.tm@gmail.com>
Co-authored-by: Dark25 <nadiecaca2000@gmail.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Jery <jery99961@gmail.com>
* remove filtered_scanlators (old field not used anymore)
* Improve coding
* Revert "remove filtered_scanlators (old field not used anymore)"
This reverts commit 24042c17a432ff4c5012010155476aedbed3825f.
Just adds the same word as the install option ("Private" in English)
next to the extension version and 18+ label.
(cherry picked from commit 549d74a2c9aef0eb41ea18378cd29d4ab9eee2b4)
* feat(library): Keep tabs when exclude-only categories filtering
* Fix updating activeFilter status
* Avoid redundant state updates if unchanged sets are emitted
* improve
* feat(history): Add indicator for un-finished reading & has more un-read chapters
* Fix StateProvider
* Show reading progress in History screen
* Don't count bookmark excluded chapters in unread dot for History
* Don't count bookmark excluded chapters in Library unread count
* Exclude bookmark filtered chapters from continue-reading list
* Bundle `applyFilter` for bookmark & scanlator together
* Remove parentheses
* feat(local): Allow delete local files
* Refresh chapters list after deleting
* Allow delete whole entry's downloaded folder & clear episodes/chapters list
Also hide `Open folder` for merged entries
* Don't delete local folder & refresh local's chapters list state after clear
* use forEachIndexed instead of forEach
* adding comment
* add empty line
* feat(manga-tracking): Allow auto open tracking dialog when adding to library
* Prevent tracking dialog shows up overwrite change-category dialog
* Refactoring
(cherry picked from commit e82af25e198931d04fc2f75f663017fabced904c)
* fix(merged-entry): Fix actions like URL copy or sharing for merged entries
* Unify callback parameters
* Add titles for actions in merged manga dialog
* Iterates through the list once
(cherry picked from commit ed7bb96f409701c93bbca056728679af91f3453f)
* Remove the unused mark duplicate as read preference.
* Migrate the old preference to new preference
(cherry picked from commit 71470b9e02bc5e3e7607d7de57f90a882810bb49)
* Update DMCA UUID list using Mangadex Massacre Google Sheet
* Fix: add trailing newline to mangadex_dmca_uuids.txt
* Re-add trailing newline for formatting consistency
* Add dependency com.journeyapps:zxing-android-embedded:4.3.0
* Add widget parameter to EditTextPreferenceWidget
* Add QR code scanner icon button to sync API key preference which launches a ScanContract
* Remove screenOrientation property from CaptureActivity manifest
* Allow scanning both normal and inverted codes
* store values and make code more concise
Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
* Import local context
---------
Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
(cherry picked from commit 84c7da5a7d244ffc0cd7155d15e0a200f548ad35)
* feat(MangaDex): use tracker links to associate mangas automatically with trackers (jobobby04/TachiyomiSY#1387)
* feat: add searchById support to trackers (MAL, AniList, MangaUpdates only)
* feat: add new preference to toggle auto selection of tracker items using source metadata if available
* feat: add new preference to toggle auto selection of tracker items using source metadata if available
* feat: add automatic title selection using source metadata to TrackInfoDialog.kt
* style: apply spotless
* refactor: remove hardcoded MangaDexSearchMetadata cast and introduce common interface
(cherry picked from commit 217503eab0e2fe551943e3b702cc6df4aaae8ebf)
* Handle null when searchId failed
* Wrap the await() call in a use block to ensure the OkHttp Response is properly closed after use
* Simplify Regex
* Injection via construction
* Wrap the blocking HTTP call in an IO dispatcher context
---------
Co-authored-by: Tim Schneeberger <tim.schneeberger@outlook.de>
* feat(ui): Improve migration bottom sheet layout with scrollable content
* Using with(binding) and remove redundant Box
* Simplify checkbox listener setup in MigrationBottomSheetDialog
* Fix reference ID should not create new ID
* feat(updates-screen): Swipe actions for chapter updates
* Smaller cover size & add option to hide cover images (debug menu)
* Correctly apply passed-in modifier
* Memoize `getSwipeAction(...)`` invocations with Compose’s `remember` (keyed on the action and state) to avoid recreating those objects on every recomposition
* fix(storage): setting app's data folder on Android TV
Also check if set location is actually accessible then update UI compose accordingly (for all devices) in some cases (e.g. location set but actual folder was deleted or permission revoked)
(cherry picked from commit ef56b7f11ef0d243ef14816e85afa360f1137fe8)
* chore(storage): improve permission handling for older Android version & Fire TV
(cherry picked from commit 5ee009a6db73d33687e55ee8f4ad6412a9e320d4)
* Add indicator for source incognito mode
Adds an indicator to the manga info header to show if a source is running in incognito mode.
Also moves the source incognito check logic to `SourceExtensions`.
(cherry picked from commit 5e547efda51cdeaa7bc71198b932c8ac9aecc312)
* Replaced incognito icon with animated glasses_with_hat icon.
This commit introduces an animated vector drawable for the incognito mode icon and updates the related icons in the app.
- Adds `anim_incognito.xml`, a new animated vector drawable for incognito mode.
- Adds `ic_glasses_with_hat_24dp.xml`, a new icon for incognito mode.
- Updates the incognito mode icon in the following places:
- MoreScreen
- ExtensionDetailsScreen
- App notification
- Manga info header
- Updates `SwitchPreferenceWidget` and `TextPreferenceWidget` to accept any type of icons.
(cherry picked from commit 2a28673e078ff15fe0a7c2a030ffc6ce6cbe6b31)
* move incognito icon
* issue: Use stringResource for contentDescription to support localization
* Wrap the ImageVector.vectorResource call in remember to avoid inflating the drawable on every recomposition.
---------
Co-authored-by: Cuong-Tran <cuongtran.tm@gmail.com>
* fix(tracker-login): allow autofill on tracker's login dialog
* add loading state to tracking login dialog
* improve error color handling and dynamic height measurement in login dialog
* enable autofill for email and password fields in login dialog
* improve code
* refactor: optimize state management and improve dialog width measurement
* refactor: optimize dialog height measurement and error state handling
- Update markdown to 0.33.0
- Use github flavour for github changelog
- Fix bullet list alignment
(cherry picked from commit e2915a1f69340cad515962de8a0b9d11ecff8d42)