Skip to content

OPE-73 Distribute signed APKs for draft Play app - #73

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/ope-73-firebase-app-distribution-apk
Jul 23, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/ope-73-firebase-app-distribution-apk

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • distribute an upload-key-signed APK directly through Firebase on every merge
  • preserve protected signing, signature verification, private group targeting, stable links, and serialized runs
  • document the failed AAB acceptance run and intentional separate Firebase signing channel

Why

The first merged AAB run reached Firebase but was rejected because the linked Play app remains an unreviewed draft. Direct APK delivery keeps this private and avoids forcing Play store-policy declarations and review.

Verification

  • actionlint (only the repository's known Blacksmith runner-label warning)
  • shellcheck and bash syntax checks
  • signed :app:assembleRelease
  • APK certificate verified against the expected upload-key SHA-256
  • git diff --check

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

@linear-code

linear-code Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
OPE-73 Distribute every merged Android build through Firebase App Distribution

Make every successful merge to main available automatically to the private Android tester group through Firebase App Distribution.

Implemented on PR #72

  • Added an automatic push-to-main workflow that builds and signature-verifies one AAB from the exact merged commit
  • Uses a dedicated protected service-account secret and targets group alias android-internal
  • Includes merge subject and short SHA in release notes
  • Exposes stable Firebase release/tester links without printing the expiring binary URL
  • Serializes runs without cancellation and keeps PR workflows credential-free
  • Keeps App Distribution independent from Play internal release and Test Lab workflows
  • Documented signing, versioning, tester migration, retention, failure handling, and the Android-only boundary

Remaining owner setup and acceptance

  • Link Firebase Android app dev.opencode.mobile to its existing Google Play app for AAB processing
  • Create private Firebase tester group android-internal and enroll the initial owner/tester
  • Create dedicated service account opencode-app-distribution@opencode-mobile-release.iam.gserviceaccount.com with only Firebase App Distribution Admin
  • Create one JSON key, preserve its controlled recovery copy, and store it as FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON in the protected android-release GitHub environment
  • Merge PR OPE-73 Distribute merged Android builds through Firebase #72 and confirm exactly one automatic App Distribution run succeeds
  • Uninstall the Play-internal build once, install the first Firebase release on the Pixel 9, and confirm it opens

Signing boundary

Google Play re-signs App Distribution AABs with its separate Internal App Sharing certificate. This cannot update the normal Play-internal installation in place. The first Firebase install requires a one-time uninstall; later Firebase releases update within that separate channel. App Distribution reserves 1000000000 + github.run_number for monotonic version codes inside the channel.

No App Distribution SDK, in-app update alert, public invite link, extra Play-track release, Test Lab trigger, or iOS distribution is included.

Draft PR: opencode-mobile/opencode-mobile#72
Docs: docs/features/android-release-distribution/

Review in Linear

@ivanfenenko
ivanfenenko merged commit f84980f into main Jul 23, 2026
2 checks passed
@ivanfenenko
ivanfenenko deleted the fix/ope-73-firebase-app-distribution-apk branch July 23, 2026 14:38
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