Releases: rakeshgirase/app-release-manager
Upgrade to the latest Google API
This release is to move away from deprecated classes and upgrade to latest google API. Following are the changes done for this release:
- Upgrade to latest Google API
- Remove deprecated dependencies
- Improved logging
- Slashed the application footprint
Enjoy the automation!
Cheers,
Rakesh
Accomodate new Google API specs
Google Play Store Publisher
This is a simple tool to upload android apk files to play store which is inspired from https://github.com/codebysd/java-play-store-uploader.
Suitable for automation of play store uploads in a CI system.
Requirements
- Java (JRE) 8 or above
Install
- Download the latest jar file from Releases Section.
- Place it in root folder of your application. You can check in the file for Cloud build.
- Use command java -jar release-manager-1.2.jar -key "key.json" -file "app.apk" -track "internal" -name "myApp" -notes "new release". (You can use this command in your cloud build config file)
Usage
1. Setup Play Store
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.
2. Setup Release Tracks
Play Store allows to upload apps on release tracks like internal, alpha, beta and production. Enable and setup the track you want to use, on Play Store console.
3. Get Service Account Key
To access Play Store API a JSON key file is needed.
i. Create Service Account:
https://developers.google.com/android/management/service-account
Download key.json:
ii. Go to https://console.developers.google.com/apis/credentials
iii. Select "Create credentials" > "Service Account key" and generate a new key for the Service that is associated to your Google Play service account.
4. Build apk or aab file
Build signed production android apk or aab file to upload. In case of a CI server, this file should be already generated.
4. Run Upload Command
Execute the binary, passing required data in arguments.
- APK File
java -jar release-manager-1.2.jar -key "key.json" -file "app.apk" -track "internal" -name "myApp" -notes "new release"
- AAB File
java -jar release-manager-1.2.jar -key "key.json" -file "app.aab" -track "internal" -name "myApp" -notes "new release" -name appName -packageName app.package.name
CLI Options
Running without any arguments will print available argument options.
Options:
-apk VAL : The apk file to publish
-key VAL : JSON key file of authorized service account
-name VAL : (optional) AndroidPublisher 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. internal, alpha, beta or production
-packageName VAL : (optional for apk) App Package Name
Development
To build:
mvn clean install
Pull requests and suggestions are welcome.
AAB and APK File Support
Google Play Store Publisher
This is a simple tool to upload android apk files to play store which is inspired from https://github.com/codebysd/java-play-store-uploader.
Suitable for automation of play store uploads in a CI system.
Requirements
- Java (JRE) 8 or above
Install
- Download the latest jar file from Releases Section.
- Place it in root folder of your application. You can check in the file for Cloud build.
- Use command java -jar release-manager-1.1.jar -key "key.json" -file "app.apk" -track "internal" -name "myApp" -notes "new release". (You can use this command in your cloud build config file)
Usage
1. Setup Play Store
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.
2. Setup Release Tracks
Play Store allows to upload apps on release tracks like internal, alpha, beta and production. Enable and setup the track you want to use, on Play Store console.
3. Get Service Account Key
To access Play Store API a JSON key file is needed.
i. Create Service Account:
https://developers.google.com/android/management/service-account
Download key.json:
ii. Go to https://console.developers.google.com/apis/credentials
iii. Select "Create credentials" > "Service Account key" and generate a new key for the Service that is associated to your Google Play service account.
4. Build apk or aab file
Build signed production android apk or aab file to upload. In case of a CI server, this file should be already generated.
4. Run Upload Command
Execute the binary, passing required data in arguments.
- APK File
java -jar release-manager-1.1.jar -key "key.json" -file "app.apk" -track "internal" -name "myApp" -notes "new release"
- AAB File
java -jar release-manager-1.1.jar -key "key.json" -file "app.aab" -track "internal" -name "myApp" -notes "new release" -name appName -packageName app.package.name
CLI Options
Running without any arguments will print available argument options.
Options:
-apk VAL : The apk file to publish
-key VAL : JSON key file of authorized service account
-name VAL : (optional) AndroidPublisher 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. internal, alpha, beta or production
-packageName VAL : (optional for apk) App Package Name
Development
To build:
mvn clean install
Pull requests and suggestions are welcome.
Initial Release
Initial Release