- Create a Git repository (not TFVC) in VSTS, possibly with a new Team Project, up to you.
- Create your app in Android Studio and add it to the Git repository.
- Create your Key Store (or import an existing one) with Android Studio.
- In order to be able to sign your APK and deploy it (with any tool, but in this case VSTS), you'll need the following 3 pieces of information:
- The Key Store password
- The Key alias
- The Key password
- Ensure that you've imported the "Manifest Versioning Build Tasks" extension to your VSTS account from the VSTS Marketplace.
- Configure and execute an automated build for your application using the default steps provided by VSTS when creating a new build by applying the Android build template.
- Add to the default build templae a "Manifest Versioning Build Tasks" step to automatically generate your application version from the build.
- In your Google account, do the following:
- Ensure that you've gone to the Google Play Console page and created a Developer Page.
- Once you've created the Service Account below, you'll need to come back here to the Play Console and grant access with "RELEASE MANAGEMENT" permissions, ensuring that you also have the "Release manager" role selected.
- ENSURE THAT YOU'VE COMPLETED ALL THE WARNINGS IN THE NAVIGATION PANE IN THE GOOGLE PLAY CONSOLE, OTHERWISE YOU WON'T BE ABLE TO ROLL-OUT ANY OF YOUR RELEASES.
- Ensure that you've gone to the Google API Console and created a Service Account for publishing your app to the Google Play store.
- NOTE: You'll need to export your key in JSON format so that the email and key fields within the JSON object can be used to configure your Google Play endpoint in VSTS
- Ensure that you've imported the Microsoft "Google Play" extension into your VSTS account from the Marketplace.
- Configure your automated Release in VSTS. Execute the following steps:
- Add an "Android Signing" step to your release to sign one of the *unsigned* APKs from your build.
- Add a "Google Play - Release" step to your release. You'll need the keystore information mentioned above, as well as the keystore *.jks file to upload to VSTS in the "Google Play - Release" step.
- Now that your release is configured, you'll have to to a manual build on your developer (just once) to product a signed APK with the keystore, and then manually upload the signed APK file to the Google Play Console to an Alpha release in order to associate your applicationId (in the ApplicationManifest.xml app manifest file) to your product in the Play Store.
Saturday, January 20, 2018
General workflow for publishing an Android app to the Google Play store when developing with VSTS
Labels:
android,
app,
google play,
microsoft,
publish,
release,
release management,
studio,
vsts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment