Switch build with Google services.json between development and product

Hi there

I built a environment for dev and product.
We can switch firebase project by environment variables.

When I try doing eas build --platform android, the error caused as below.
I understand that the development build use the Google-services.json of product.
That’s why they can not find package name in the file.
The json is created by Firebase.

I found the suggestion to solve it in Firebase, that is used for Android studio, I guess.

app/    google-services.json    
    src/development/google-services.json    
    src/release/google-services.json

Do you know the way to switch google-services.json in Expo managed project?

Error code in EAS build

Parsing json file: /build/workingdir/build/android/app/google-services.json

1487

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

1488

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

1489

Use '--warning-mode all' to show the individual deprecation warnings.

1490

See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings

1491

794 actionable tasks: 794 executed

1492[stderr]

FAILURE: Build failed with an exception.

1493[stderr]

* What went wrong:

1494[stderr]

Execution failed for task ':app:processReleaseGoogleServices'.

1495[stderr]

> No matching client found for package name 'com.mapkid.rounds_test2'

1496[stderr]

* Try:

1497[stderr]

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

1498[stderr]

* Get more help at https://help.gradle.org

1499[stderr]

BUILD FAILED in 5m 41s