feat(volkskrant): hide the "update app" banner in articles #23
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16. Low priority.
Feature description
de Volkskrant asks Play's
AppUpdateManagerwhether 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.startUpdateFlow/AppUpdateOptionsin app code.AppUpdateRepositoryImpl.determineUpdateStatus(AppUpdateInfo, String)returns:MandatoryUpdate: availability 2 and an immediate intent;UpdateAvailable: a flexible intent, or when remote configgetFakeAppUpdateAvailable()is set.nl.persgroep.edition.article.mappers.update.AppUpdateBannerViewDataMapper.invoke(Article, Continuation)createsArticleBannerViewData.UpdateApponly when the article body contains unknown blocks.ArticleDataContentKtandUpdateAppBannerContentKt.updateAppBannerContent.Approach
AppUpdateBannerViewDataMapper.invokereturn null, or makedetermineUpdateStatusreturn the "no update" state.Done when
docs/apps/volkskrant.md.