feat(volkskrant): hide the "update app" banner in articles #23

Closed
opened 2026-10-10 12:22:28 +02:00 by midas · 0 comments
Owner

Part of #16. Low priority.

Feature description

de Volkskrant asks Play's AppUpdateManager whether an update exists. The only effect is an "update app" banner at the top of an article, shown when the article contains blocks the app doesn't know (Block.Unknown / UnknownHeader).

On a patched install that lags behind the Play version, that is exactly when new block types appear, and the banner's advice (update through Play) doesn't work. Hide it, either as part of the forced update patch (#21) or as a separate option.

Findings (7.52.0, unobfuscated)

  • AppInfoModule$Companion.provideAppUpdateManager(Context) has one consumer: AppUpdateDataSourceImpl.getAppUpdateInfo.
  • No update flow is ever started: there is no startUpdateFlow / AppUpdateOptions in app code.
  • AppUpdateRepositoryImpl.determineUpdateStatus(AppUpdateInfo, String) returns:
    • MandatoryUpdate: availability 2 and an immediate intent;
    • UpdateAvailable: a flexible intent, or when remote config getFakeAppUpdateAvailable() is set.
  • nl.persgroep.edition.article.mappers.update.AppUpdateBannerViewDataMapper.invoke(Article, Continuation) creates ArticleBannerViewData.UpdateApp only when the article body contains unknown blocks.
    • It is rendered via ArticleDataContentKt and UpdateAppBannerContentKt.updateAppBannerContent.

Approach

  • Make AppUpdateBannerViewDataMapper.invoke return null, or make determineUpdateStatus return the "no update" state.
    • Check the suspend-function return convention: the mapper's continuation may expect a boxed result.
  • Unknown blocks themselves stay invisible, as today.

Done when

  • Build passes; patch applied on 7.52.0.
  • Documented in docs/apps/volkskrant.md.
Part of #16. Low priority. ## Feature description de Volkskrant asks Play's `AppUpdateManager` whether an update exists. The only effect is an "update app" banner at the top of an article, shown when the article contains blocks the app doesn't know (`Block.Unknown` / `UnknownHeader`). On a patched install that lags behind the Play version, that is exactly when new block types appear, and the banner's advice (update through Play) doesn't work. Hide it, either as part of the forced update patch (#21) or as a separate option. ## Findings (7.52.0, unobfuscated) - `AppInfoModule$Companion.provideAppUpdateManager(Context)` has one consumer: `AppUpdateDataSourceImpl.getAppUpdateInfo`. - No update flow is ever started: there is no `startUpdateFlow` / `AppUpdateOptions` in app code. - `AppUpdateRepositoryImpl.determineUpdateStatus(AppUpdateInfo, String)` returns: - `MandatoryUpdate`: availability 2 and an immediate intent; - `UpdateAvailable`: a flexible intent, or when remote config `getFakeAppUpdateAvailable()` is set. - `nl.persgroep.edition.article.mappers.update.AppUpdateBannerViewDataMapper.invoke(Article, Continuation)` creates `ArticleBannerViewData.UpdateApp` only when the article body contains unknown blocks. - It is rendered via `ArticleDataContentKt` and `UpdateAppBannerContentKt.updateAppBannerContent`. ## Approach - Make `AppUpdateBannerViewDataMapper.invoke` return null, or make `determineUpdateStatus` return the "no update" state. - Check the suspend-function return convention: the mapper's continuation may expect a boxed result. - Unknown blocks themselves stay invisible, as today. ## Done when - [ ] Build passes; patch applied on 7.52.0. - [ ] Documented in `docs/apps/volkskrant.md`.
midas closed this issue 2026-10-10 21:00:15 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#23
No description provided.