Android Credentials

Creating Android credentials is slightly more straightforward and is a little quicker as we don't need to use Google's web services quite as much.

Creating Your Upload Certificate

The upload certificate is used to sign builds of your app and verifies with Google that builds, again, have been created only by someone authorized by you.

The certificate is store in a .jks file (Java Keystore), and this is what you will upload to Bifrost.

Creating the JKS

Inside your NativePHP project, run the following command and follow the prompts in your terminal:

php artisan native:credentials android

Once you've completed all the steps, you're ready to assign it to your project.

The native:credentials command will have created a new credentials folder in the root of your project (if it didn't already exist) and added the JKS (.jks file) in there.

You will upload this into Bifrost a little later.

Play Console API (Google Service Account)

If you want Bifrost to upload builds directly into your Play Console account, you will need to provide a Google Service Account key file.

Create a Project

First, you will need to create a project in Google Cloud Console. You can call this project whatever you like.

If possible, it's good practice to create this project under the same Google account that your Play Console account is a part of.

Enable API Access

Switch to your new project from the project picker and enable the Google Play Android Developer API

Create a Service Account

From the main Google Cloud Console menu, go to IAM & Admin and select the Service Accounts submenu.

Click + Create service account (next to the Service accounts heading at the top).

Give the service account a name and continue. We can skip the rest of the options.

Take a note of the Service Account email address as we will use this in the next step.

Create a Key

While we're in the Service Accounts section, you need to create a key for the service account. Click the Actions menu (3 dots on the right of the row) and select Manage keys.

Click Add key, Create new key, select JSON and click Create.

The file will be downloaded automatically. Move it to your app's credentials folder.

Invite the Service Account to Play Console

Login to your Play Console and go to Users and permissions.

Click Invite new users and invite the email address of the Service Account that you just created into the Email address field.

Enable all of the following permissions:

  • Draft apps
  • Releases
  • Store presence

Upload Credentials to Bifrost

Go to your app's Credentials screen and, under the Android section, click + Add Application Identifier.

Follow the guided steps and upload the necessary credentials at each point. These will be validated to ensure they're correct before you can proceed to the next stage.

Once you've finished adding your credentials, you can create builds and Ship It!