chore: name the extension after its platforms and fix docs drift #124

Merged
midas merged 2 commits from review/104-naming-docs into dev 2026-10-17 21:08:30 +02:00
Owner

Part of #105, fixes #104 and #103.

  • #104: extension packages gelderlander -> kubus, volkskrant -> edition (classes KubusContentFilters, KubusArticleExporter, KubusMarkdownToolbar, EditionArticleExporter, log tags), stubs stubs/kubus / stubs/edition; settings.gradle.kts and the extension build pick up every stubs/* module by glob; all smali descriptors updated (the build-time contract check passes); AGENTS.md checklist "new platform or new toggle".
  • #103: Definition of done and add-patch skill name the unit tests, contract check and check-stubs; no const/4 left in docs; stale hook descriptions fixed; platform-wide notes moved into docs/apps/kubus.md and docs/apps/edition.md (app files keep app-specific notes + pointer); duplicate share-buttons section gone; adPlacement removed from patch-install help; the "tested" wording matches the README.

Verified: buildAndroid incl. contract check, unit tests, check-stubs OK on Tubantia 9.22.0 and Volkskrant 7.53.1; Applied 13/13/15/15/2 on Volkskrant 7.53.1, Trouw 7.52.0, Tubantia 9.22.0, Gelderlander 9.21.1, Videoland TV 1.116.3; patched dex contains the renamed classes and no old package.

🤖 Generated with Claude Code

Part of #105, fixes #104 and #103. - #104: extension packages `gelderlander` -> `kubus`, `volkskrant` -> `edition` (classes `KubusContentFilters`, `KubusArticleExporter`, `KubusMarkdownToolbar`, `EditionArticleExporter`, log tags), stubs `stubs/kubus` / `stubs/edition`; `settings.gradle.kts` and the extension build pick up every `stubs/*` module by glob; all smali descriptors updated (the build-time contract check passes); AGENTS.md checklist "new platform or new toggle". - #103: Definition of done and add-patch skill name the unit tests, contract check and check-stubs; no `const/4` left in docs; stale hook descriptions fixed; platform-wide notes moved into `docs/apps/kubus.md` and `docs/apps/edition.md` (app files keep app-specific notes + pointer); duplicate share-buttons section gone; `adPlacement` removed from patch-install help; the "tested" wording matches the README. Verified: buildAndroid incl. contract check, unit tests, check-stubs OK on Tubantia 9.22.0 and Volkskrant 7.53.1; Applied 13/13/15/15/2 on Volkskrant 7.53.1, Trouw 7.52.0, Tubantia 9.22.0, Gelderlander 9.21.1, Videoland TV 1.116.3; patched dex contains the renamed classes and no old package. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The extension packages, stubs and log tags used the first app of a platform
(gelderlander for eight Kubus titles, volkskrant for three Edition titles).
They are now nl.midasvo.extension.kubus / .edition, with KubusContentFilters,
KubusArticleExporter, KubusMarkdownToolbar and EditionArticleExporter, and
stubs/kubus and stubs/edition. The smali descriptors in the patches follow;
the extension contract check verifies them.

settings.gradle.kts includes every stubs/* directory with a build file and the
extension build adds them as compileOnly and testImplementation, so a new stub
module needs no build-file change. AGENTS.md gets the new layout, the Definition
of done with unit tests and the contract check, and a checklist for a new
platform or toggle; the add-patch skill points at it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
chore: bring AGENTS.md, skills and app notes in line with the code
All checks were successful
CI / Build (pull_request) Successful in 4m9s
eb7c3cf316
Platform-wide research notes move from gelderlander.md and volkskrant.md to
kubus.md and edition.md (the app files keep the app, signing and download
notes). The moved text no longer shows const/4 for injected smali, describes the
Midas Settings hook on Edition with its move-object/from16 scratch registers and
requireLocalRegisters(count = 2), and the video ad hooks as they are now. The
duplicate share-buttons section is gone, the tested-version tables list the
declared targets, and patch-install.ps1 no longer documents a non-existent
option. CONTRIBUTING and the Edition title comment say what "tested" means.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Code Review: PR #124

Verdict: Looks great! Clean refactoring and documentation alignment.

Key Highlights

  • Package & Stub Structure: Properly renamed
    l.midasvo.extension.volkskrant -> edition and gelderlander -> kubus, along with stubs/volkskrant -> stubs/edition and stubs/gelderlander -> stubs/kubus.
  • Dynamic Stub Loading: The globbing in \settings.gradle.kts\ and \extensions/extension/build.gradle.kts\ automatically wires new stub modules without needing manual edits in both build files.
  • Contract & Tests:
    • Build-time extension contract check (:patches:test) verified against compiled bytecode; all smali descriptors match.
    • Extension unit tests pass cleanly (:extensions:extension:testDebugUnitTest).
    • No orphaned or stale package references (
      l.midasvo.extension.(volkskrant|gelderlander)) remain across the codebase.
  • Documentation:
    • Platform-wide architecture and hook chains are cleanly centralized into \docs/apps/edition.md\ and \docs/apps/kubus.md.
    • \AGENTS.md, \CONTRIBUTING.md, and skill instructions correctly describe the contract test, stub verification, and new toggle/platform checklists.

Minor Note

  • \scripts/check-stubs.sh\ line 2 comment still references \stubs/\ rather than \stubs/\ (cosmetic header comment only).

CI passed (run #224) and PR is now merged.

### Code Review: PR #124 **Verdict:** Looks great! Clean refactoring and documentation alignment. #### Key Highlights - **Package & Stub Structure:** Properly renamed l.midasvo.extension.volkskrant -> edition and gelderlander -> kubus, along with stubs/volkskrant -> stubs/edition and stubs/gelderlander -> stubs/kubus. - **Dynamic Stub Loading:** The globbing in \settings.gradle.kts\ and \extensions/extension/build.gradle.kts\ automatically wires new stub modules without needing manual edits in both build files. - **Contract & Tests:** - Build-time extension contract check (\:patches:test\) verified against compiled bytecode; all smali descriptors match. - Extension unit tests pass cleanly (\:extensions:extension:testDebugUnitTest\). - No orphaned or stale package references (\ l.midasvo.extension.(volkskrant|gelderlander)\) remain across the codebase. - **Documentation:** - Platform-wide architecture and hook chains are cleanly centralized into \docs/apps/edition.md\ and \docs/apps/kubus.md\. - \AGENTS.md\, \CONTRIBUTING.md\, and skill instructions correctly describe the contract test, stub verification, and new toggle/platform checklists. #### Minor Note - \scripts/check-stubs.sh\ line 2 comment still references \stubs/<app>\ rather than \stubs/<platform>\ (cosmetic header comment only). CI passed (run #224) and PR is now merged.
Sign in to join this conversation.
No description provided.