Skip to content

Commit 14162ef

Browse files
committed
ci: use shared debug firebase path
1 parent 0bd8df1 commit 14162ef

5 files changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636

3737
- name: Decode google-services.json
3838
run: |
39-
mkdir -p app/src/devDebug
40-
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
39+
mkdir -p app/src/debug
40+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/debug/google-services.json
4141
env:
4242
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4343

.github/workflows/e2e.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858

5959
- name: Decode google-services.json
6060
run: |
61-
mkdir -p app/src/devDebug
62-
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
61+
mkdir -p app/src/debug
62+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/debug/google-services.json
6363
env:
6464
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
6565

@@ -103,8 +103,8 @@ jobs:
103103

104104
- name: Decode google-services.json
105105
run: |
106-
mkdir -p app/src/devDebug
107-
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
106+
mkdir -p app/src/debug
107+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/debug/google-services.json
108108
env:
109109
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
110110

.github/workflows/e2e_migration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838

3939
- name: Decode google-services.json
4040
run: |
41-
mkdir -p app/src/devDebug
42-
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
41+
mkdir -p app/src/debug
42+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/debug/google-services.json
4343
env:
4444
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4545

.github/workflows/ui-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
4343
- name: Decode google-services.json
4444
run: |
45-
mkdir -p app/src/devDebug
46-
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/devDebug/google-services.json
45+
mkdir -p app/src/debug
46+
echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/src/debug/google-services.json
4747
env:
4848
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
4949

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ This repository contains the **native Android app** for Bitkit.
1313
Debug builds use a checked-in placeholder at `app/google-services.json` so a fresh clone can compile without private Firebase files.
1414

1515
Download `google-services.json` from the Firebase Console when you need real Firebase integration for push notifications testing:
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`
16+
- Debug builds: Place in `app/src/debug/google-services.json`
1917
- mainnetRelease: Place in `app/src/mainnetRelease/google-services.json`
2018

21-
The variant-specific paths above are ignored by Git and take precedence over the checked-in placeholder.
19+
The debug file above is ignored by Git and takes precedence over the checked-in placeholder. To use one debug Firebase file across all debug variants, make sure it includes clients for `to.bitkit.dev`, `to.bitkit.tnet`, and `to.bitkit`.
2220

2321
> **Note**: Placeholder config is only for local debug builds. FCM token registration and push notifications require real Firebase configuration. The mainnet release flavor should always use the real `mainnetRelease/google-services.json` file.
2422

0 commit comments

Comments
 (0)