Home > Enterprise >  Flutter - Should firebase_options.dart be added to gitignore?
Flutter - Should firebase_options.dart be added to gitignore?

Time:03-11

When initializing/configuring FlutterFire a firebase_options.dart file is created at the root of /lib. This file contains api keys for android, ios, web, and whatever channels you may be using. Are these public keys that can go into a repo or private and should not be committed to a repo? There are no details on FlutterFire and to have this created in /lib seems to suggest these are public keys.

CodePudding user response:

Yes, you are allowed to share the API keys on github, these API keys are used to identify the project but cannot be used to grant access to the project itself, in this regard, they are more like usernames than passwords.

Source

  • Related