invertase / flutterfire_cli

A CLI to help with using FlutterFire in your Flutter applications.
Apache License 2.0
171 stars 47 forks source link

request: Allow a setup to pass config data to a Environment Variable #143

Closed muddi900 closed 11 months ago

muddi900 commented 1 year ago

Is there an existing feature request for this?

Command

flutterfire config

Description

I prefer passing my firebase config data into a json formatted Environment Variable, using '--dart-define'. Whenever I add something to the project, it generates a new file, which resets all my custom code.

It would be helpful if there is an option to output config data to Environment Variable(s).

Reasoning

Hardcoded credentials can be a security risk.

Additional context and comments

No response

russellwheatley commented 11 months ago

The Firebase configuration values (i.e. google-services.json or GoogleServices-Info.plist) are designed to be public. They are not a security risk.