From e2ad380b55cb65b705c58b6439cf42a6b0a4f8f5 Mon Sep 17 00:00:00 2001 From: BookOasis Reader Date: Tue, 20 Oct 2026 08:38:52 +0900 Subject: [PATCH] Rebrand fork as Mihon BookMod and migrate update feed --- CHANGELOG.md | 8 +++ README.md | 35 ++++++----- app/build.gradle.kts | 4 +- .../data/updater/AppUpdateChecker.kt | 6 +- .../interactor/GetApplicationRelease.kt | 6 +- .../interactor/GetApplicationReleaseTest.kt | 63 +++++++++++++++++++ .../moko-resources/base/strings.xml | 2 +- 7 files changed, 100 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07c27a5fd..f08eb1d0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,14 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co - `Fixed` - for any bug fixes. - `Other` - for technical stuff. +## [Mihon BookMod v0.21.2.1-r16] - 2026-10-20 +### Changed +- Renamed the Gitea repository and app display name from Mihon BookOasis to Mihon BookMod. +- Moved release checks and downloads to the mihon-bookmod Gitea repository. +- Updated release parsing to support legacy BookOasis version tags and new BookMod version tags. +- Bumped the Android version code, preserving the existing application ID and signing configuration. +- Retained BookOasis server and extension compatibility (BookOasis is an external service name). + ## [Unreleased] ### Added - Add experimental high quality reader renderer (Settings → Advanced → Use high quality renderer) with better image scaling, page transition animations, dual page view and display cutout handling ([@wwww-wwww](https://github.com/wwww-wwww)) ([#3388](https://github.com/mihonapp/mihon/pull/3388)) diff --git a/README.md b/README.md index a41967b74..87ee1d9d6 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,33 @@
- - Mihon logo + + Mihon BookMod -# Mihon [App](#) +# Mihon BookMod -### Full-featured reader -Discover and read manga, webtoons, comics, and more – easier than ever on your Android device. +### Mihon-based Android reader with BookOasis support and text-to-speech -[![Discord server](https://img.shields.io/discord/1195734228319617024.svg?label=&labelColor=6A7EC2&color=7389D8&logo=discord&logoColor=FFFFFF)](https://discord.gg/mihon) -[![GitHub downloads](https://img.shields.io/github/downloads/mihonapp/mihon/total?label=downloads&labelColor=27303D&color=0D1117&logo=github&logoColor=FFFFFF&style=flat)](https://mihon.app/download) - -[![CI](https://img.shields.io/github/actions/workflow/status/mihonapp/mihon/build.yml?labelColor=27303D)](https://github.com/mihonapp/mihon/actions/workflows/build_push.yml) -[![License: Apache-2.0](https://img.shields.io/github/license/mihonapp/mihon?labelColor=27303D&color=0877d2)](/LICENSE) -[![Translation status](https://img.shields.io/weblate/progress/mihon?labelColor=27303D&color=946300)](https://hosted.weblate.org/engage/mihon/) +[Releases](https://gitea.derekkoo.win/javara999/mihon-bookmod/releases) · [Source code](https://gitea.derekkoo.win/javara999/mihon-bookmod) · [Upstream Mihon](https://github.com/mihonapp/mihon) ## Download -[![Mihon Stable](https://img.shields.io/github/release/mihonapp/mihon.svg?maxAge=3600&label=Stable&labelColor=06599d&color=043b69)](https://mihon.app/download) -[![Mihon Beta](https://img.shields.io/github/v/release/mihonapp/mihon-preview.svg?maxAge=3600&label=Beta&labelColor=2c2c47&color=1c1c39)](https://mihon.app/download) +**Install from [Mihon BookMod releases](https://gitea.derekkoo.win/javara999/mihon-bookmod/releases).** BookMod updates are published to this Gitea repository, not the original Mihon release page. *Requires Android 8.0 or higher.* +## BookMod additions + +* BookOasis integration for opening supported text documents (EPUB, TXT), PDFs, and archives. +* Text-viewer typography, side margins, and word/character wrapping options. +* Background TTS with playback controls, speed and voice settings, and spoken-text highlighting. +* In-app update checks against the BookMod Gitea release feed. + +BookOasis is the name of the compatible server/source integration and remains unchanged. +The Android application ID and signing configuration are retained for upgrades from earlier BookOasis-branded builds. + +This is an independent fork of [Mihon](https://github.com/mihonapp/mihon), not an official Mihon release. + ## Features
@@ -44,10 +49,10 @@ Discover and read manga, webtoons, comics, and more – easier than ever on your Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. -Before reporting a new issue, take a look at the [FAQ](https://mihon.app/docs/faq/general), the [changelog](https://mihon.app/changelogs/) and the already opened [issues](https://github.com/mihonapp/mihon/issues); if you got any questions, join our [Discord server](https://discord.gg/mihon). +For BookMod-specific issues, use the [BookMod issue tracker](https://gitea.derekkoo.win/javara999/mihon-bookmod/issues). For upstream behavior, consult the [Mihon FAQ](https://mihon.app/docs/faq/general) and [upstream issues](https://github.com/mihonapp/mihon/issues). -### Repositories +### Upstream Mihon repositories [![mihonapp/website - GitHub](https://github-stats-extended.vercel.app/api/pin/?username=mihonapp&repo=website&bg_color=161B22&text_color=c9d1d9&title_color=0877d2&icon_color=0877d2&border_radius=8&hide_border=true&description_lines_count=2)](https://github.com/mihonapp/website/) [![mihonapp/bitmap.kt - GitHub](https://github-stats-extended.vercel.app/api/pin/?username=mihonapp&repo=bitmap.kt&bg_color=161B22&text_color=c9d1d9&title_color=0877d2&icon_color=0877d2&border_radius=8&hide_border=true&description_lines_count=2)](https://github.com/mihonapp/bitmap.kt/) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index cc08aafee..c28c423ba 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -37,8 +37,8 @@ android { defaultConfig { applicationId = "app.mihon" - versionCode = 38 - versionName = "0.21.2-bookoasis-r15" + versionCode = 39 + versionName = "0.21.2.1-bookmod-r16" buildConfigField("boolean", "TELEMETRY_INCLUDED", "${Config.includeTelemetry}") buildConfigField("boolean", "UPDATER_ENABLED", "${Config.enableUpdater}") diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt index 3af2cdd96..73664adf4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt @@ -26,7 +26,7 @@ class AppUpdateChecker( isNightlyBuildType, BuildConfig.COMMIT_COUNT.toInt(), BuildConfig.VERSION_NAME, - BOOKOASIS_REPO, + BOOKMOD_REPO, forceCheck, ), ) @@ -36,8 +36,8 @@ class AppUpdateChecker( } } -const val BOOKOASIS_REPO = "javara999/mihon-bookoasis" +const val BOOKMOD_REPO = "javara999/mihon-bookmod" val RELEASE_TAG = "v${BuildConfig.VERSION_NAME}" -val RELEASE_URL = "https://gitea.derekkoo.win/$BOOKOASIS_REPO/releases/tag/$RELEASE_TAG" +val RELEASE_URL = "https://gitea.derekkoo.win/$BOOKMOD_REPO/releases/tag/$RELEASE_TAG" diff --git a/domain/src/main/java/tachiyomi/domain/release/interactor/GetApplicationRelease.kt b/domain/src/main/java/tachiyomi/domain/release/interactor/GetApplicationRelease.kt index e8f2df349..8c13ac7e1 100644 --- a/domain/src/main/java/tachiyomi/domain/release/interactor/GetApplicationRelease.kt +++ b/domain/src/main/java/tachiyomi/domain/release/interactor/GetApplicationRelease.kt @@ -45,7 +45,7 @@ class GetApplicationRelease( if (newPart != oldPart) return newPart > oldPart } - return latest.bookOasisRevision > current.bookOasisRevision + return latest.forkRevision > current.forkRevision } private fun parseReleaseVersion(value: String): ReleaseVersion? { @@ -59,7 +59,7 @@ class GetApplicationRelease( private data class ReleaseVersion( val components: List, - val bookOasisRevision: Int, + val forkRevision: Int, ) data class Arguments( @@ -73,7 +73,7 @@ class GetApplicationRelease( companion object { private val RELEASE_VERSION_REGEX = - """(?:^|v)(\d+(?:\.\d+)+)(?:-bookoasis-r(\d+))?""".toRegex(RegexOption.IGNORE_CASE) + """^v?(\d+(?:\.\d+)+)(?:-(?:bookmod|bookoasis)-r(\d+))?$""".toRegex(RegexOption.IGNORE_CASE) } sealed interface Result { diff --git a/domain/src/test/java/tachiyomi/domain/release/interactor/GetApplicationReleaseTest.kt b/domain/src/test/java/tachiyomi/domain/release/interactor/GetApplicationReleaseTest.kt index fcbb3ca0d..913e53633 100644 --- a/domain/src/test/java/tachiyomi/domain/release/interactor/GetApplicationReleaseTest.kt +++ b/domain/src/test/java/tachiyomi/domain/release/interactor/GetApplicationReleaseTest.kt @@ -73,6 +73,69 @@ class GetApplicationReleaseTest { ).release } + @Test + fun `Old BookOasis release detects first BookMod update`() = runTest { + val release = Release( + "v0.21.2.1-bookmod-r16", + "info", + "https://example.com/release", + "https://example.com/bookmod.apk", + ) + coEvery { releaseService.latest(any()) } returns release + val result = getApplicationRelease.await( + GetApplicationRelease.Arguments( + isFoss = false, + isNightly = false, + commitCount = 0, + versionName = "0.21.2-bookoasis-r15", + repository = "javara999/mihon-bookmod", + ), + ) + result shouldBe GetApplicationRelease.Result.NewUpdate(release) + } + + @Test + fun `Installed BookMod release does not prompt for same version`() = runTest { + val release = Release( + "v0.21.2.1-bookmod-r16", + "info", + "https://example.com/release", + "https://example.com/bookmod.apk", + ) + coEvery { releaseService.latest(any()) } returns release + val result = getApplicationRelease.await( + GetApplicationRelease.Arguments( + isFoss = false, + isNightly = false, + commitCount = 0, + versionName = "0.21.2.1-bookmod-r16", + repository = "javara999/mihon-bookmod", + ), + ) + result shouldBe GetApplicationRelease.Result.NoNewUpdate + } + + @Test + fun `BookMod revision comparison accepts old naming`() = runTest { + val release = Release( + "v0.21.2-bookmod-r16", + "info", + "https://example.com/release", + "https://example.com/bookmod.apk", + ) + coEvery { releaseService.latest(any()) } returns release + val result = getApplicationRelease.await( + GetApplicationRelease.Arguments( + isFoss = false, + isNightly = false, + commitCount = 0, + versionName = "0.21.2-bookoasis-r15", + repository = "javara999/mihon-bookmod", + ), + ) + result shouldBe GetApplicationRelease.Result.NewUpdate(release) + } + @Test fun `When has no update expect no new update`() = runTest { val release = Release( diff --git a/i18n/src/commonMain/moko-resources/base/strings.xml b/i18n/src/commonMain/moko-resources/base/strings.xml index 4318914c7..18253a68c 100644 --- a/i18n/src/commonMain/moko-resources/base/strings.xml +++ b/i18n/src/commonMain/moko-resources/base/strings.xml @@ -1,6 +1,6 @@ - Mihon + Mihon BookMod On