#!/usr/bin/env bash

## Never run this on your dev machine or it will override your valid google-services.json file!

echo '{
  "project_info": {
    "project_number": "0",
    "project_id": "mock-project-id"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "0",
        "android_client_info": {
          "package_name": "net.squanchy.example"
        }
      },
      "api_key": [
        {
          "current_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        }
      ],
      "services": {
        "analytics_service": {
          "status": 2,
          "analytics_property": {
            "tracking_id": "UA-123456-78"
          }
        }
      }
    }
  ],
  "configuration_version": "1"
}' > app/google-services.json

#!/usr/bin/env bash

## Never run this on your dev machine or it will override your valid google-services.json file!

echo '{
  "project_info": {
    "project_number": "1234567894652",
    "firebase_url": "https://squanchy-mock.firebaseio.com",
    "project_id": "squanchy-mock",
    "storage_bucket": "squanchy-mock.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "0",
        "android_client_info": {
          "package_name": "net.squanchy.example"
        }
      },
      "oauth_client": [
        {
          "client_id": "XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com",
          "client_type": 1,
          "android_info": {
            "package_name": "net.squanchy.example",
            "certificate_hash": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
          }
        },
        {
          "client_id": "XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com",
          "client_type": 1,
          "android_info": {
            "package_name": "net.squanchy.example",
            "certificate_hash": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
          }
        },
        {
          "client_id": "XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com",
          "client_type": 3
        },
        {
          "client_id": "XXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        }
      ],
      "services": {
        "analytics_service": {
          "status": 2,
          "analytics_property": {
            "tracking_id": "UA-123456-78"
          }
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "ads_service": {
          "status": 2
        }
      }
    }
  ],
  "configuration_version": "1"
}' > app/google-services.json

Update Play Services mock JSON
Update Play Services mock JSON
