Skip to content

fix(android): build an app bundle, and say so once instead of twice - #685

Merged
thinkclay merged 1 commit into
mainfrom
fix/android-app-bundle
Sep 1, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/android-app-bundle

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Found while preparing the Google Play listing.

The production Android profile asked for two different things at once:

"buildType": "apk",
"gradleCommand": ":app:bundleRelease"

An APK and an app bundle. Google Play has required an AAB for new apps since August 2021, so "apk" is the wrong one of the two — and whichever EAS actually honours, a profile that names both is a coin toss nobody should have to call before an upload.

Now "buildType": "app-bundle" and nothing else. gradleCommand is the older escape hatch that buildType replaced; with buildType correct it has nothing left to say, and leaving it in would just recreate the ambiguity.

Nothing regresses

No Android build has ever been produced, on any profile — eas build:list --platform android comes back empty. So there is no prior artifact shape to preserve, and no existing Play upload to stay compatible with.

That is also the reason this is worth fixing before the first build rather than after: the first AAB uploaded to Play establishes the app signing key, and a wrong-format first attempt is a rejected upload rather than a silent problem.

Also still placeholder, not fixed here

submit.production.android.serviceAccountKeyPath is the literal string "../path/to/service-account-key.json". Play submission has never been configured. That needs a real service account JSON from the Play Console, which does not exist yet — so it stays as-is until the console app is created rather than being changed to something equally fictional.

🤖 Generated with Claude Code

The production Android profile asked for two different things:

  "buildType": "apk",
  "gradleCommand": ":app:bundleRelease"

An APK and an app bundle. Google Play has required an AAB for new apps since
August 2021, so "apk" is the wrong one of the two — and whichever EAS actually
honours, a profile that names both is a coin toss nobody should have to call
before an upload.

Now `"buildType": "app-bundle"` and nothing else. `gradleCommand` is the older
escape hatch that buildType replaced; with buildType correct it has nothing
left to say, and leaving it would just recreate the ambiguity.

Nothing regresses: no Android build has ever been produced on any profile, so
there is no prior artifact shape to preserve. That is also why this is worth
fixing before the first one rather than after.
@thinkclay
thinkclay merged commit d69b2d6 into main Sep 1, 2026
2 checks passed
@thinkclay
thinkclay deleted the fix/android-app-bundle branch September 1, 2026 18:47
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