debian-mirror-gitlab/doc/user/project/integrations/google_play.md
2023-07-09 08:55:56 +05:30

3.1 KiB

stage group info
Manage Import and Integrate To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments

Google Play (FREE)

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 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 Package name, enter the package name of the app (for example, com.gitlab.app_name).
  6. In Service account key (.JSON), drag or upload your key file.
  7. 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'
)