fix: support Het Parool 7.55.0 (tile feed removed) #160

Closed
midas wants to merge 0 commits from fix/159-parool-7.55.0 into dev
Owner

Closes #159

Het Parool 7.55.0 removed the whole teasers/feed module (sections, lists and the digital paper are overview pages now, NavigationRoute.FeedSection/FeedList are gone), moved toolbarActionTag from TestTagsKt to ToolbarActionTagKt, and dropped Heap's autocapture provider.

fix:

  • Copy article as Markdown: ToolbarActionTagFingerprint matches the name, the static (ToolbarAction)String signature and the toolbar_action_share tag, not the file class.
  • feedTileFilterPatch hooks toModel(TileDto, ...) only when TileDto exists (hasTileFeed()); while it exists the hook stays required. Hide game promotions registers its toggle only then (it does nothing on 7.55.0). Hide notification suggestions keeps its article half.
  • ContentFilters matches the tile DTOs by class name and reads getTeaser().getGameId() by reflection, so the extension doesn't reference classes 7.55.0 lacks (the patch check's class verification failed on them). Their 4 stubs moved to the extension's test sources as fakes (check-stubs.sh flagged them as missing on 7.55.0).
  • editionManifestCleanupPatch: HeapViewAutocaptureContentProvider is optional; HeapContentProvider stays required.

bump: 7.55.0 in EDITION_TARGETS, untestedVersions for Volkskrant and Trouw (APKPure only has 7.54.0 of those).

Verification:

  • buildAndroid (incl. contract check) and :extensions:extension:testDebugUnitTest: green.
  • check-patches.sh: Het Parool 7.55.0 (APKPure XAPK) exit 0, 13x Applied, class check 0 to fix; Volkskrant 7.53.1 and Volkskrant 7.54.0 (APKPure) exit 0, 13x Applied.
  • check-stubs.sh: OK on Parool 7.55.0 and Volkskrant 7.53.1.

Open:

  • Not device-tested.
  • Parool 7.55.0 is not in the APK store yet (no write token here); the push Patch check on dev warns and skips it until it is uploaded.
  • Conflicts trivially with #155 (same lines in EditionTitle.kt/Constants*.kt).
  • Game promos / push box on the new overview-based sections are not covered (no game tap action or push box type in the overview model; needs a device capture).

🤖 Generated with Claude Code

Closes #159 Het Parool 7.55.0 removed the whole `teasers`/`feed` module (sections, lists and the digital paper are overview pages now, `NavigationRoute.FeedSection`/`FeedList` are gone), moved `toolbarActionTag` from `TestTagsKt` to `ToolbarActionTagKt`, and dropped Heap's autocapture provider. **fix:** - Copy article as Markdown: `ToolbarActionTagFingerprint` matches the name, the static `(ToolbarAction)String` signature and the `toolbar_action_share` tag, not the file class. - `feedTileFilterPatch` hooks `toModel(TileDto, ...)` only when `TileDto` exists (`hasTileFeed()`); while it exists the hook stays required. Hide game promotions registers its toggle only then (it does nothing on 7.55.0). Hide notification suggestions keeps its article half. - `ContentFilters` matches the tile DTOs by class name and reads `getTeaser().getGameId()` by reflection, so the extension doesn't reference classes 7.55.0 lacks (the patch check's class verification failed on them). Their 4 stubs moved to the extension's test sources as fakes (check-stubs.sh flagged them as missing on 7.55.0). - `editionManifestCleanupPatch`: `HeapViewAutocaptureContentProvider` is `optional`; `HeapContentProvider` stays required. **bump:** `7.55.0` in `EDITION_TARGETS`, `untestedVersions` for Volkskrant and Trouw (APKPure only has 7.54.0 of those). Verification: - `buildAndroid` (incl. contract check) and `:extensions:extension:testDebugUnitTest`: green. - `check-patches.sh`: Het Parool 7.55.0 (APKPure XAPK) exit 0, 13x Applied, class check 0 to fix; Volkskrant 7.53.1 and Volkskrant 7.54.0 (APKPure) exit 0, 13x Applied. - `check-stubs.sh`: OK on Parool 7.55.0 and Volkskrant 7.53.1. Open: - Not device-tested. - Parool 7.55.0 is not in the APK store yet (no write token here); the push Patch check on dev warns and skips it until it is uploaded. - Conflicts trivially with #155 (same lines in `EditionTitle.kt`/`Constants*.kt`). - Game promos / push box on the new overview-based sections are not covered (no game tap action or push box type in the overview model; needs a device capture). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
7.55.0 removed the whole teasers/feed module (sections, lists and the digital
paper are overview pages now), moved toolbarActionTag to ToolbarActionTagKt and
dropped Heap's autocapture provider.

- Copy article as Markdown: ToolbarActionTagFingerprint matches the name, the
  static (ToolbarAction)String signature and the "toolbar_action_share" tag
  instead of the file class, so it holds for TestTagsKt (7.53.1, 7.54.0) and
  ToolbarActionTagKt (7.55.0).
- feedTileFilterPatch hooks toModel(TileDto, ...) only when TileDto exists
  (hasTileFeed); while it does, the hook stays required. Hide game promotions
  registers its toggle only then. Hide notification suggestions keeps its
  article half.
- ContentFilters matches the tile DTOs by class name and reads
  getTeaser().getGameId() by reflection, so the extension no longer references
  classes 7.55.0 lacks (the patch check's class verification failed on them).
  Their stubs move to the extension's test sources as fakes.
- editionManifestCleanupPatch: HeapViewAutocaptureContentProvider is optional.

Closes #159

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bump: declare Het Parool 7.55.0 as tested
All checks were successful
CI / Build (pull_request) Successful in 3m40s
CI / Patch check (pull_request) Successful in 6m43s
b54ab8d4ba
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: fail the Edition feed filter when the tile DTOs move instead of skipping it
All checks were successful
CI / Build (pull_request) Successful in 5m28s
CI / Patch check (pull_request) Successful in 9m46s
dd2ae9861f
feedTileFilterPatch skipped silently whenever TileDto was missing, so a version that moved
the DTO package but kept the feed would drop the feed filters and the Hide game promotions
toggle while the patch check still reported Applied.

- hasTileFeed(): without TileDto it only reports "no feed" when no other trace is left
  (NavigationRoute$FeedSection/$FeedList, classes under edition/teasers or edition/feed,
  the strings "Unknown tile type encountered, unable to map to model" and
  "pushCategoryBox"; all present in Volkskrant 7.53.1 and Het Parool 7.54.0, none in
  7.55.0). Otherwise it throws a PatchException naming the traces.
- With the feed present the patch reads ContentFilters' name constants (PUSH_CATEGORY_TILE,
  TEASER_TILE, TEASER_GETTER, GAME_ID_GETTER) from the merged extension dex, so the Java
  strings stay the single source, and fails unless both tile classes are final subclasses of
  TileDto in its package and the getters exist as public no-argument instance methods
  returning an object. It logs "Feed tile filter hooked into ..." once the hook is in.
- A unit test pins the extension's constants to the test fakes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
midas referenced this pull request from a commit 2026-11-17 10:10:51 +01:00
midas closed this pull request 2026-11-17 10:12:36 +01:00
Author
Owner

Merged into dev as part of #155 (same commits).

Merged into dev as part of #155 (same commits).
All checks were successful
CI / Build (pull_request) Successful in 5m28s
Required
Details
CI / Patch check (pull_request) Successful in 9m46s

Pull request closed

Sign in to join this conversation.
No description provided.