Skip to content

Add support for mihon extensions#52

Merged
LandWarderer2772 merged 13 commits into
develfrom
feat/add-support-for-mihon-extensions
Apr 27, 2026
Merged

Add support for mihon extensions#52
LandWarderer2772 merged 13 commits into
develfrom
feat/add-support-for-mihon-extensions

Conversation

@onlyashd
Copy link
Copy Markdown
Member

Overview

This change introduces support for downloading, installing, and managing Mihon-compatible extensions within Futon. It adds a dedicated Extension Manager screen under Settings, allowing users to browse, update, and remove external sources.

Key Changes

  • Extensions Manager UI: Created a new activity and adapter to list extensions with real-time state tracking (Installed, Update Available, Not Installed).
  • Download & Install Flow: Implemented ExtensionInstallService to handle the background downloading of APKs and trigger the system installation flow.
  • In-place Actions: Added support for:
    • Installation/Updates: One-tap installation of new or updated extensions.
    • Uninstallation: A dedicated "Uninstall" button and long-press shortcut for quick removal.
    • Download Progress: Integrated a LinearProgressIndicator within list items to show active download status.
  • Permissions: Added REQUEST_INSTALL_PACKAGES and REQUEST_DELETE_PACKAGES to the manifest to support package management on modern Android versions.

Technical Improvements

  • StrictMode Compliance: Fixed a DiskWriteViolation by moving APK file operations to Dispatchers.IO.
  • Architecture: Followed the project's Hilt-based MVVM pattern and used AdapterDelegates for a modular list implementation.
  • Settings Integration: Exposed the feature via the "Extension Manager" preference in the Remote Sources settings.

Known issues

  • The extensions favicon appear blank in Manga sources view.
  • Extension name says "Unknown" in its catalog view
  • Extension name says "Unknown" and its favicon appear blank in manga description.

@github-actions
Copy link
Copy Markdown

Debug APK built successfully!

Download artifact: debug-apk

Artifact will be available for 7 days

base_url was converted to the correct case baseUrl
fixes sources(tachiyomi) returning null.

MangaSource.getSummary(context) returned null for MihonMangaSource types
Replace the previous white placeholder for MihonMangaRepository with a new fetchMihonIcon method that loads the extension's application icon via PackageManager.
@github-actions
Copy link
Copy Markdown

Debug APK built successfully!

Download artifact: debug-apk

Artifact will be available for 7 days

@github-actions
Copy link
Copy Markdown

Debug APK built successfully!

Download artifact: debug-apk

Artifact will be available for 7 days

@LandWarderer2772 LandWarderer2772 merged commit 9ccce0b into devel Apr 27, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Futon project Apr 27, 2026
@LandWarderer2772 LandWarderer2772 deleted the feat/add-support-for-mihon-extensions branch April 30, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants