Skip to content

fix(appupdates): skip the server minimum-version gate in debug builds - #1829

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/debug-skip-update-gate
Oct 23, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/debug-skip-update-gate

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Debug builds ship versionCode 1, so any server minimumVersion puts them behind UpdateRequiredBlockingView. In the nightly Maestro run 39898678397 the logcat shows:

Checking for available updates - 1 < 4804

followed by a Play Core InstallException -9 (no Play-installed app on the emulator), while the blocking view keeps retrying. 12 of 13 smoke flows then fail on id: wallet_screen is visible / id: chat_screen is visible.

GooglePlayAppUpdateController gains an ignoreServerMinimum parameter, which AppUpdateModule sets from BuildConfig.DEBUG. When set, checkForUpdate() returns early unless the minimum version has a staff override, so the override visualization still works in debug. Release builds are unchanged, and the debug-optional-update marker and FakeAppUpdateManager path are untouched. ForcedUpdateTest gains two cases: the server minimum is ignored, and a staff override still shows the gate.

Related to the nightly Maestro run fix in #1824.

Debug builds ship versionCode 1, so any server minimumVersion put them behind
UpdateRequiredBlockingView, where Play Core fails with InstallException -9 and
the check retries forever. CI's debug APK never reached wallet_screen.

GooglePlayAppUpdateController now takes ignoreServerMinimum, set from
BuildConfig.DEBUG in AppUpdateModule. A staff override still shows the gate, and
the debug optional-update harness is untouched.
@bmc08gt bmc08gt self-assigned this Oct 23, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Oct 23, 2026
@bmc08gt
bmc08gt marked this pull request as ready for review October 23, 2026 15:35
@bmc08gt
bmc08gt merged commit dc6eb21 into code/cash Oct 23, 2026
5 checks passed
@bmc08gt
bmc08gt deleted the fix/debug-skip-update-gate branch October 23, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant