GoogleServicesFile is not checked in to your repository

Hi, I’m having issues uploading the google services file. I’m having this warning.

“File specified via “android.googleServicesFile” field in your app.json is not checked in to your repository and won’t be uploaded to the builder.”

But, I have the file in my repository indeed.

I know it is not a good practice but I would like to keep it in my repo

Thank you!

If you are sure that file is checked in into repo then it should work and maybe warning is triggered incorrectly.

  • what version of cli are you using?
  • can you share exact value in app.json(how the path is specified)
  • how is your directory structure looks like (where is eas.json and googole services json relative to root of the repository)

I know it is not a good practice but I would like to keep it in my repo

I would not worry about that, anyone can extract that file from apk or after installing an app from play store either way so, it’s not really a secret value (it still shouldn’t be in public repo, but it’s fine in private one)

Thank you very much for your response.

At first, i had both files (GoogleService-Info.plist and google-services.json) in the root of my project, also eas.json. And previous version of expo-cli and eas-cli. Now I have both files in a separated folder, and updated the versions. This is the configuration:

ios: {
      buildNumber: '38',
      bundleIdentifier: 'org.reactjs.native.example.drinkdeliveryclient',
      config: {
        googleSignIn: {
          reservedClientId:
            '...',
        },
      },
      googleServicesFile: './external/GoogleService-Info.plist' (previous './GoogleService-Info.plist'),
      supportsTablet: true,
    },
    android: {
      versionCode: 38,
      adaptiveIcon: {
        foregroundImage: './assets/adaptive-icon.png',
        backgroundColor: '#103049',
      },
      googleServicesFile: './external/google-services.json' (previous './google-services.json'),
      icon: './assets/icon.png',
      package: 'com.drinkdeliveryclient',
      permissions: [
        'ACCESS_COARSE_LOCATION',
        'ACCESS_FINE_LOCATION',
        'ACCESS_NETWORK_STATE',
      ],
    },

eas-cli: eas-cli/0.25.0 win32-x64 node-v14.16.1
expo-cli: 4.11.0

Now i have:

$root/app.config.ts
$root/external/google-services.json
$root/external/GoogleService-Info.plist

Thanks!

Hey Team,

I am having the exact same warning. I am on latest version of Expo SDK and EAS CLI. And also both my eas.json and google-services.json are in the same root directory of the project. But still I am getting this warning. Please help! Because I don’t want to make a new build until this is sorted out because if its true then my notifications would be disabled isnt it?

This is under the android field in my app.json

“googleServicesFile”: “./google-services.json”,

        "useNextNotificationsApi": true,

        "adaptiveIcon": {

            "foregroundImage": "./assets/icons/idrl/adaptive-icon.png",

            "backgroundColor": "#ffffff"

        }

I don’t want to make a new build until this is sorted out because if its true then my notifications would be disabled isnt it?

no, if that is the case build should fail, and even if it didn’t this will only affect that apk/aab/ipa, not the apps in production

@idrlmartian are you also on windows?

Also, I’m receiving the following error when attempting to log in with google

Custom scheme URIs are not allowed for 'WEB' client type

Not sure if it is related

Exactly same error. More … there was no error in 17.06.2021 - last eas build before today. Today I tried eas build and received eas cli update requirement message. After update I’ve received yellow message:

File specified via “android.googleServicesFile” field in your app.json is not checked in to your repository and won’t be uploaded to the builder.
Use EAS Secret to pass all values that you don’t want to include in your version control. Learn more: Environment variables and secrets - Expo Documentation
If you are using that file for compatibility with the classic build service (expo build) you can silence this warning by setting GOOGLE_SERVICES_FILE in your build profile in eas.json to any non-falsy value.

eas-cli/0.27.1 win32-x64 node-v12.14.0
expo-cli: 4.11.0

Thanks for help

@geperson can you explain what is the problem? This warning should show up in some cases, without knowing your situation I can’t tell if it’s a correct behavior. I think warning message is pretty descriptive, is there something incorrect there?

btw @idrlmartian @jorexe warning should not show up anymore for you in latest eas-cli release

1 Like

@wkozyra Looks like it’s only message and wrong message, because google auth in Android standalone app is works correctly. It should not work without google-services.json. So, file exists, they been uploaded but message is wrong. I have no another explanation.

ecause google auth in Android standalone app is works correctly. It should not work without google-services.json. So, file exists, they been uploaded but message is wrong

you are making a lot of assumptions there

  • file can be added to on builder in other ways e.g. EAS secrets
  • file can be ignored but still present in the git repo

It’s possible that there is a bug there, but without any info, I can’t reproduce it and I’m not even sure at this point whether the behavior you are referring to is incorrect

1 Like