Skip to content

Commit 56cc5b3

Browse files
committed
ci: use debug firebase config paths
1 parent 26f4f24 commit 56cc5b3

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
uses: gradle/actions/setup-gradle@v5
3636

3737
- name: Decode google-services.json
38-
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
38+
run: |
39+
mkdir -p app/src/devDebug
40+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
3941
env:
4042
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4143

.github/workflows/e2e.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
uses: gradle/actions/setup-gradle@v5
5858

5959
- name: Decode google-services.json
60-
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
60+
run: |
61+
mkdir -p app/src/devDebug
62+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
6163
env:
6264
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
6365

@@ -100,7 +102,9 @@ jobs:
100102
uses: gradle/actions/setup-gradle@v5
101103

102104
- name: Decode google-services.json
103-
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
105+
run: |
106+
mkdir -p app/src/devDebug
107+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
104108
env:
105109
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
106110

.github/workflows/e2e_migration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
uses: gradle/actions/setup-gradle@v5
3838

3939
- name: Decode google-services.json
40-
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
40+
run: |
41+
mkdir -p app/src/devDebug
42+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
4143
env:
4244
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4345

.github/workflows/ui-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
gradle-${{ runner.os }}-
4242
4343
- name: Decode google-services.json
44-
run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
44+
run: |
45+
mkdir -p app/src/devDebug
46+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
4547
env:
4648
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4749

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ This repository contains the **native Android app** for Bitkit.
1010

1111
#### 1. Firebase Configuration
1212

13-
Debug builds include placeholder Firebase configuration so a fresh clone can compile without a private `google-services.json` files.
13+
Debug builds include placeholder Firebase configuration so a fresh clone can compile without private `google-services.json` files.
1414

1515
Download `google-services.json` from the Firebase Console when you need real Firebase integration for push notifications testing:
16-
- dev/tnet/mainnetDebug: Place in `app/google-services.json`
16+
- devDebug: Place in `app/src/devDebug/google-services.json`
17+
- tnetDebug: Place in `app/src/tnetDebug/google-services.json`
18+
- mainnetDebug: Place in `app/src/mainnetDebug/google-services.json`
1719
- mainnetRelease: Place in `app/src/mainnetRelease/google-services.json`
1820

1921
> **Note**: Placeholder debug configs are only for local builds. FCM token registration and push notifications require real Firebase configuration. The mainnet release flavor will fail to build without the `mainnetRelease/google-services.json` file.

0 commit comments

Comments
 (0)