This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
Update init to take features parameter: Map<String, GBFeature> #17
+72
−49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently the growthbook_sdk_flutter package was updated. This change
removed the ability to "seed" the feature values which are used while
the network request is happening or as fallback if the request fails.
Alongside this work, I have updated the Uptech fork of
growthbook_sdk_flutter to allow passing in "seeded" features and
values at init, instead of after. This commits points the dependency
at the Uptech fork, which is still in review.
Add features param to init constructor.
Add Deprecated tag to seeds so we know, while it is still possible to
use that parameter, we should be using features.
Add comments explaining why we have both params and what changes in
the growthbook_sdk_flutter package inspired these changes.
If a Map is passed in to the seeds param, we convert them to the new
feature Map<String, GBFeature> and pass that map along.
Update the tests to use GBFeature for map values.