uploading test builds to google play console
Deploying Android apps to Bitrise and Google Play
This guide describes how you can add your Android project to bitrise.io and deploy the APK or AAB built from your project to Google Play Store.
You lot need a new service account created in the Google Play Console so that Bitrise can cosign with Google Play Deploy during your build. The new service account has to be invited to Google Play Console as a user with the advisable permission.
To ready your project for the offset fourth dimension:
-
Annals a Google Play Developer Account. If yous already have a Google Play Developer account, and have already deployed your app to Google Play Store, skip to Setting upwards Google Play API access.
-
Become through Setting up Google Play deployment for the start time.
Setting up Google Play API admission
Grant the Google Play API access to your projection by either creating a new API project or linking an existing API project. In this tutorial, nosotros're creating a new one.
-
Become to your Google Play Panel and click Settings . Click API access on the left menu bar. On the Linked Google Cloud projection folio, select Create new projection option.
-
On the API access page, ringlet down to Service accounts and click Create a new service account . Follow the instructions to get to Google Deject Platform.
-
On the Google Cloud Platform, click + CREATE SERVICE Account on the height carte du jour bar.
-
A 3-step Create service business relationship folio comes up, where you take to provide a Service account proper noun get-go. A Service account ID is automatically generated based on the Service account name you typed.
-
At the Grant this service business relationship access to projection step, select
Browser
in the Role dropdown. Although the second and third steps of the procedure are marked optional on Google Cloud Platform, those are essential for Bitrise to be able to utilise the service account access. -
Fill out the Service account user role and Service account admins role fields of the Grant users access to this service account step. Hit DONE .
-
You land back on the API Admission folio of the Google Play Console where you can create a central to your new service account. Bitrise will use the key to authenticate every bit the service account. Click the ellipsis next to the new service account and select Manage keys from the options.
-
Yous are directed to the KEYS folio of the Service accounts . Click the Add together Central dropdown and select Create new key option.
-
Select JSON equally your Key type . Click CREATE . In one case you created a key here, it automatically downloads to your local machine and y'all can upload information technology to the Code Signing tab of Bitrise. Y'all may close your Google Cloud Platform window as we won't demand it any more.
-
You are landing back on the API admission page of Google Play Panel where you lot can run into your new service account under Service accounts . Click Grant admission to link your project to the Google Console. The Google Cloud Platform (GCP) service account volition be invited as a user to the Google Play Panel, and so GCP volition have access to your apps in Play Console. Bitrise uses this service business relationship to make changes in the Google Play Console.
-
In the Invite user window, the Email accost field is pre-filled. Nether Permissions , the default ones are already selected. Y'all can go with these. Click Invite user at the bottom of the page.
Check out the Google Play Programmer API guide if yous need more than information on the process.
You have successfully prepared your Google Play Console projection. A services credential account has been created which is authorized to manage your releases.
Setting upward Google Play deployment for the first time
Deploying to Google play publishes your app to Google'south online store. When you do information technology for the first time, this requires a chip more than work than simply deploying to bitrise.io. Once the necessary configurations are in place, it becomes very simple.
When configuring Google Play deployment for the starting time time, y'all need to link your Google Play Developer account to an API project, set up API access, and upload the service account JSON key to Bitrise.
-
Upload the first AAB or APK manually to Google Play using the Google Play Console.
-
Link your Google Play Programmer Console to an API project.
-
Gear up API Admission Clients using a service business relationship: Please annotation when you create your service account on the Google Developer Console, y'all accept to cull
json
as Key Type . -
Grant the necessary rights to the service business relationship with your Google Play Console. Go to Settings , and then Users & permissions , then Invite new user . Due to the way the Google Play Publisher API works, yous have to grant at least the following permissions to the service account:
-
Admission level: View app information.
-
Release management: Manage production releases, manage testing track releases.
-
Shop presence: Edit store listing, pricing & distribution.
-
-
As an optional step, you can add translations to your Store Listing: Translate & localize your app.
-
Open your app on Bitrise.
-
Become to the Workflow tab.
-
Go to the Lawmaking Signing tab and upload the service business relationship JSON cardinal into the GENERIC FILE STORAGE .
Deploying an Android app to bitrise.io
In this section, we'll go through how to deploy your Android app to bitrise.io.
Deploying to bitrise.io means that the build artifacts generated during the build will exist available for download once the build is finished. You lot can utilize this to test your app on your own test devices, for instance.
To deploy your app to bitrise.io:
-
Make certain your Workflow contains the Android Build Step to build your app.
Optionally, yous tin can build your app with the Gradle Runner Step. This requires a bit more configuration from you just allows for more extensive customization.
-
Add the Deploy to Bitrise.io Step to your Workflow.
Tip
You tin utilize the Notify: User Roles and the Notify: Emails inputs of the Step to set up notifications nigh your deploy.
You tin can share the generated binary with your squad members using the build's URL.
Deploying to Google Play
Deploying to Google Play requires a signed APK or AAB file and the Google Play Deploy Stride.
-
If yous're trying to deploy your app for the first fourth dimension, make certain your Google Play configuration is fix upwardly correctly.
-
Open your app on Bitrise.
-
Get to the Workflow tab.
-
Get to the Code Signing tab and copy the Surround Variable fundamental which stores your uploaded the service account JSON key file'southward URL.
-
Copy the Environs Variable fundamental which stores your uploaded file'due south URL.
For instance:
BITRISEIO_SERVICE_ACCOUNT_JSON_KEY_URL
. -
Open your Workflow and add the Google Play Deploy Pace to it.
-
In the Service Account JSON central file path input, paste the Environment Variable which was generated when you uploaded the service account JSON primal in the GENERIC FILE STORAGE . Also the generated Env Var, you lot can likewise add together a file path right in the Step's input field where the file path tin be local or remote too:
-
For remote JSON central file you can provide any download location as value, for example,
https://URL/TO/primal.json
. -
For local JSON key file you can provide a file path url as value, for example,
file://PATH/TO/central.json
.
-
-
In the Package name input, add together the parcel name of your app.
-
In the Track input, add the track where y'all want to deploy your APK (for example, alpha/beta/rollout/production or any custom rail yous set).
That's all! Start or schedule a build and share the URL with external testers or distribute your app on an app shop of your selection!
Source: https://devcenter.bitrise.io/en/deploying/android-deployment/deploying-android-apps-to-bitrise-and-google-play.html
Post a Comment for "uploading test builds to google play console"