Skip to content

Commit 6f796d6

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

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14+
- name: Pre-CI actions
15+
run: cp ./ci/mock-google-services.json ./app/google-services.json
16+
1417
- name: Unit Tests
1518
run: ./gradlew testDebugUnitTest
1619

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.haroldadmin.moonshot"
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.haroldadmin.moonshot",
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)