This is a simple tool to upload android apk builds to play store. Suitable for automation of play store uploads in a CI system.
- Java (JRE) 8 or above
- Download the latest zip or tar archive from Releases Section.
- Unpack archive contents to any location.
- Execute the binaries in
bin
directory. On unix usePlayStoreUploader
, while on windows usePlayStoreUploader.bat
.
Ensure that the app is created on Play Store. Setup Play Store listing and other required information so that release management is enabled and new releases can be published. It is advised to do a manual upload and release at least once in the beginning.
Play Store allows to upload apps on release tracks like alpha, beta and production. Enable and setup the track you want to use, on Play Store console.
To access Play Store API a JSON key file is needed. On Play Store, goto API Access section and configure a service account with Play Store API access. Download and save the JSON credentials of this account.
Build signed production android apk file to upload. In case of a CI server, this file should be already generated.
Execute the binary, passing required data in arguments.
PlayStoreUploader -key "key.json" -apk "app.apk" -track "alpha" -name "myApp" -notes "new release"
Running without any arguments will print available argument options.
Options:
-apk VAL : The apk file to upload
-key VAL : JSON key file of authorized service account
-name VAL : (optional) App name on Play Store (defaults to name in apk)
-notes VAL : (optional) Release notes
-notesFile VAL : (optional) Release notes from file
-track VAL : Release track to use. Eg. alpha, beta, production etc
To build:
./gradlew clean assemble
To run:
./gradlew run --args "...arguments"
Pull requests and suggestions are welcome.