From 7c99ca3360ee325350264631f46d64b923b7adf5 Mon Sep 17 00:00:00 2001 From: Filipe Brito Date: Tue, 1 Oct 2019 12:28:35 -0300 Subject: [PATCH] Moves google-services.json (play) to proper directory. --- .circleci/config.yml | 31 +++++++++++++++++-- .../app/{ => src/play}/google-services.json | 0 2 files changed, 28 insertions(+), 3 deletions(-) rename android/app/{ => src/play}/google-services.json (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 09d001ed8..182c06b75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -99,7 +99,28 @@ jobs: - store_artifacts: path: /tmp/screenshots - android-build: + android-play-build: + docker: + - image: circleci/android:api-29 + environment: + GRADLE_OPTS: -Xmx1536m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false + steps: + - checkout + - run: + name: restore files from ENV + command: | + echo $CHAT_ROCKET_ANDROID_STORE_FILE_BASE64_JKS | base64 --decode > chat-rocket-android.jks + echo $ROCKET_PLAY_JSON | base64 --decode > android/app/rocket-chat.json + - run: + name: Download Dependencies + command: ./gradlew androidDependencies + - run: + name: Build Play AAB + command: ./gradlew bundleRelease + - store_artifacts: + path: /tmp/build/outputs/play + + android-play-experimental-build: <<: *defaults docker: - image: circleci/android:api-28-node @@ -207,7 +228,7 @@ jobs: mv app/build/outputs /tmp/build/ - store_artifacts: - path: /tmp/build/outputs + path: /tmp/build/outputs/play-experimental - save_cache: name: Save NPM cache @@ -374,6 +395,10 @@ workflows: requires: - ios-hold-testflight - - android-build: + - android-play-build: + requires: + - lint-testunit + + - android-play-experimental-build: requires: - lint-testunit diff --git a/android/app/google-services.json b/android/app/src/play/google-services.json similarity index 100% rename from android/app/google-services.json rename to android/app/src/play/google-services.json