23
Gradle Play Publisher Plugin Daniel Kao <[email protected]>

Gradle Play Publisher Plugin

Embed Size (px)

Citation preview

Page 1: Gradle Play Publisher Plugin

Gradle Play Publisher Plugin

Daniel Kao <[email protected]>

Page 2: Gradle Play Publisher Plugin

Android developer (but writing server codes now…

Self developed apps

AutoScreenOnOff

書法加

Who am I

Page 3: Gradle Play Publisher Plugin

Why What is it How Demo time (if there’s still time… Reference

Agenda

Page 4: Gradle Play Publisher Plugin

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

A Gradle plugin to upload your APK and app details to the Google Play Store.

What is it?

Page 6: Gradle Play Publisher Plugin

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

Create Google Service Account Setup plugin in build.gradle

How

Page 8: Gradle Play Publisher Plugin

Go to the API Access page on the Google Play Developer Console.

Create Google Service Account

Page 9: Gradle Play Publisher Plugin

API Manager

New Credentials

Page 10: Gradle Play Publisher Plugin

Create service account key

Page 11: Gradle Play Publisher Plugin

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

Grant Access

Create Google Service Account

Page 13: Gradle Play Publisher Plugin

Accept it

New Credentials (cont’d)

Page 14: Gradle Play Publisher Plugin

Check necessary permissions

Grant Permissions

Page 15: Gradle Play Publisher Plugin

Add dependency

Apply the plugin

Setup build.gradle

Page 16: Gradle Play Publisher Plugin

Configure play section

Setup build.gradle (cont’d)

Page 17: Gradle Play Publisher Plugin

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

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

Directory Tree

Page 20: Gradle Play Publisher Plugin

Directory Tree II

Page 21: Gradle Play Publisher Plugin

Need to upload first release through web so that it knows the package id

Tips

Page 22: Gradle Play Publisher Plugin

Demo

Page 23: Gradle Play Publisher Plugin

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