I found this question for iOS
and basically worry about the same thing for Android
.
As part of the countinues integration process of my Android
application, I want to create a process that will automatically upload the app (.apk
) file to the Google PlayStore
.
I found this website explaining how to create an .apk
automated.
So I wonder if there is a way to upload the .apk
file to the PlayStore
via command line?
Thanks!
These days you can do this fairly easily with Gradle Play Publisher:
plugins {
id 'com.android.application'
id 'com.github.triplet.play' version 'x.x.x'
}
android {
...
}
play {
serviceAccountCredentials = file("your-credentials.json")
}
Then it's as simple as running ./gradlew publishApk
.
This API should do it, as long as you are not publishing new app, but new version of an existing app. I've not used it yet though. https://developers.google.com/android-publisher/
You could also use Jenkins, there is Jenkins plug-in for this purpose: https://wiki.jenkins-ci.org/display/JENKINS/Google+Play+Android+Publisher+Plugin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With