Skip to content

Commit cb34511

Browse files
committed
Enable Play Store connection
1 parent 1698018 commit cb34511

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ runs:
8282
shell: bash
8383
env:
8484
FIREBASE_API_KEY: ${{ inputs.firebaseAPIKey }}
85-
ANDROID_KEYSTORE_PATH: ${{ inputs.keystorePath }}
85+
# ANDROID_KEYSTORE_PATH: ${{ inputs.keystorePath }}
86+
ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/android/keystores/upload.keystore
8687
ANDROID_KEYSTORE_PASSWORD: ${{ inputs.keystorePassword }}
8788
ANDROID_KEYSTORE_ALIAS: ${{ inputs.keystoreAlias }}
8889
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ inputs.keystoreKeyPassword }}
90+
PLAY_STORE_CREDENTIALS_PATH: ${{ github.workspace }}/android/fastlane/play-store-credentials.json
8991

9092
- name: Copy Android APK to Shared Directory
9193
run: |

.github/workflows/MiNe2e.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ jobs:
102102
- name: "Check out code"
103103
uses: actions/checkout@v4
104104

105-
- name: Retrieve the secrets and decode it to a file
106-
env:
107-
UPLOAD_KEYSTORE_BASE64: ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}
108-
PLAY_STORE_CREDENTIALS_BASE64: ${{ secrets.PLAY_STORE_CREDENTIALS_BASE64 }}
109-
run: |
110-
mkdir -p ./android/keystores
111-
echo $UPLOAD_KEYSTORE_BASE64 | base64 --decode > ./android/keystores/upload.keystore
112-
echo $PLAY_STORE_CREDENTIALS_BASE64 | base64 --decode > ./android/fastlane/play-store-credentials.json
113-
shell: bash
105+
# - name: Retrieve the secrets and decode it to a file
106+
# env:
107+
# UPLOAD_KEYSTORE_BASE64: ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}
108+
# PLAY_STORE_CREDENTIALS_BASE64: ${{ secrets.PLAY_STORE_CREDENTIALS_BASE64 }}
109+
# run: |
110+
# mkdir -p ./android/keystores
111+
# echo $UPLOAD_KEYSTORE_BASE64 | base64 --decode > ./android/keystores/upload.keystore
112+
# echo $PLAY_STORE_CREDENTIALS_BASE64 | base64 --decode > ./android/fastlane/play-store-credentials.json
113+
# shell: bash
114114

115115
- name: Build Android apk
116116
uses: ./.github/actions/build-android
@@ -122,7 +122,10 @@ jobs:
122122
keystorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
123123
keystoreKeyPassword: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
124124
playStoreCredentialsBase64: ${{ secrets.PLAY_STORE_CREDENTIALS_BASE64 }}
125-
keystorePath: ${{ github.workspace }}/android/keystores/upload.keystore
125+
# keystorePath: ${{ secrets.UPLOAD_KEYSTORE_BASE64 }}
126+
# playStoreCredentialsPath: ${{ secrets.PLAY_STORE_CREDENTIALS_BASE64 }}
127+
# # keystorePath: ${{ github.workspace }}/android/keystores/upload.keystore
128+
# # playStoreCredentialsPath: ${{ github.workspace }}/android/fastlane/play-store-credentials.json
126129

127130
ios-app:
128131
runs-on: macOS-15

android/fastlane/Fastfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ platform :android do
5656
desc "Build new bundle and upload to Internal track"
5757
lane :internal do |options|
5858
FileUtils.copy(ORIGINAL_CHANGELOG_PATH, FASTLANE_CHANGELOG_PATH)
59-
#versionCode = google_play_track_version_codes(track: "internal").max() + 1
60-
versionCode = 1
61-
# versionName = GOOGLE_PLAY_VERSION + "." + BUILD_NUMBER
62-
versionName = BUILD_NUMBER
59+
versionCode = google_play_track_version_codes(track: "internal", json_key: ENV["PLAY_STORE_CREDENTIALS_PATH"]).max() + 1
60+
versionName = GOOGLE_PLAY_VERSION + "." + BUILD_NUMBER
61+
# versionCode = 1
62+
# versionName = BUILD_NUMBER
63+
6364

6465
gradleOptions = {
6566
# Gradle 7.3 removed support for dynamic versioning through android.injected.version.code

0 commit comments

Comments
 (0)