A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
feat(mobile): submit releases directly to production stores
Amruth Pillaia080009d94c5
diff --git a/.agents/docs/mobile-ci.md b/.agents/docs/mobile-ci.mdindex eb115cba3..0b2c4134f 100644--- a/.agents/docs/mobile-ci.md+++ b/.agents/docs/mobile-ci.md@@ -44,10 +44,11 @@ workflow artifacts. Base64 is encoding, not encryption.- `IOS_DISTRIBUTION_P12_PASSWORD`: password for that `.p12`.- `IOS_PROVISION_PROFILE_BASE64`: base64 of the App Store profile for `me.rxresu`,team `654ASRW868`, covering the current app entitlements and certificate.-- `GOOGLE_PLAY_SERVICE_ACCOUNT_JSON`: raw service-account JSON with release-to-testing+- `GOOGLE_PLAY_SERVICE_ACCOUNT_JSON`: raw service-account JSON with release-to-productionpermission for this app. Required only for Android uploads.- `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY`: App Store Connect team API key ID,- issuer UUID, and raw `.p8` private key. Required only for iOS uploads.+ issuer UUID, and raw `.p8` private key with App Manager or Admin access.+ Required only for iOS uploads and App Review submission.Play App Signing retains its existing app-signing certificate. Do not replace`MOBILE_ANDROID_CERT_SHA256` with the upload-keystore fingerprint. Keep bundle/package@@ -84,11 +85,16 @@ Merely naming an environment does not configure these protection rules.## Build and upload-1. Deploy backward-compatible backend changes first. Update app `version` in+1. Deploy backward-compatible backend changes first. Complete device QA and store+ declarations before enabling uploads. Prepare listing/reviewer details and release+ notes in the consoles; the workflow retains existing listings and screenshots.+ Update app `version` in`apps/mobile/app.config.ts` when needed; iOS requires a new version string after aversion has been released. CI supplies the build number automatically.-2. Dispatch **Mobile Release** on `main`, choose `all`, `android`, or `ios`, and leave- **format=store** and **upload** disabled for the first signing check. Approve the+2. Dispatch **Mobile Release** on `main`, choose `all`, `android`, or `ios`, set+ **format=store**, and enable **upload** for production submission. Leave **upload**+ disabled for a build-only signing check. Production requests require successful+ latest main-push CI at the exact source commit before uploading. Approve the`mobile-signing` gate. The workflow validates signing credentials after approval,runs mobile source checks, fetches checksum-pinned Forme binaries, loads the EAS`production` environment, and generates fresh native projects.@@ -102,18 +108,20 @@ Merely naming an environment does not configure these protection rules.Actions retention is capped at 90 days for this public repository and deleting a runstill deletes its artifacts: export evidence to your permanent release recordsbefore expiry. This is longer retention, not permanent off-site storage.-4. Dispatch with **upload** enabled when ready. Upload jobs start only after every- selected platform built successfully, then pass the `mobile-store` environment gate.- They publish the exact signed artifacts from that run. Android creates a **completed- release on the internal testing track**, then promotes that exact version to every- other existing testing track, including open and closed beta tracks. Production- tracks are excluded. iOS waits for processing and assigns the build to **all existing- TestFlight groups**, internal and external, submitting for beta review and notifying- external testers when applicable. Configure at least one TestFlight group first.- Store-side processing and beta review can delay availability; public store releases- remain separate.-5. Confirm tester access, complete signed-device QA and store declarations, then- submit for public review and production rollout in the consoles. Follow the+4. If **upload** is enabled, approve `mobile-store` after inspecting artifacts from this+ run. Upload jobs start only after every selected platform built successfully and+ submit those exact signed artifacts. Android uploads directly to **production**+ with a completed, full rollout and sends changes for review; it fails rather than+ silently falling back to changes requiring manual review submission. iOS creates+ or updates the IPA's app version, waits for that exact build to finish processing,+ submits it for **App Review**, and sets **automatic release after approval**.+ No Play testing tracks or TestFlight groups are used.+5. Check each store's processing/review status and verify the published versions.+ Workflow success means submission, not store approval or public availability.+ Google Managed Publishing, if enabled, still requires publishing approved changes+ in Play Console; disable it there if automatic publication after review is desired.+ Incomplete listing/reviewer details, declarations, release notes, pending reviews,+ agreements, or insufficient API permissions can block submission. Follow the[release handoff](./mobile-release-handoff.md#signed-device-test-matrix).CI creates temporary signing files with restrictive permissions, imports the Applediff --git a/.agents/docs/mobile-release-handoff.md b/.agents/docs/mobile-release-handoff.mdindex ce61d20ec..432108d0b 100644--- a/.agents/docs/mobile-release-handoff.md+++ b/.agents/docs/mobile-release-handoff.md@@ -172,13 +172,11 @@ binaries and deploy the backend first.1. Deploy the backend first. Keep the API backward compatible: older binaries and OTA bundles remain in use.2. Optionally bump `version` in `apps/mobile/app.config.ts` (for example `1.0.0` to `1.1.0`). CI supplies increasing iOS build numbers and Android version codes. iOS needs a new version string after a version is released; Play needs only a higher `versionCode`.-3. Dispatch **Mobile Release** on `main`, platform `all`. The [Blacksmith setup guide](./mobile-ci.md) covers migrating existing signing credentials, seeding `MOBILE_BUILD_NUMBER_BASE`, and configuring the `mobile-store` approval environment. Build without uploads first to verify signing. No EAS Build credits are used.-4. Dispatch with **format=store** and **upload** enabled to publish the signed artifacts to every existing Play testing track and all existing TestFlight groups, including external beta groups. iOS waits for processing and submits for TestFlight beta review where required; configure at least one TestFlight group first. This does not submit public App Store review or publish a production release. Fastlane signs locally using existing credentials and does not synchronize Apple capabilities. If exporting credentials through `eas credentials`, keep `EXPO_NO_CAPABILITY_SYNC=1`; Apple sign-in uses web Services ID `me.rxresu.web`, so turning off its primary App ID's Sign in with Apple capability would break sign-in.--5. **App Store Connect:** wait for processing, test through TestFlight, create the new app version, attach the build, write "What's New", and submit for review. Release manually or automatically after approval.-6. **Play Console:** the build is published on `internal` and promoted to every other existing non-production testing track. After testing, promote it to production with release notes. Use a staged rollout for risky changes.-7. Run the [signed-device test matrix](#signed-device-test-matrix) on the store-installed builds before promoting to production.-8. Confirm that a later OTA update reaches the new binary, because its fingerprint and runtime version changed.+3. Complete the [signed-device test matrix](#signed-device-test-matrix), store declarations, listing/reviewer details, and release notes before submission. The workflow retains saved listings and screenshots. Ensure Play credentials permit production releases and the App Store Connect key has App Manager or Admin access. No testing tracks or TestFlight groups are required.+4. Dispatch **Mobile Release** on `main`, platform `all`, **format=store**, and **upload** enabled. Approve `mobile-signing`, inspect this run's signed artifacts, then approve `mobile-store` to submit them. Latest main-push CI must have passed for the exact source commit before upload begins. Leave **upload** disabled if only checking a build. The [Blacksmith setup guide](./mobile-ci.md) covers credentials, build numbering, and approval environments. No EAS Build credits are used. Fastlane does not synchronize Apple capabilities. If exporting credentials through `eas credentials`, keep `EXPO_NO_CAPABILITY_SYNC=1`; Apple sign-in uses web Services ID `me.rxresu.web`, so turning off its primary App ID's Sign in with Apple capability would break sign-in.+5. **App Store Connect:** the workflow uploads the IPA, creates or updates its app version, waits for its matching processed build, submits for App Review, and sets automatic release after approval. Missing metadata or a pending review can block submission; review status and public availability must be checked separately.+6. **Play Console:** the workflow uploads directly to production with a completed, full rollout and sends changes for review. It does not publish to testing tracks. Review and Managed Publishing still control public availability; if Managed Publishing is enabled, publish approved changes in the console, or disable it there for automatic publication after review.+7. Verify both public store versions and smoke-test store-installed builds. Workflow success proves submission, not approval or publication. Confirm that a later OTA update reaches each new binary, because its fingerprint and runtime version changed.Stable distribution uses the App Store and Play Store. IPA and AAB files are not attached to GitHub Releases. Manual Android APKs are available through Actions artifacts as described below; they do not replace store builds or store review.diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.ymlindex 2f5d8bc00..ea0fc3347 100644--- a/.github/workflows/mobile-release.yml+++ b/.github/workflows/mobile-release.yml@@ -19,7 +19,7 @@ on:options: [arm64-v8a, armeabi-v7a, x86_64]default: arm64-v8aupload:- description: Publish to all Play testing tracks and TestFlight groups (no production release)+ description: Submit selected platforms directly to production after store reviewtype: booleandefault: false@@ -94,7 +94,7 @@ jobs:run: |bundle exec ruby tooling/mobile/signing_test.rbruby tooling/mobile/build_test.rb- - name: Check beta distribution targets+ - name: Check production distributionrun: ruby tooling/mobile/distribution_test.rb- uses: actions/setup-java@v5if: matrix.platform == 'android'@@ -192,20 +192,28 @@ jobs:upload:needs: [prepare, build]if: inputs.upload && inputs.format == 'store'+ permissions:+ actions: read+ contents: readenvironment: mobile-storestrategy:fail-fast: falsematrix:platform: ${{ fromJSON(needs.prepare.outputs.platforms) }}runs-on: ${{ matrix.platform == 'ios' && 'blacksmith-12vcpu-macos-latest' || 'blacksmith-32vcpu-ubuntu-2404' }}- timeout-minutes: 30+ timeout-minutes: 60env:- MOBILE_BUILD_NUMBER: ${{ needs.prepare.outputs.build_number }}BUNDLE_GEMFILE: ${{ github.workspace }}/tooling/mobile/Gemfilesteps:- uses: useblacksmith/checkout@v1with:persist-credentials: false+ - name: Require successful CI for the exact production commit+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9+ with:+ script: |+ const { requireSuccessfulCI } = await import(`${process.env.GITHUB_WORKSPACE}/tooling/docker/check-ci.mjs`);+ await requireSuccessfulCI({ github, repo: context.repo, sha: context.sha });- uses: actions/setup-node@v7with:node-version-file: .nvmrc@@ -218,7 +226,7 @@ jobs:with:name: mobile-${{ matrix.platform }}-${{ needs.prepare.outputs.build_number }}path: ${{ runner.temp }}/mobile-release- - name: Publish to beta testers without production rollout+ - name: Submit production release for store reviewworking-directory: tooling/mobileenv:PLATFORM: ${{ matrix.platform }}diff --git a/tooling/mobile/distribution_test.rb b/tooling/mobile/distribution_test.rbindex 1ebec5f83..8ea03fe4f 100644--- a/tooling/mobile/distribution_test.rb+++ b/tooling/mobile/distribution_test.rb@@ -30,117 +30,37 @@ class DistributionContractenddef upload_to_play_store(**options)+ raise "Play must upload only to production" unless options[:track] == "production"@uploads << optionsend- def upload_to_testflight(**options)+ def upload_to_app_store(**options)@uploads << optionsendend-module Supply- class Client- class << self- attr_accessor :track_names, :read_error, :aborted-- def make_from_config- new- end- end-- def begin_edit(package_name:)- raise "Unexpected Play app" unless package_name == "me.rxresu"- self.class.aborted = false- end-- def tracks- raise self.class.read_error if self.class.read_error- self.class.track_names.map { |name| Struct.new(:track).new(name) }- end-- def abort_current_edit- self.class.aborted = true- end- end-end--module Spaceship- module ConnectAPI- class App- class << self- attr_accessor :groups-- def get(app_id:)- raise "Unexpected App Store app" unless app_id == "6823975835"- new- end- end-- def get_beta_groups- self.class.groups- end- end- end-end--module UI- def self.user_error!(message)- raise message- end-end-ENV["RUNNER_TEMP"] = Dir.tmpdir-ENV["MOBILE_BUILD_NUMBER"] = "100"%w[GOOGLE_PLAY_SERVICE_ACCOUNT_JSON ASC_KEY_ID ASC_ISSUER_ID ASC_PRIVATE_KEY].each { |name| ENV[name] = "fixture" }contract = DistributionContract.new-Supply::Client.track_names = ["production", "internal", "alpha", "beta", "closed-qa", "wear:production"]contract.publish(:android)play = contract.uploads.first-raise "Play release must reach internal testers" unless play[:track] == "internal" && play[:release_status] == "completed"-promotions = contract.uploads.drop(1)-raise "Every existing Play testing track must receive the build" unless- promotions.map { |options| options[:track_promote_to] } == ["alpha", "beta", "closed-qa"]-raise "Promotions must use this exact binary and publish a completed release" unless promotions.all? { |options|- options[:track] == "internal" && options[:version_code] == 100 &&- options[:track_promote_release_status] == "completed" && options[:skip_upload_aab]-}-raise "Track discovery must close its read edit" unless Supply::Client.aborted--group = Struct.new(:id, :is_internal_group)-Spaceship::ConnectAPI::App.groups = [group.new("internal-team", true), group.new("external-beta", false), group.new("internal-qa", true)]-contract.publish(:ios)-testflight = contract.uploads.last-raise "TestFlight must wait and distribute" unless- testflight[:skip_submission] == false && testflight[:skip_waiting_for_build_processing] == false-raise "Every existing TestFlight group must receive the build" unless- testflight[:groups] == ["internal-team", "external-beta", "internal-qa"]-raise "External TestFlight testers require beta review and notification" unless- testflight[:distribute_external] && testflight[:submit_beta_review] && testflight[:notify_external_testers] &&- !testflight[:changelog].empty?+raise "Play must upload once" unless contract.uploads.length == 1+raise "Play must submit a full production release for review" unless+ play[:release_status] == "completed" && !play[:changes_not_sent_for_review] &&+ play[:rescue_changes_not_sent_for_review] == false+raise "Play must upload this run's signed artifact to the correct app" unless+ play[:package_name] == "me.rxresu" && play[:aab] == File.join(Dir.tmpdir, "mobile-release/ReactiveResume.aab")-Spaceship::ConnectAPI::App.groups = [group.new("internal-team", true)]contract.publish(:ios)-testflight = contract.uploads.last-raise "Internal-only TestFlight groups need no external beta review" unless- testflight[:distribute_external] == false && testflight[:submit_beta_review] == false--Spaceship::ConnectAPI::App.groups = []-uploaded = contract.uploads.length-begin- contract.publish(:ios)- raise "Missing groups must prevent upload"-rescue RuntimeError => error- raise unless error.message == "Configure a TestFlight testing group before publishing"-end-raise "Missing groups must not upload" unless contract.uploads.length == uploaded--Supply::Client.read_error = RuntimeError.new("Track discovery failed")-begin- contract.publish(:android)- raise "Track discovery errors must prevent promotions"-rescue RuntimeError => error- raise unless error.message == "Track discovery failed"-end-raise "Track discovery failure must close its edit without promotions" unless- Supply::Client.aborted && contract.uploads.length == uploaded + 1-puts "Distribution contracts passed"+app_store = contract.uploads.last+raise "iOS must upload once to the App Store" unless contract.uploads.length == 2+raise "App Store must submit for review and release after approval" unless+ app_store[:submit_for_review] && app_store[:automatic_release] && app_store[:skip_metadata] == false+# Fastlane reads version/build from this IPA to create the version and await the matching processed build.+raise "App Store must upload and select this run's signed artifact" unless+ app_store[:app_identifier] == "me.rxresu" &&+ app_store[:ipa] == File.join(Dir.tmpdir, "mobile-release/ReactiveResume.ipa") &&+ !app_store[:skip_binary_upload] && !app_store[:build_number]+raise "App Store API-key precheck must exclude unsupported in-app purchase checks" unless+ app_store[:precheck_include_in_app_purchases] == false+puts "Production distribution contracts passed"diff --git a/tooling/mobile/fastlane/Fastfile b/tooling/mobile/fastlane/Fastfileindex c80c2856f..0825bacc4 100644--- a/tooling/mobile/fastlane/Fastfile+++ b/tooling/mobile/fastlane/Fastfile@@ -44,31 +44,17 @@ platform :android doendend- desc "Publish to every existing Play testing track"+ desc "Submit a Google Play production release"lane :upload do- options = {+ upload_to_play_store(package_name: "me.rxresu",json_key_data: ENV.fetch("GOOGLE_PLAY_SERVICE_ACCOUNT_JSON"),- track: "internal", release_status: "completed",+ aab: File.join(OUTPUT, "ReactiveResume.aab"),+ track: "production", release_status: "completed",+ changes_not_sent_for_review: false, rescue_changes_not_sent_for_review: false,skip_upload_apk: true, skip_upload_metadata: true, skip_upload_changelogs: true,skip_upload_images: true, skip_upload_screenshots: true- }- version_code = Integer(ENV.fetch("MOBILE_BUILD_NUMBER"), 10)- upload_to_play_store(**options, aab: File.join(OUTPUT, "ReactiveResume.aab"))-- client = Supply::Client.make_from_config- client.begin_edit(package_name: "me.rxresu")- begin- tracks = client.tracks.map(&:track).reject { |track| track == "internal" || track.split(":").last == "production" }- ensure- client.abort_current_edit- end- tracks.each do |track|- upload_to_play_store(- **options, skip_upload_aab: true, track_promote_to: track,- track_promote_release_status: "completed", version_code: version_code- )- end+ )endend@@ -126,21 +112,19 @@ platform :ios doendend- desc "Publish to all existing TestFlight groups"+ desc "Submit to App Review and release automatically after approval"lane :upload doapi_key = app_store_connect_api_key(key_id: ENV.fetch("ASC_KEY_ID"), issuer_id: ENV.fetch("ASC_ISSUER_ID"),key_content: ENV.fetch("ASC_PRIVATE_KEY"))- groups = Spaceship::ConnectAPI::App.get(app_id: "6823975835").get_beta_groups- UI.user_error!("Configure a TestFlight testing group before publishing") if groups.empty?- external = groups.any? { |group| !group.is_internal_group }- upload_to_testflight(- api_key: api_key, app_identifier: "me.rxresu", apple_id: "6823975835",+ upload_to_app_store(+ api_key: api_key, app_identifier: "me.rxresu",ipa: File.join(OUTPUT, "ReactiveResume.ipa"),- skip_submission: false, skip_waiting_for_build_processing: false,- groups: groups.map(&:id), distribute_external: external, submit_beta_review: external,- notify_external_testers: true, changelog: "Please test resume editing, PDF export and account sign-in."+ submit_for_review: true, automatic_release: true,+ # Metadata processing also applies automatic_release; existing listing fields stay in App Store Connect.+ skip_metadata: false, skip_screenshots: true, force: true,+ precheck_include_in_app_purchases: false)endend