For scripting purposes I want to be able to do nightly builds and upload .AAB to my closed testing channel.
Is it possible to do this from a command line or am I stuck using a human to point and click on Google Developer Console?
CodePudding user response:
For automating uploading/deployment of Android apps, probably as part of a CI/CD system rather than command line, Google provides a Google Play Developer Publishing API
Publishing API
The Google Play Developer Publishing API allows you to automate frequent tasks having to do with app production and distribution. This provides functions similar to those available to a developer through the Play Console, such as:
Uploading new versions of an app
Releasing apps, by assigning APKs to various Tracks (alpha, beta, staged rollout, or production)
Creating and modifying Google Play Store listings, including localized text and graphics and multi-device screenshots
Those tasks are performed using the new edits functionality, which take a transactional approach to making changes; you bundle several changes into a single draft edit, then commit the changes all at once. (None of the changes take effect until the edit is committed.)
Documentation does have a Getting Started section with details on APKs and tracks. Additionally check API Usage limitations as well as upload requirements