dart_board icon indicating copy to clipboard operation
dart_board copied to clipboard

Remote config ?

Open gedw99 opened this issue 3 years ago • 4 comments

Does it make sense to use this with remote config like the Firebase one ?

Seems like a good match

gedw99 avatar Jun 05 '21 09:06 gedw99

I am amicable to firebase auth and firebase remote config as features.

If someone could make a feature, they could set up a remote config->feature mapping to manage the system by including the firebase auth and passing a config through.

The only thing not really demonstrated in the repo required to achieve this is key management/config.

I know I want config to come down through the main() (e.g. firebase api keys), But I'm not sure how I want to handle keys and the repo and example yet.

To build the feature, it would look something like this.

  • create new module, dart_board_firebase_remote_config
  • add a feature class
  • Create a AppDecoration that provides a widget that handles the firebase connection and retrieving/updating remote config
  • Interface with DartBoard the same way in /debug route to switch features

The Feature probably should take a function that maps firebase config -> feature config (with maybe a default that imposes a naming on both sides) and the API Key for firebase.

I'm happy to take contributions if you, or anyone wants to attempt this.

ahammer avatar Jun 05 '21 22:06 ahammer

It'll probably be a bit down the road for me though, at least priority wise.

Will keep this issue open for any discussion or volunteers.

ahammer avatar Jun 05 '21 22:06 ahammer

I'll likely add remote config and firebase analytics soon. I've added Auth and Firestore in a branch, will merge and release and likely put out a Remote Config feature next.

ahammer avatar Aug 08 '21 19:08 ahammer

FlutterFire remote config doesn't support web yet, so I'm not going to implement it right now.

Remote Config could be faked with FireStore across all features. I'll probably look back to this in the future.

ahammer avatar Aug 09 '21 07:08 ahammer