Skip to content

Own the app update offer in one coordinator - #956

Merged
DRadmir merged 2 commits into
mainfrom
wt4/app-update-offer-owner
Aug 24, 2026
Merged

Own the app update offer in one coordinator#956
DRadmir merged 2 commits into
mainfrom
wt4/app-update-offer-owner

Conversation

@DRadmir

@DRadmir DRadmir commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

The rule that decides whether to offer an app update was written in three places at once, and the mapping between build flavor and store was kept twice in opposite directions. Changing anything about updates meant editing several unrelated files, and nothing warned you if you missed one.

Now a single component answers that question and says which way the update should be offered — a dialog for store builds, the in-app banner for the universal APK. Both screens just use its answer.

Behaviour is unchanged.

The rule deciding whether an update is offered was evaluated in the app
view model, in the update banner view model, and partly in the dialog,
with the store mapping maintained twice in opposite directions.

AppUpdateCoordinator now selects the release for the current store,
persists it and exposes a single offer with an explicit delivery
channel. Both view models became consumers.
@DRadmir DRadmir self-assigned this Aug 23, 2026
@DRadmir
DRadmir merged commit 2838505 into main Aug 24, 2026
1 check passed
@DRadmir
DRadmir deleted the wt4/app-update-offer-owner branch August 24, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant