This repository is no longer maintained.
Gradle Plugin to upload APK and Proguard mapping file to Google Play Developer Console.
Add dependencis to project build.gradle.
buildscript {
repositories {
jcenter()
}
dependencies {
// ...
// Add
classpath 'com.star_zero:gradle-play-uploader:1.0.0'
}
}
Add apply plugin to module build.gradle. (e.g. app/build.gradle
)
apply plugin: 'com.star-zero.gradle-play-uploader'
The plugin creates playUpload
Task.
Add configure to module build.gradle.
play {
credentialJson = 'credential.json'
apk = 'app/build/outputs/apk/app-release.apk'
track = 'beta'
mapping = 'app/build/outputs/mapping/release/mapping.txt'
}
$ ./gradlew playupload
Required.
Set Google Developers Service Account credential JSON file path.
See this(fastlane).
TODO: Write by myself later.
Required.
APK file path
Required.
production
or rollout
or beta
or alpha
Details see this.
Optional.
If you need upload proguard mapping file, set mapping.txt file path.
If track
is rollout
, Required.
Set the percentage of users to publish. (e.g. 0.1 = 10%)
Only greater than 0 and less than 1.
Details see this.
MIT
See LICENSE