Gradle Play Publisher Plugin
-
Upload
daniel-kao -
Category
Software
-
view
829 -
download
0
Transcript of Gradle Play Publisher Plugin
![Page 2: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/2.jpg)
Android developer (but writing server codes now…
Self developed apps
AutoScreenOnOff
書法加
Who am I
![Page 3: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/3.jpg)
Why What is it How Demo time (if there’s still time… Reference
Agenda
![Page 4: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/4.jpg)
Manually uploading apk and updating store listing is Tedious Error-prone Difficult to control versions of store listing data
With the plugin, you can Do it with one command Use any VCS to keep track of your data Integrate it into your deploy server
Why
![Page 5: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/5.jpg)
A Gradle plugin to upload your APK and app details to the Google Play Store.
What is it?
![Page 6: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/6.jpg)
URL: https://developers.google.com/android-publisher/#publishing
Features Upload new versions of an app Release apps to (alpha, beta, staged rollout,
production) Create/modify Store listings
Available languages Java, Python, REST APIs
Google Publishing API
![Page 7: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/7.jpg)
Create Google Service Account Setup plugin in build.gradle
How
![Page 8: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/8.jpg)
Go to the API Access page on the Google Play Developer Console.
Create Google Service Account
![Page 9: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/9.jpg)
API Manager
New Credentials
![Page 10: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/10.jpg)
Create service account key
![Page 11: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/11.jpg)
Create new service or use a new one Choose either key type Save the downloaded file for later use
![Page 12: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/12.jpg)
Grant Access
Create Google Service Account
![Page 13: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/13.jpg)
Accept it
New Credentials (cont’d)
![Page 14: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/14.jpg)
Check necessary permissions
Grant Permissions
![Page 15: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/15.jpg)
Add dependency
Apply the plugin
Setup build.gradle
![Page 16: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/16.jpg)
Configure play section
Setup build.gradle (cont’d)
![Page 17: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/17.jpg)
Extra settings
Setup build.gradle (cont’d)
Setting DescriptionerrorOnSizeLimit = false
Do not check text length limit
track = 'production' Or ‘beta, ‘alpha’, ‘rollout’userFraction = 0.2 Only works for ‘rollout’ track. It means the
portion of users who should get the staged rollout version of the APK.
uploadImages = true Default is false
![Page 18: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/18.jpg)
Task Name Description
bootstrapReleasePlayResources
Fetches all existing data from the Play Store to bootstrap the required files and folders.
publishApkRelease Uploads the APK and the summary of recent changes.
publishListingRelease Uploads the descriptions and images for the Play Store listing.
publishRelease Uploads everything.
What’s been offered.
![Page 19: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/19.jpg)
Directory Tree
![Page 20: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/20.jpg)
Directory Tree II
![Page 21: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/21.jpg)
Need to upload first release through web so that it knows the package id
Tips
![Page 22: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/22.jpg)
Demo
![Page 23: Gradle Play Publisher Plugin](https://reader035.fdocuments.net/reader035/viewer/2022081502/587ac3361a28abc0478b7459/html5/thumbnails/23.jpg)
Publishing API https://developers.google.com/android-publisher/#publishing Client library samples from Google https://developers.google.com/android-publisher/libraries
Gradle Play Publisher Plugin Github https://github.com/Triple-T/gradle-play-publisher
Reference