flutter / put-flutter-to-work

A Flutter add-to-app demo you can try with your own apps
BSD 3-Clause "New" or "Revised" License
321 stars 38 forks source link

3.1 - Implement Data Layer #14

Closed BeatriceMitchell closed 2 years ago

BeatriceMitchell commented 2 years ago

We need to have a Firebase data layer that starts working immediately after the user updates the Firebase credentials. It will be mocked until those are changed.

Child Tasks: #45, #35

BeatriceMitchell commented 2 years ago

Note: Need to reach out to Andrew to clarify whether the Firebase can be pretend or needs to be easily hooked up.

BeatriceMitchell commented 2 years ago

To quote from the Proposal:

The module should include a mock data layer and a Firebase-backed data layer. The mock data layer should be enabled by default. In other words, the code on GitHub should have a blank value for Firebase credentials. If unmodified, the code detects the blank value and automatically uses the mock data layer.

The Firebase data layer should be ready to work out of the box whenever the developer adds in their credentials, and the README/instructions should reflect that.

BeatriceMitchell commented 2 years ago

@Jan-Stepien Create two tasks: One for mocking the data layer, and one for the Firebase-backed data layer

BeatriceMitchell commented 2 years ago

Per discussion with Google, there is no need for actual mocking. If they have credentials, it initializes the Firebase repo and uploads to Firestore. If they don't have any credentials, it doesn't communicate at all.

BeatriceMitchell commented 2 years ago

Current time estimate is about 3 days