Flutter, Firebase and gitignore

72 Views Asked by At

I built an e-commerce app using Flutter, where I used firebase inside my app, APIs powered by Google Cloud, I don't know which files should i put in .gitignore file or which files should be included in the app overall.

Although I removed firebase_options.dart, I'm not sure what else has to be removed.

1

There are 1 best solutions below

2
On BEST ANSWER

Firebase configuration files:
These files often contain sensitive information and should not be included in version control.

google-services.json (for Android)
GoogleService-Info.plist (for iOS)
firebase_options.dart (if you're using a custom configuration file)