Skip to content

CI: build App Bundle for Play Store uploads instead of APK - #684

Merged
Mansimran Singh (Mansimran-Singh) merged 1 commit into
mainfrom
feature/626/play-store-aab-upload
Aug 19, 2026
Merged

CI: build App Bundle for Play Store uploads instead of APK#684
Mansimran Singh (Mansimran-Singh) merged 1 commit into
mainfrom
feature/626/play-store-aab-upload

Conversation

@Mansimran-Singh

Copy link
Copy Markdown
Collaborator

Summary

  • pre-release-upload.yml (runs on every merge to main) has failed its Play Store upload step on both of its real runs so far, with Cannot replace a bundle of version code 31 with an APK. — the app already has a bundle published at that version code, so Play rejects a raw APK.
  • Switch both ps-release.yml (tag-triggered production pipeline) and pre-release-upload.yml (closed-testing/alpha track pipeline) to run bundleRelease alongside assembleRelease, and point the Play Store upload step at the resulting .aab instead of the .apk.
  • Left the APK build/paths alone everywhere else (Firebase App Distribution step, GitHub release attachment) since those already work today.

Ticket

Related to #626

Type of Change

  • New feature
  • Bug fix
  • Refactor
  • Tests
  • CI/CD
  • Documentation

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed

No unit-testable logic changed — this is a CI workflow config fix. Confirmed via gh run view on the two prior real pre-release-upload.yml runs (2026-08-08, 2026-08-18) that both failed at the identical Cannot replace a bundle... step, and confirmed bundleRelease/app/build/outputs/bundle/release/app-release.aab is the correct AGP-generated task/path for this project's build config. The actual end-to-end validation (does the fixed upload succeed against Play) will happen automatically on the next merge to main, since pre-release-upload.yml is already wired into build.yml — no extra trigger needed.

Checklist

  • Tests pass locally (./gradlew testDebug)
  • No API keys or secrets in code
  • CLAUDE.md updated (if new pattern introduced)

Play rejected both release pipelines' uploads with "Cannot replace a
bundle of version code 31 with an APK" — the app already has a bundle
published at that version code, and Play won't accept a raw APK once
a bundle exists for a given versionCode. Switch the Play Store upload
step in each workflow to bundleRelease's .aab output; leave the APK
build (used by the Firebase distribution step and the GitHub release
attachment) as-is since those already work.

Related to #626.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Mansimran-Singh
Mansimran Singh (Mansimran-Singh) merged commit df4871a into main Aug 19, 2026
4 checks passed
@Mansimran-Singh
Mansimran Singh (Mansimran-Singh) deleted the feature/626/play-store-aab-upload branch August 19, 2026 16:01
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.

2 participants