Code Monkey home page Code Monkey logo

googleplayconsoleuploader's Introduction

GooglePlayConsoleUploader

About

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.

Setup service account

Create new service account

Go to Service Accounts section in Google Cloud Platform and create new Service Account.

Generate new json service account key file

Select created service account and under Key section create new private json key file.

Assign role for a service account

Go to IAM section in Google Cloud Platform, select service account and assign it Project > Editor role.

Assign permissions for a service account in Google Play Console

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 options

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
Print tool version to stdout and exit
-version
Credentials and core arguments
-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
Upload APK to Google Play Console
-apkFile "/path/to/app.apk"
Upload AAB to Google Play Console
-aabFile "/path/to/app.aab"
-ackBundleInstallationWarning #Must be set if the bundle installation may trigger a warning on user devices
Upload symbols and assign them to specified version
-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
Release specified version to internal track
-releaseToInternalTrack
-releaseNotesFile "path/to/releaseNotes.txt" #Release notes for the release in 'en-US' localization (default: null)

Releases

Latest release: 2.0.0

googleplayconsoleuploader's People

Contributors

chorobochrontochor avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.