flutterfirebaseandroid-studiogoogle-cloud-platformgoogle-cloud-api-keys

Flutter, Firebase and gitignore


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.


Solution

  • 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)