Skip to content

Commit

Permalink
Add mock google services json file
Browse files Browse the repository at this point in the history
  • Loading branch information
findjigar committed Dec 10, 2024
1 parent 85f7c7a commit a91c8df
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,10 @@ dependencies {

coreLibraryDesugaring(libs.android.desugar)
}

// Function that copies `mock` JSON config file for google-services if there isn't one available
// Google-services plugin requires this config file to build
val googleServices = file("google-services.json")
if (!googleServices.exists()) {
file("mock-google-services.json").copyTo(googleServices, overwrite = false)
}
47 changes: 47 additions & 0 deletions android/mock-google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"project_info": {
"project_number": "606665771234",
"project_id": "mock-firebase-project",
"storage_bucket": "mock-firebase-project.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:606665771229:android:c1f0f09aa42abc12",
"android_client_info": {
"package_name": "co.touchlab.droidcon.london"
}
},
"oauth_client": [
{
"client_id": "123455771229-sc9bpuefbjceq7i1qabk7gssstefrdlv.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "co.touchlab.droidcon.london",
"certificate_hash": "7f254b538565cfe6c28a88744985f015b1534980"
}
},
{
"client_id": "123455771229-sc9bpuefbjceq7i1qabk7gssstefrdlv.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCNzhU2a9gMc_JHurHbywOrRI9Vj4VQZZZ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "413392989754-04u9tv32474rj0pmbfksirt4ti02a64r.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}

0 comments on commit a91c8df

Please sign in to comment.