Hiding secret keys in app.json from git

Please provide the following:

  1. SDK Version: All
  2. Platforms(Android/iOS/web/all): All

My app.json file looks something like this:

{
  "expo": {
     ...
      "config": {
        "googleSignIn": {
          "reservedClientId": "<SECRET_KEY_HERE>"
        }
      }
     ...

Since this is a secret key, I ignore from committing app.json file to git.

Is there anyway to still commit app.json to git without pushing the secret key?

It is important that this would still work when running expo locally, when building a standalone version, but not publish my secret key to my public git repository.

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.