Skip to content
Projects

About

A Flutter-based novel-reading app built on the Biquge source code.

Other Projects

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+3
in 15 days
+4
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

AiKanShu (爱看书)

中文 · English

An open-source Flutter novel reader. Local book sources, bookshelf management, multiple page-turn modes, and WeChat Reading–style paper themes.

Package Application ID License
book com.opensource.ikanshu Apache-2.0

Features

  • Bookshelf / Discover / Me main tabs
  • Local book-source engine (Legado-style rule subset: HTTP + CSS/JSON/JS)
  • Reader
    • Simulation / cover / none / vertical scroll
    • Solid paper themes (white / cream / green / night)
    • Custom font import
    • Chapter body + page-layout cache (reader.db)
    • Auto reading-progress save
    • Source switch & TOC sync
  • Firebase Analytics + Crashlytics (optional; needs google-services.json)
  • Android-first; no maintained iOS tree

Tech stack

Area Choice
Language / SDK Dart 3.12+ / Flutter 3.44+
State Riverpod (ChangeNotifierProvider)
HTTP Dio 5
Routing Fluro
Storage sqflite (reader.db) + shared_preferences
Book-source JS flutter_js (local patch under third_party/flutter_js)
Pagination Optional Rust book_pager + Dart TextPainter fallback
Analytics / crash Firebase Analytics / Crashlytics

Architecture notes: CLAUDE.md.


Requirements

  • Flutter 3.44 stable (Dart 3.12)
  • Android SDK (ANDROID_HOME / sdk.dir in local.properties)
  • Optional on Windows: MinGW (host libbook_pager), Android NDK (arm64 / x86_64)
flutter doctor

Quick start

# Dependencies
flutter pub get

# Run (device / emulator connected)
flutter run

# Analyze
flutter analyze

# Tests
flutter test

Build APK

# Debug
flutter build apk --debug

# Release (all ABIs)
flutter build apk

# arm64-focused Windows scripts (obfuscation / split / SKSL — see script comments)
build_arm64.bat
# or
build.bat

GitHub Actions

Workflow File Trigger
CI .github/workflows/ci.yml push / PR: flutter analyze + flutter test
Build APK .github/workflows/build.yml push master/main, tags v*, manual workflow_dispatch, repository_dispatch: starred

Release example:

git tag v1.0.0+10
git push origin v1.0.0+10

Optional signing secrets (repo → Settings → Secrets and variables → Actions):

Secret Meaning
ANDROID_KEYSTORE_BASE64 base64 of the keystore (base64 -w0 key.jks)
ANDROID_KEYSTORE_PASSWORD store password
ANDROID_KEY_ALIAS key alias
ANDROID_KEY_PASSWORD key password

Without secrets, release falls back to debug signing (same as local). Artifacts are uploaded; v* tags also attach assets to a GitHub Release.

Native pager (optional)

build_book_pager.bat              # Windows host DLL
build_book_pager.bat --android    # arm64-v8a + x86_64 → jniLibs

If libbook_pager.so is missing for the ABI, the app falls back to Dart pagination.

Firebase (optional)

  1. Place google-services.json under android/app/
  2. Enable Analytics and Crashlytics in the Firebase console
  3. FirebaseBootstrap initializes on boot; failure does not block startup

Layout (summary)

lib/
  view/book/          # Shelf, search, detail, reader
  view/page_turn/     # Canvas page-turn
  model/              # ChangeNotifier models
  model/reader/       # Reader collaborators (paging, cache, source switch…)
  data/               # reader.db + repositories
  source/             # Book-source engine
  common/             # Dio, SpUtil, layout helpers
  service/            # Firebase, cache, etc.
android/              # Declarative Gradle (Kotlin DSL)

Screenshots

Shelf Search History
Shelf Search History
Reader Settings Discover
Reader Settings Discover

Related


Star history


Acknowledgements

Thanks to JetBrains for open-source IDE support.

JetBrains


License

Apache License 2.0

Explore related projects

Loading…