GooglePlayConsoleUploader is a command-line tool primarily designed for automated uploading of APKs, AABs and deobfuscation files. In addition, it allows you to release uploaded version to internal track.
This tool is using AndroidPublisher v3 API. You can read more about it here.
Tool currently supports only service account authentication with a json service account key file.
Tool is transaction based so if anything fails all changes will be discarded.
Go to Service Accounts section in Google Cloud Platform and create new Service Account.
Select created service account and under Key section create new private json key file.
Go to IAM section in Google Cloud Platform, select service account and assign it Project > Editor role.
Go to API Access section in Google Play Console, select service account under Service Accounts section and assign permissions for each project you want to manage with this service account.
GooglePlayConsoleUploader has few option which can be combined and they are executed in following order:
- Print tool version to stdout and exit
- Upload APK or AAB
- Upload deobfuscation file for specified version
- Release specified version to internal track
-version
-serviceAccountKeyFile "path/to/serviceAccountKeyFile.json"
-httpTimeout 300 #Http timeout in seconds (default: 120)
-packageName "com.test.TestApp" #Application id of your app
-versionCode 123 #Current application version code
-apkFile "/path/to/app.apk"
-aabFile "/path/to/app.aab"
-ackBundleInstallationWarning #Must be set if the bundle installation may trigger a warning on user devices
-nativeDebugSymbolsFile "/path/to/app.symbols.zip" #Optional
-reTraceMappingFile "/path/to/app.mapping.txt" #Optional
-skipDeobfuscationFileUploadWhenFileSizeLimitIsExceeded #Must be set if you want to skip deobfuscation file upload which will probably fail. Limit is set to 300MB
-releaseToInternalTrack
-releaseNotesFile "path/to/releaseNotes.txt" #Release notes for the release in 'en-US' localization (default: null)
Latest release: 2.0.0