Skip to content

Commit f1a3b4f

Browse files
Merge pull request #16 from CodingWithTashi/feat/codemagic-release
ci: write google-services.json from env var
2 parents 44f39be + e8368aa commit f1a3b4f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

codemagic.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ workflows:
3333
script: |
3434
echo "sdk.dir=$ANDROID_SDK_ROOT" > "$CM_BUILD_DIR/local.properties"
3535
36+
- name: Write google-services.json
37+
script: |
38+
echo $GOOGLE_SERVICES_JSON > app/google-services.json
39+
3640
- name: Build release AAB
3741
script: |
3842
# Auto-increment version code based on what's already on the Play Store.
@@ -84,6 +88,10 @@ workflows:
8488
script: |
8589
echo "sdk.dir=$ANDROID_SDK_ROOT" > "$CM_BUILD_DIR/local.properties"
8690
91+
- name: Write google-services.json
92+
script: |
93+
echo $GOOGLE_SERVICES_JSON > app/google-services.json
94+
8795
- name: Build debug APK
8896
script: |
8997
./gradlew assembleDebug

0 commit comments

Comments
 (0)