download_universal_apk_from_google_play
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: android
Download the Universal APK of a given version code from the Google Play Console
Details
Download the universal APK of a given version code from the Google Play Console.
This uses fastlane supply (and the AndroidPublisher Google API) to download the Universal APK
generated by Google after you uploaded an .aab bundle to the Play Console.
See https://developers.google.com/android-publisher/api-ref/rest/v3/generatedapks/list
Parameters & Options
Total options available: 8
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
package_name |
String |
SUPPLY_PACKAGE_NAME |
- |
Yes | The package name of the application to use |
version_code |
Integer |
SUPPLY_VERSION_CODE |
- |
No | The versionCode for which to download the generated APK |
json_key |
String |
SUPPLY_JSON_KEY |
- |
No | The path to a Google credentials JSON file (Application Default, Workload Identity, or Service Account), used to authenticate with Google |
json_key_data |
String |
SUPPLY_JSON_KEY_DATA |
- |
No | The raw content of a Google credentials JSON file (Application Default, Workload Identity, or Service Account), used to authenticate with Google |
root_url |
String |
SUPPLY_ROOT_URL |
- |
No | Root URL for the Google Play API. The provided URL will be used for API calls in place of https://www.googleapis.com/ |
timeout |
Integer |
SUPPLY_TIMEOUT |
300 |
No | Timeout for read, open, and send (in seconds) |
destination |
String |
DOWNLOAD_UNIVERSAL_APK_DESTINATION |
- |
Yes | The path on disk where to download the Generated Universal APK |
certificate_sha256_hash |
String |
DOWNLOAD_UNIVERSAL_APK_CERTIFICATE_SHA256_HASH |
- |
No | The SHA256 hash of the signing key for which to download the Universal, Code-Signed APK for. Use ‘xx:xx:xx:…’ format (32 hex bytes separated by colons), as printed by keytool -list -keystore <keystorefile>. Only useful to provide if you have multiple signing keys configured on GPC, to specify which generated APK to download |
Source & Upstream
- Gem Action:
download_universal_apk_from_google_play.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
Automattic