Skip to content

nimmi114514/PicaComic_ohos

 
 

Repository files navigation

Pica Comic (OHOS Fork)

flutter License Download stars

A comic app with multiple sources built with flutter.

About this fork This repository (WJ-T/PicaComic_ohos) is a HarmonyOS / OHOS adaptation of the upstream project Pacalini/PicaComic. The original project retains Android / desktop support; this fork focuses on keeping the OHOS host project and build scripts up to date.

Forked from nyne, provide extended support & fix, no guaranteed roadmap.

Download

Get it on GitHub Get it on Obtainium

🛈 This fork does not publish official OHOS .hap releases yet — please follow the HarmonyOS / OHOS section below to build locally.

An AUR package is packed by Lilinzta:

paru -S pica-comic-bin

Build

  1. Clone the repository
git clone https://github.com/WJ-T/PicaComic_ohos
  1. Install flutter: https://docs.flutter.dev/get-started/install
  2. Build Application: https://docs.flutter.dev/deployment

HarmonyOS / OHOS (experimental)

An OpenHarmony host project now lives under ohos/. To produce a .hap package:

  1. Install the OpenHarmony or HarmonyOS SDK and set OHOS_SDK_HOME (or run flutter config --ohos-sdk <path>).

  2. Enable the Flutter OHOS feature and fetch artifacts:

    flutter config --enable-ohos
    flutter precache --ohos
    ./tool/prepare_ohos_har.sh
  3. Build the QuickJS FFI library for HarmonyOS (needed for the in-app JS engine):

    ./tool/build_quickjs_ohos.sh

    The script compiles libflutter_qjs_plugin.so for arm64-v8a and x86_64 with the DevEco / HarmonyOS toolchain. Re-run it whenever you update flutter_qjs/cxx.

  4. Build the Hap from the repo root (arm64 by default):

    flutter build hap --target-platform=ohos-arm64

    The output appears under build/ohos/outputs/.

  5. Build a release hap (make sure your flutter.har comes from the release engine; debug engines expect JIT artifacts and will crash on AOT packages):

    rm -f ohos/har/flutter.har
    ./tool/prepare_ohos_har.sh ohos-arm64-release
    cd ohos
    ohpm clean && ohpm install --all
    cd ..
    HOS_SDK_HOME=/path/to/HarmonyOS_SDK \
      flutter build hap --release --target-platform=ohos-arm64
    • HOS_SDK_HOME must point to a HarmonyOS SDK that contains both hmscore and openharmony; the OpenHarmony SDK bundled with DevEco Studio alone is not enough.
    • After the build finishes, run unzip -p ohos/entry/build/default/outputs/default/entry-default-signed.hap module.json | grep buildMode to confirm it is release.
  6. If you prefer to keep building/running directly inside DevEco Studio/Hvigor instead of flutter build hap, run before each build:

    ./tool/sync_ohos_flutter_assets.sh [debug|profile|release]
  7. Optionally open the ohos folder in DevEco Studio 5.0+ to fine-tune signing or launch on a device/emulator.

The ohos/har directory is ignored by git—flutter build hap copies the required flutter.har there automatically. Most pure-Dart plugins work out of the box; native functionality still requires individual OHOS implementations.

Introduction

Built-in Comic Source

Currently, Pica Comic has 5 built-in comic sources:

  • picacg
  • e-hentai/exhentai
  • jmcomic
  • hitomi
  • htcomic
  • nhentai

Features

  • Browse manga
  • Online reading
  • Download manga
  • Manage local favorites and network favorites
  • Data sync(using webdav)
  • Reading history

History

This project initially started as an unofficial app for picacg and later evolved into an app that supports multiple comic sources.

Thanks

Projects

Readme Card

The image restructuring algorithm used to display jm images is from this project.

Tags Translation

Readme Card

The Chinese translation of the manga tags is from this project.

About

鸿蒙next版PicaComic,适配HarmonyOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 49.6%
  • C 43.8%
  • Objective-C 1.9%
  • Java 1.7%
  • C++ 1.2%
  • CMake 0.7%
  • Other 1.1%