Skip to content

aman-jham/gradle-play-publisher-demo

Repository files navigation

Gradle Play Publisher Demo

This is very useful plugin for building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata in google play console.

Step 1 - Add Gradle Play Publisher Dependency

Open your build.gradle (Project Level) file, add the following to the very top.

buildscript {
    repositories {
         maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    }
    dependencies {
          classpath 'com.github.triplet.gradle:play-publisher:2.8.0-SNAPSHOT'
    }
}

Open your app/build.gradle (Module: app) file, add the following to the very top.

apply plugin: 'com.github.triplet.play'

play {
    serviceAccountCredentials = file("your-server-acount-key.json")
}

Step 2 - For Retrieve Play store listing assets

Download all play store listing such as icon, feature-graphic, promo-graphic, tablet-screenshots, large-tablet-screenshots, tv-banner , tv-screenshots, wear-screenshots, title, short description, detailed description.

./gradlew bootstrap --product

Step 3 - For Updating the Play store listing

Using this command can update the play store listing such as icon, feature-graphic, promo-graphic, tablet-screenshots, large-tablet-screenshots, tv-banner , tv-screenshots, wear-screenshots, title, short description, detailed description.

./gradlew publishProducts

Logo

Logo

More info can be also be found in the Gradle Play Publisher.

To get the Service Account json key follow this Google Play Developer API

LIMITATION

The first APK or App Bundle needs to be uploaded via the Google Play Console because registering the app with the Play Store cannot be done using the Play Developer API. For all subsequent uploads and changes, GPP may be used.

SUPPORT ❤️

Find this demo useful? Support it by joining stargazers for this repository ⭐️
And follow me for my next creations 👍

About

Gradle Play Publisher Demo For Google Play Console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages