Skip to content

Commit ac6d005

Browse files
committed
Update secrets for android
1 parent 5ec0d18 commit ac6d005

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

.github/actions/build-android/action.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ runs:
5353
echo $GOOGLE_SERVICES_JSON | base64 --decode > android/app/google-services.json
5454
shell: bash
5555

56+
- name: Decode upload.keystore
57+
env:
58+
KEYSTORE_BASE64: ${{ inputs.keystoreBase64 }}
59+
run: |
60+
mkdir -p android/keystores
61+
echo $KEYSTORE_BASE64 | base64 --decode > android/keystores/upload.keystore
62+
shell: bash
63+
5664
- name: Build Android Library with Fastlane
5765
run: |
5866
cd android
59-
fastlane android local
67+
fastlane android internal submit:false
6068
shell: bash
6169
env:
6270
FIREBASE_API_KEY: ${{ inputs.firebaseAPIKey }}

.github/workflows/MiNe2e.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,17 @@ jobs:
106106
UPLOAD_KEYSTORE_BASE64: ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}
107107
PLAY_STORE_CREDENTIALS_BASE64: ${{ secrets.PLAY_STORE_CREDENTIALS_BASE64 }}
108108
run: |
109+
mkdir -p ./android/keystores
109110
echo $UPLOAD_KEYSTORE_BASE64 | base64 --decode > ./android/keystores/upload.keystore
110111
echo $PLAY_STORE_CREDENTIALS_BASE64 | base64 --decode > ./android/fastlane/play-store-credentials.json
111112
shell: bash
112113

113114
- name: Build Android apk
114-
uses: ./.github/actions/build_android
115+
uses: ./.github/actions/build-android
115116
with:
117+
google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
116118
firebaseAPIKey: ${{ secrets.FIREBASE_API_KEY }}
117-
keystorePath: ${{ env.ANDROID_KEYSTORE_PATH }}
119+
keystoreBase64: ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}
118120
keystoreAlias: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
119121
keystorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
120122
keystoreKeyPassword: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}

android/fastlane/Fastfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ platform :android do
4343
UI.message("Building DeveloperApp")
4444
gradle(task: "assemble", build_type: "Debug", flavor: "Production", flags: "--stacktrace", properties: gradleOptions)
4545

46-
# UI.message("Installing APK into Android device/simulator")
47-
# lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].each do |apk|
48-
# begin
49-
# sh("adb reverse tcp:8080 tcp:8080")
50-
# sh("adb reverse tcp:8083 tcp:8083")
51-
# sh("adb install -r #{apk}")
52-
# end
53-
# end
46+
UI.message("Installing APK into Android device/simulator")
47+
lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].each do |apk|
48+
begin
49+
sh("adb reverse tcp:8080 tcp:8080")
50+
sh("adb reverse tcp:8083 tcp:8083")
51+
sh("adb install -r #{apk}")
52+
end
53+
end
5454
end
5555

5656
desc "Build new bundle and upload to Internal track"

0 commit comments

Comments
 (0)