Google Play

Version history

This feature is part of Mobile DevOps developed by GitLab Incubation Engineering. The feature is still in development, but you can:

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 left sidebar, select Search or go to and find your project.
  2. Select Settings > Integrations.
  3. Select Google Play.
  4. In Enable integration, select the Active checkbox.
  5. In Package name, enter the package name of the app (for example, com.gitlab.app_name).
  6. Optional. Under Protected branches and tags only, select the Only set variables on protected branches and tags checkbox.
  7. In Service account key (.JSON), drag or upload your key file.
  8. Optional. Select Test settings.
  9. Select Save changes.

After you enable the integration, the global variables $SUPPLY_PACKAGE_NAME and $SUPPLY_JSON_KEY_DATA are 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'
)