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.
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")
}
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
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
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
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.
Find this demo useful? Support it by joining stargazers for this repository ⭐️
And follow me for my next creations 👍