From 08377cb336528de0abb56f636bd9e5c45ea532b8 Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Fri, 20 May 2022 16:58:23 -0600 Subject: [PATCH 1/2] Move Android build variables to env --- android/app/build.gradle | 4 ++-- android/gradle.properties | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e4d124d5664c..7b229cdf84c9 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -167,9 +167,9 @@ android { release { if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) { storeFile file(MYAPP_UPLOAD_STORE_FILE) - storePassword MYAPP_UPLOAD_STORE_PASSWORD + storePassword System.getenv('MYAPP_UPLOAD_STORE_PASSWORD') keyAlias MYAPP_UPLOAD_KEY_ALIAS - keyPassword MYAPP_UPLOAD_KEY_PASSWORD + keyPassword System.getenv('MYAPP_UPLOAD_KEY_PASSWORD') } } debug { diff --git a/android/gradle.properties b/android/gradle.properties index 87a5a217a8a4..a1cb537ebd40 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -33,8 +33,6 @@ FLIPPER_VERSION=0.100.0 # Key Store Information MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore -MYAPP_UPLOAD_STORE_PASSWORD=jab-devalue-medley-quartet-ambition-demigod-shinbone-luster-inject-while # Key Information MYAPP_UPLOAD_KEY_ALIAS=ReactNativeChat-Key-Alias -MYAPP_UPLOAD_KEY_PASSWORD=pry-eave-cervix-deltoid-plaudit-bunting-larynges-octagon-jetliner-possum From 66ecf7b1f9b99b796869a8f7509bd516c709f251 Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Mon, 6 Jun 2022 16:01:01 -0600 Subject: [PATCH 2/2] Add encrypted keystore and env variables from secrets --- .github/workflows/platformDeploy.yml | 4 ++++ android/app/my-upload-key.keystore.gpg | Bin 2247 -> 2244 bytes 2 files changed, 4 insertions(+) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 5575d05609f2..28a453427c05 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -82,6 +82,10 @@ jobs: - name: Run Fastlane beta if: ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} run: bundle exec fastlane android beta + env: + MYAPP_UPLOAD_STORE_PASSWORD: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }} + MYAPP_UPLOAD_KEY_PASSWORD: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }} + - name: Run Fastlane production if: ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} diff --git a/android/app/my-upload-key.keystore.gpg b/android/app/my-upload-key.keystore.gpg index 51ade9b2c9aba86c8616e892827c5caad7ac9395..e7ff57a171dbe9f7538f7adfd9cd3bc16d5e47ae 100644 GIT binary patch literal 2244 zcmV;#2s`(T4Fm}T0&Z^ibdmsuckj~c0rtPrWzF5(A)e*``k8P~4WHrQ7lYiKe27vR z3cDC@{iU#&RA&06vVEK#iG{<+kJtMe(dthc4Xwy|(NEH>G-I1r*h$2*!|y+7AYHLJ zFTZ&1;+o9P4Kn;Xz*pgsFR&0%Y?|ik?;W>@W|12HK~*=f!!{1*i+YSz^x0s!oLYlM zbN}KN8eNH>&OCW=*_>N`YhLY^bwg2J1Qm=mEb%zq0d&11 z)733)>=~(=yJQ$ndoqgkSF(G{Z&PW{nK{Xv4;m<hZjRhvIYxcy*uVQdFP8L^hY{6L1Qu_6=g8tQ=)pPlc{

KY38+b0nS55BNHD4)XHb_8aCk3*`w%aJ~WH1I-g(^*iq8a_CtU zUN$MWc8vy9q;@oxk+6cPm%T>o&`(VSY$mW**xu@3Z0$SqxE$%1pLh+G#}rdbzg?la zWx1b%4J`xS%zs5q3|q!CaYucW)nGVE#A-`pC>(^g+Ls)-YghJlhq&#Hc^CDmW7Sxh zyMBO(rDrTmJtc;56{q`>S|$iKe=IdH>X;PW?EKC(oM%DVRP1iwU|w|r$C=5WtA|3T ztQV(ZB2J^$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