galaxy_store_upload_apk

The Galaxy Store fastlane plugin action galaxy_store_upload_apk uploads an APK or AAB file to Galaxy Store Seller Portal.

Action

galaxy_store_upload_apk(
    content_id: "000007654321",
    apk_path: "app/build/outputs/apk/release/app-release.apk",
    gms: "N"
)

Parameter

Description

Required

access_token

Galaxy Store Content Publish API access token

Yes*

service_account_id

Galaxy Store service account ID

Yes*

content_id

12-digit app content ID

Yes

apk_path

Path to the .apk or .aab file. If not provided, checks the existing lane for Gradle Output Paths

No

gms

Y if your build includes the Google Play Services SDK, N otherwise. Rarely changes between releases — hardcode it in your Fastfile

Yes

*May also be set using environment variables or explicit parameters — see Authentication.

This action handles the full upload flow automatically:

  1. Opens an update draft for the app (using the contentUpdate Content Publish API)
  2. Creates an upload session ID
  3. Uploads the binary file
  4. Registers the binary against the content ID (using the binary Content Publish API to add the binary)

Results

galaxy_store_upload_apk returns the binarySeq (string) of the newly added binary or nil if the response from the binary Content Publish API did not include the binarySeq.

Lane context

Sets SharedValues::GALAXY_STORE_BINARY_SEQ to the same value, so galaxy_store_update_staged_rollout_binary can pick it up automatically when chained.