Skip to content

Commit b4521d6

Browse files
authored
Google play credential rename (#3104)
* split android code signing section to build.gradle and build.gradle.kts * update GCLOUD_SERVICE_ACCOUNT_CREDENTIALS to GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS
1 parent 10f92b6 commit b4521d6

24 files changed

Lines changed: 36 additions & 36 deletions

content/flutter-configuration/env-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ CM_KEYSTORE | contents of keystore - [`base64 encoded`](#storing-binary-files) |
101101
CM_KEYSTORE_PASSWORD | Put your keystore password here | keystore_credentials
102102
CM_KEY_PASSWORD | Put your key alias password here | keystore_credentials
103103
CM_KEY_ALIAS | Put your key alias here | keystore_credentials
104-
GCLOUD_SERVICE_ACCOUNT_CREDENTIALS | Put your Google Play service account credentials here | google_play_credentials
104+
GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS | Put your Google Play service account credentials here | google_play_credentials
105105
GOOGLE_PLAY_TRACK | Any default or custom track that is not in ‘draft’ status | google_play_credentials
106106
PACKAGE_NAME | Put your package name here | other
107107

content/knowledge-codemagic/build-inputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ workflows:
189189
- flutter build apk --build-number="${{ inputs.buildNumber }}" --release
190190
publishing:
191191
google_play:
192-
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
192+
credentials: $GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS
193193
in_app_update_priority: ${{ inputs.googlePlayInAppUpdatePriority }}
194194
release_promotion:
195195
track: alpha

content/knowledge-codemagic/build-versioning.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Alternatively, if you use `YAML` configuration, you may just export the value to
216216

217217
Use [`google-play get-latest-build-number`](https://github.com/codemagic-ci-cd/cli-tools/blob/master/docs/google-play/get-latest-build-number.md#get-latest-build-number) action from Codemagic CLI tools to get the latest build number from Google Play Console.
218218

219-
In order to do that, you need to provide Google Play API access credentials by providing `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS` as arguments to the action, as defined below.
219+
In order to do that, you need to provide Google Play API access credentials by providing `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS` as arguments to the action, as defined below.
220220

221221
Additionally, you will need to provide the package name of the app in Google Play Console (Ex. `com.example.app`).
222222

@@ -232,7 +232,7 @@ You will need to set up a service account in Google Play Console and create a JS
232232
{{< tab header="codemagic.yaml" >}}
233233
{{<markdown>}}
234234
1. Open your Codemagic app settings, and go to the **Environment variables** tab.
235-
2. Enter the `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS` as **_Variable name_**.
235+
2. Enter the `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS` as **_Variable name_**.
236236
3. Copy and paste the credentials content as **_Variable value_**.
237237
4. Enter the variable group name, e.g. **_google_play_credentials_**. Click the button to create the group.
238238
5. Make sure the **Secure** option is selected.
@@ -250,7 +250,7 @@ You will need to set up a service account in Google Play Console and create a JS
250250

251251
{{% tab header="Flutter workflow editor"%}}
252252

253-
Add the `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS` environment variable to your Flutter project in **App settings > Environment variables** (See the details [here](../flutter-configuration/env-variables)).
253+
Add the `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS` environment variable to your Flutter project in **App settings > Environment variables** (See the details [here](../flutter-configuration/env-variables)).
254254
{{% /tab %}}
255255
{{< /tabpane >}}
256256

@@ -320,7 +320,7 @@ scripts:
320320

321321
#### Get the build number in the Flutter workflow editor
322322

323-
Provided you have exported your Google Play Console service account credentials as an environment variable `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS`, you can call it immediately as a build argument to your Android build command to increment the build number:
323+
Provided you have exported your Google Play Console service account credentials as an environment variable `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS`, you can call it immediately as a build argument to your Android build command to increment the build number:
324324

325325
{{< highlight bash "style=paraiso-dark">}}
326326
--build-number=$(($(google-play get-latest-build-number --package-name 'com.example.app') + 1))

content/knowledge-codemagic/flutter-screenshots-stores.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ Now you can add the following in your `.gitignore` file, at the root of your Flu
288288

289289
Since the `google-play-store.json` and the `app_store_connect.json` files are not meant to be added to your repository, we need to provide them in the workflow in a safe way.
290290

291-
With Codemagic, you can for example store the content of the `google-play-store.json` file in a encrypted environment variable named `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS`, and run a script in your workflow that will generate the `google-play-store.json` in the right location, with the right content, by doing as follow:
291+
With Codemagic, you can for example store the content of the `google-play-store.json` file in a encrypted environment variable named `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS`, and run a script in your workflow that will generate the `google-play-store.json` in the right location, with the right content, by doing as follow:
292292

293293
{{< highlight bash "style=paraiso-dark">}}
294-
echo $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS > android/google-play-store.json
294+
echo $GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS > android/google-play-store.json
295295
{{< /highlight >}}
296296

297297
Then in your workflow, you can write a script that copies the generated illustrations in the right directories. For example, here is how you can copy your illustrations for the French Android version of your app:

content/knowledge-others/install-unity-version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ workflows:
201201
groups:
202202
# Add the group environment variables in Codemagic UI (in Application or Team variables) - https://docs.codemagic.io/variables/environment-variable-groups/
203203
- unity # <-- (Includes UNITY_HOME, UNITY_SERIAL, UNITY_EMAIL and UNITY_PASSWORD)
204-
- google_play # <-- (Includes GCLOUD_SERVICE_ACCOUNT_CREDENTIALS <-- Put your google-services.json)
204+
- google_play # <-- (Includes GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS <-- Put your google-services.json)
205205
vars:
206206
UNITY_VERSION: 2019.4.38f1
207207
UNITY_VERSION_CHANGESET: fdbb7325fa47

content/partials/environment-variable-groups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ CM_KEYSTORE | contents of keystore - [`base64 encoded`](../variables/environment
9797
CM_KEYSTORE_PASSWORD | Put your keystore password here | keystore_credentials
9898
CM_KEY_PASSWORD | Put your key alias password here | keystore_credentials
9999
CM_KEY_ALIAS | Put your key alias here | keystore_credentials
100-
GCLOUD_SERVICE_ACCOUNT_CREDENTIALS | Put your Google Play service account credentials here | google_play_credentials
100+
GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS | Put your Google Play service account credentials here | google_play_credentials
101101
GOOGLE_PLAY_TRACK | Any default or custom track that is not in ‘draft’ status | google_play_credentials
102102
PACKAGE_NAME | Put your package name here | other
103103

content/partials/migrating-from-bitrise.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ To deploy to Google Play, a service account is required. Creating a service acco
199199

200200
If you have already uploaded your service account to Bitrise, you can download it from there under `Generic file storage`. Alternatively, you can set up a new service account following the instructions [here](../knowledge-base/google-services-authentication/).
201201

202-
To add your service account to your configuration file, add it as an environment variable. For example, `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS`. First, navigate to your application and click the `Environment variables` tab. To add the file, encode its contents with base64 and paste the value into Codemagic; make sure to check `Secure` when providing sensitive information. You can either add it to an already created group or create a new group, which you can later reference in your `codemagic.yaml`.
202+
To add your service account to your configuration file, add it as an environment variable. For example, `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS`. First, navigate to your application and click the `Environment variables` tab. To add the file, encode its contents with base64 and paste the value into Codemagic; make sure to check `Secure` when providing sensitive information. You can either add it to an already created group or create a new group, which you can later reference in your `codemagic.yaml`.
203203

204204
Like Bitrise's `Google Play Deploy` step, Codemagic allows you to modify the track, rollout fraction, and update priority. In addition, you can conveniently configure to submit the build as a draft or choose not the send the changes directly to review.
205205

@@ -226,7 +226,7 @@ The `Google Play Deploy` step in `bitrise.yml` and the publishing in `codemagic.
226226
```yaml
227227
publishing:
228228
google_play:
229-
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
229+
credentials: $GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS
230230
track: alpha
231231
in_app_update_priority: 3
232232
rollout_fraction: 0.25

content/partials/quickstart/build-versioning-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The prerequisite is a valid **Google Cloud Service Account**. Please follow thes
88
1. Go to [this guide](https://docs.codemagic.io/yaml-publishing/google-play/) and complete the steps in the **Google Play** section.
99
2. Skip to the **Creating a service account** section in the same guide and complete those steps also.
1010
3. You now have a `JSON` file with the credentials.
11-
4. Open Codemagic UI and create a new Environment variable `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS`.
11+
4. Open Codemagic UI and create a new Environment variable `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS`.
1212
5. Paste the content of the downloaded `JSON` file in the **_Value_** field, set the group name (e.g. **google_play**) and make sure the **Secure** option is checked.
1313
---
1414
6. Add the **google_play** variable group to the `codemagic.yaml`

content/partials/quickstart/build-versioning-kmm-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The prerequisite is a valid **Google Cloud Service Account**. Please follow thes
88
1. Go to [this guide](https://docs.codemagic.io/yaml-publishing/google-play/) and complete the steps in the **Google Play** section.
99
2. Skip to the **Creating a service account** section in the same guide and complete those steps also.
1010
3. You now have a `JSON` file with the credentials.
11-
4. Open Codemagic UI and create a new Environment variable `GCLOUD_SERVICE_ACCOUNT_CREDENTIALS`.
11+
4. Open Codemagic UI and create a new Environment variable `GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS`.
1212
5. Paste the content of the downloaded `JSON` file in the **_Value_** field, set the group name (e.g. **google_play**) and make sure the **Secure** option is checked.
1313
---
1414
6. Add the **google_play** variable group to the `codemagic.yaml`

content/partials/quickstart/publishing-google-play.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ react-native-android:
1010
publishing:
1111
# ...
1212
google_play:
13-
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
13+
credentials: $GOOGLE_PLAY_SERVICE_ACCOUNT_CREDENTIALS
1414
track: internal
1515
submit_as_draft: true
1616
{{< /highlight >}}

0 commit comments

Comments
 (0)