Google Play

Introduced in GitLab 15.10 with a flag named google_play_integration. Disabled by default.

On self-managed GitLab, by default this feature is not available. To make it available, ask an administrator to enable the feature flag named google_play_integration. On GitLab.com, this feature is not available.

With the Google Play integration, you can configure your CI/CD pipelines to connect to the Google Play Console to build and release apps for Android devices.

The Google Play integration works out of the box with fastlane. You can also use this integration with other build tools.

Enable the integration in GitLab

Prerequisites:

To enable the Google Play integration in GitLab:

  1. On the top bar, select Main menu > Projects and find your project.
  2. On the left sidebar, select Settings > Integrations.
  3. Select Google Play.
  4. In Enable Integration, select the Active checkbox.
  5. In Service account key (.JSON), drag or upload your key file.
  6. Select Save changes.

After you enable the integration, the global variable $SUPPLY_JSON_KEY_DATA is created for CI/CD use.

CI/CD variable security

Malicious code pushed to your .gitlab-ci.yml file could compromise your variables, including $SUPPLY_JSON_KEY_DATA, and send them to a third-party server. For more information, see CI/CD variable security.

Enable the integration in fastlane

To enable the integration in fastlane and upload the build to the given track in Google Play, you can add the following code to your app’s fastlane/Fastfile:

upload_to_play_store(
  track: 'internal',
  aab: '../build/app/outputs/bundle/release/app-release.aab'
)