Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Allow to specify different "google-services.json" for different builds (test/prod) #308

Open
camillo777 opened this issue Mar 24, 2020 · 3 comments

Comments

@camillo777
Copy link

Hello,
I am creating 2 apps on Firebase for the same project, a dev/test app and a release/prod app.
This is needed to avoid polluting production DBs (analytics, firestore, messaging, ...) with test and development data.
I did not found a simple way to force Flutter to load a different "google-services.json" based on the app build type (dev or prod).
Is there a clever way to achieve this separation of data?
Thank you
Camillo

@camillo777 camillo777 changed the title Allow to specify different "google-services.json" for different build Allow to specify different "google-services.json" for different builds (test/prod) Mar 24, 2020
@lukas-h
Copy link

lukas-h commented Mar 24, 2020

I have a production branch where I merge my master (for testing) into.

@camillo777
Copy link
Author

I have a production branch where I merge my master (for testing) into.

Hello @lukas-h
do you change the app package ID for production and testing versions or you use the same?
Thank you!

@lukas-h
Copy link

lukas-h commented Mar 26, 2020

Hi @camillo777,
I have the same package ID for the apps in both firebase projects.

Happy to help 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants