I added firebase to my Flutter app.
Two configuration files have been added “firebase_options.dart” and “firebase.json”.
Both files contain “apiKey”, “appId”, “messagingSenderId”, “projectId”, etc.
I researched and found older posts in which the google-services.json was still there and it wasn’t really clear whether it should go into the repo or not.
I didn’t find a clear statement anywhere as to whether the firebase.json has to be in the repository or not.
My question is, should/must both files be included in the repository?
If both files have to go into the repository, does it make sense to use flutter_dotenv to load the values as variables from an env file that doesn’t go into the repository?
I found this post, among others:
Should I add the google-services.json (from Firebase) to my repository?
However, this is already very old and refers to the google-services.json, which I don’t have in my case. There is also no statement about firebase.json there.