Skip to content

Commit 28995cd

Browse files
committed
fix: Fix google-services.json error in CI builds
1 parent e064ebd commit 28995cd

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ jobs:
1010
runs-on: macOS-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
1413
- name: Unit Tests
15-
run: ./gradlew testDebugUnitTest
14+
run: pwd && ls && ls ./ci/ && ls ./app/ cp ./ci/mock-google-services.json ./app/google-services.json ./gradlew testDebugUnitTest
1615

1716
- name: Instrumentation Tests
1817
uses: reactivecircus/android-emulator-runner@v2

ci/mock-google-services.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"project_info": {
3+
"project_number": "",
4+
"project_id": ""
5+
},
6+
"client": [
7+
{
8+
"client_info": {
9+
"mobilesdk_app_id": "1:123456789012:android:1234567890123456",
10+
"android_client_info": {
11+
"package_name": "com.your.package"
12+
}
13+
},
14+
"oauth_client": [
15+
{
16+
"client_id": "",
17+
"client_type": 3
18+
},
19+
{
20+
"client_id": "",
21+
"client_type": 1,
22+
"android_info": {
23+
"package_name": "com.your.package",
24+
"certificate_hash": ""
25+
}
26+
}
27+
],
28+
"api_key": [
29+
{
30+
"current_key": ""
31+
}
32+
],
33+
"services": {
34+
"analytics_service": {
35+
"status": 2,
36+
"analytics_property": {
37+
"tracking_id": ""
38+
}
39+
},
40+
"appinvite_service": {
41+
"status": 1,
42+
"other_platform_oauth_client": []
43+
},
44+
"ads_service": {
45+
"status": 1
46+
}
47+
}
48+
}
49+
],
50+
"configuration_version": "1"
51+
}

0 commit comments

Comments
 (0)