commit 8d0cefb825da31a9b2af85f597ce79914d3ea5f7 equwal <13551856+equwal@users.noreply.github.com> 2026-09-26 15:14:56 -0700 Add a More apps section with links to the other apps The main screen shows the other sites and apps of the author, after About. A tap on an entry opens its page in the browser. Add a More projects section to the README.
README.md | 24 +++++++++++++++ .../main/java/dev/equwal/inkupdate/MainActivity.kt | 5 +++ app/src/main/java/dev/equwal/inkupdate/MoreApps.kt | 36 ++++++++++++++++++++++ app/src/main/res/values/strings.xml | 31 +++++++++++++++++++ .../test/java/dev/equwal/inkupdate/MoreAppsTest.kt | 30 ++++++++++++++++++ 5 files changed, 126 insertions(+)
diff --git a/README.md b/README.md index 046c1c8..00e5d46 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,30 @@ Release signing is optional. Put a `keystore.properties` file in the root of the project with `storeFile`, `storePassword`, `keyAlias` and `keyPassword`. Without that file the build makes an unsigned APK. +## More projects + +- [SubRead](https://subread.space/): read along with an audiobook, in the browser. + Also [for Android](https://github.com/equwal/subread-android/releases/latest), + [for YouTube](https://github.com/equwal/subread-extension/releases/latest) + and [for KOReader](https://github.com/equwal/subread.koplugin). +- [SubRead Overlay](https://github.com/equwal/subread-overlay/releases/latest): subtitle lines over any Android media player. +- [SubRead Dictionary](https://github.com/equwal/subread-dictionary/releases/latest): a pop-up dictionary for Android that reads Yomitan dictionaries. +- [SubRead Anki](https://github.com/equwal/subread-anki): one tap makes an Anki card from any Android app. +- [Subrep](https://github.com/equwal/subrep-android/releases/latest): live captions of the sound of your phone. +- [Book Simulator](https://booksimulator.com/): a reading room for Aozora Bunko and Project Gutenberg books. +- [honjimaku.com](https://honjimaku.com/): subtitles for Japanese audiobooks. +- [sbm Sync](https://sbmsync.com/): your bookmarks, the same on every device, + with [sbm](https://github.com/equwal/sbm) for dmenu, + [sbm for Android](https://github.com/equwal/sbm-android/releases/latest) + and the [sbm add-on](https://github.com/equwal/sbm-extension/releases/latest) for Firefox and Chrome. +- [Rebind](https://github.com/equwal/rebind/releases): remap the hardware buttons of e-ink readers and Android, + with [Ink Recents](https://github.com/equwal/ink-recents/releases/latest), + [Ink Dim](https://github.com/equwal/ink-dim/releases/latest) + and [Ink Update](https://github.com/equwal/ink-update/releases/latest). +- [dickt.store](https://dickt.store/): language-learning tools, flashcards and web toys. +- [hentaibun.online](https://hentaibun.online/): learn kanbun and kobun. +- [Recently Written](https://recentlywritten.com/): the blog, and a list of [all projects](https://recentlywritten.com/projects.html). + ## Licence GPL-3.0-or-later. See [LICENSE](LICENSE). diff --git a/app/src/main/java/dev/equwal/inkupdate/MainActivity.kt b/app/src/main/java/dev/equwal/inkupdate/MainActivity.kt index f9f7cf7..d3dbc85 100644 --- a/app/src/main/java/dev/equwal/inkupdate/MainActivity.kt +++ b/app/src/main/java/dev/equwal/inkupdate/MainActivity.kt @@ -94,6 +94,11 @@ class MainActivity : Activity() { col.row(title = getString(R.string.licence), subtitle = "GPL-3.0-or-later") col.row(title = getString(R.string.source_code)) { open(SOURCE) } col.row(title = getString(R.string.coffee)) { open(KOFI) } + + col.header(getString(R.string.more_apps)) + for (app in MORE_APPS) { + col.row(title = getString(app.name), subtitle = getString(app.line)) { open(app.url) } + } } /** One watched app: what is installed, and what the check found. */ diff --git a/app/src/main/java/dev/equwal/inkupdate/MoreApps.kt b/app/src/main/java/dev/equwal/inkupdate/MoreApps.kt new file mode 100644 index 0000000..88bc5df --- /dev/null +++ b/app/src/main/java/dev/equwal/inkupdate/MoreApps.kt @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (c) 2026 equwal +package dev.equwal.inkupdate + +/** + * One link of the "More apps" section: a name and one line about it, as string resources, + * and the page that a tap opens. + */ +class MoreApp(val name: Int, val line: Int, val url: String) + +/** + * The other sites and apps of the same author, in the order of the catalog: the sites, + * then the Android apps, then the list of all projects. Ink Update is not in it. + */ +val MORE_APPS = listOf( + MoreApp(R.string.more_subread, R.string.more_subread_line, "https://subread.space/"), + MoreApp(R.string.more_book_simulator, R.string.more_book_simulator_line, "https://booksimulator.com/"), + MoreApp(R.string.more_honjimaku, R.string.more_honjimaku_line, "https://honjimaku.com/"), + MoreApp(R.string.more_sbm_sync, R.string.more_sbm_sync_line, "https://sbmsync.com/"), + MoreApp(R.string.more_subread_android, R.string.more_subread_android_line, + "https://github.com/equwal/subread-android/releases/latest"), + MoreApp(R.string.more_subread_overlay, R.string.more_subread_overlay_line, + "https://github.com/equwal/subread-overlay/releases/latest"), + MoreApp(R.string.more_subread_dictionary, R.string.more_subread_dictionary_line, + "https://github.com/equwal/subread-dictionary/releases/latest"), + MoreApp(R.string.more_subread_anki, R.string.more_subread_anki_line, "https://github.com/equwal/subread-anki"), + MoreApp(R.string.more_subrep, R.string.more_subrep_line, + "https://github.com/equwal/subrep-android/releases/latest"), + MoreApp(R.string.more_sbm_android, R.string.more_sbm_android_line, + "https://github.com/equwal/sbm-android/releases/latest"), + MoreApp(R.string.more_rebind, R.string.more_rebind_line, "https://github.com/equwal/rebind/releases"), + MoreApp(R.string.more_ink_recents, R.string.more_ink_recents_line, + "https://github.com/equwal/ink-recents/releases/latest"), + MoreApp(R.string.more_ink_dim, R.string.more_ink_dim_line, "https://github.com/equwal/ink-dim/releases/latest"), + MoreApp(R.string.more_all_projects, R.string.more_all_projects_line, "https://recentlywritten.com/projects.html"), +) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 90311ad..6af508e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -29,4 +29,35 @@ <string name="licence">Licence</string> <string name="source_code">Source code</string> <string name="coffee">Buy me a coffee</string> + + <!-- More apps --> + <string name="more_apps">More apps</string> + <string name="more_subread">SubRead</string> + <string name="more_subread_line">Read along with an audiobook.</string> + <string name="more_book_simulator">Book Simulator</string> + <string name="more_book_simulator_line">A reading room for Aozora Bunko and Project Gutenberg books.</string> + <string name="more_honjimaku">honjimaku.com</string> + <string name="more_honjimaku_line">Subtitles for Japanese audiobooks.</string> + <string name="more_sbm_sync">sbm Sync</string> + <string name="more_sbm_sync_line">Your bookmarks, the same on every device.</string> + <string name="more_subread_android">SubRead for Android</string> + <string name="more_subread_android_line">Times an audiobook against its ebook on the device.</string> + <string name="more_subread_overlay">SubRead Overlay</string> + <string name="more_subread_overlay_line">Subtitle lines over any Android media player.</string> + <string name="more_subread_dictionary">SubRead Dictionary</string> + <string name="more_subread_dictionary_line">Pop-up dictionary that reads Yomitan dictionaries.</string> + <string name="more_subread_anki">SubRead Anki</string> + <string name="more_subread_anki_line">One tap makes an Anki card from any app.</string> + <string name="more_subrep">Subrep</string> + <string name="more_subrep_line">Live captions of the sound of your phone.</string> + <string name="more_sbm_android">sbm for Android</string> + <string name="more_sbm_android_line">Fuzzy search for your bookmarks.</string> + <string name="more_rebind">Rebind</string> + <string name="more_rebind_line">Remap the hardware buttons of e-ink readers and Android.</string> + <string name="more_ink_recents">Ink Recents</string> + <string name="more_ink_recents_line">A recent-apps switcher for e-ink.</string> + <string name="more_ink_dim">Ink Dim</string> + <string name="more_ink_dim_line">Frontlight below the lowest system level.</string> + <string name="more_all_projects">All projects</string> + <string name="more_all_projects_line">Everything, with source code.</string> </resources> diff --git a/app/src/test/java/dev/equwal/inkupdate/MoreAppsTest.kt b/app/src/test/java/dev/equwal/inkupdate/MoreAppsTest.kt new file mode 100644 index 0000000..8d84739 --- /dev/null +++ b/app/src/test/java/dev/equwal/inkupdate/MoreAppsTest.kt @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (c) 2026 equwal +package dev.equwal.inkupdate + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +/** The list of the More apps section. */ +class MoreAppsTest { + + @Test fun `the list leaves out Ink Update`() { + assertFalse(MORE_APPS.any { "equwal/ink-update" in it.url }) + } + + @Test fun `each link opens an https page`() { + for (app in MORE_APPS) assertTrue(app.url, app.url.startsWith("https://")) + } + + @Test fun `the list keeps the order of the catalog`() { + assertEquals( + listOf("https://subread.space/", "https://booksimulator.com/", "https://honjimaku.com/", "https://sbmsync.com/"), + MORE_APPS.take(4).map { it.url } + ) + assertEquals("https://recentlywritten.com/projects.html", MORE_APPS.last().url) + // The catalog has 15 entries. Ink Update is the one that is not in the list. + assertEquals(14, MORE_APPS.size) + } +}