Crates.io | gplay |
lib.rs | gplay |
version | 1.0.1 |
source | src |
created_at | 2023-10-28 19:29:04.902673 |
updated_at | 2023-10-28 21:23:46.575899 |
description | Google Play Tool |
homepage | |
repository | https://github.com/jlyonsmith/gplay |
max_upload_size | |
id | 1017146 |
size | 77,034 |
This is a command line tool to enable you to upload Android .aab
bundle files to the Google Playstore as part of your automated build process. The goal is something similar to the xcrun altool
tool for iOS. It has some additional features to allow you to list the existing bundle versions and the available test tracks. It makes use of the Google Play Developer API.
After cargo install gplay
, run gplay --help
to see the available options. After your build completes you'll do something like this:
gplay upload --cred-file ~/.playstore/your-name-32f41bf78d1a.json --package-name com.your-name.your-app --bundle-file ./build/app/outputs/bundle/appRelease/app-release.aab --track-name internal
The tool uses the simple, non-restartable upload approach, so you will need to increase the timeout for large bundle files. The default timeout works well for bundles in the <50MB range on an 100Mbit network connection.
This tool uses the Google Play Android Developer API in Google Cloud to upload new bundle builds. Setting up Google Cloud is a bit overwhelming.
It is important to note how Google does app versioning. While your app will likely have a semantic version (major, minor, patch), each bundle build needs to have a unique integer version number, across all releases of the app. You cannot upload the same bundle version more than once. Bundle version numbers can be uploaded in any order, they just need to be unique. You'll need to figure out how this works in the context of your build and branching system.
Here is a general summary of the steps you will need to take.
1
manually. If anyone from Google is reading this, this is an annoying restriction and should be fixed..json
containing the login credentials. Put it somewhere safe and chmod o=
to make sure only you have access.gplay list-bundles
command.Once this is done you can use the upload
sub-command to upload your binaries to publish a new build to a given test track. Then you can go to the Play Console UI and move the build through the release tracks as needed.
Pull requests welcome for the following features: