Skip to content

Commit

Permalink
Merge pull request #18 from alippo-com/doc/updated_docs
Browse files Browse the repository at this point in the history
doc: updated docs according
  • Loading branch information
DK070202 authored Aug 28, 2022
2 parents 876857f + bf04bfd commit 3708b0c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 37 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@
- AB Testing.
- Feature Flag.
- Percentage RollOut.

# 1.1.0+2

- Migrated to dart 2.17.2.
- fix: Data parsing problem.
- Moved to json-serializable from manual one.
- Removed dependency: Enhanced Enum.
- fix: String comparison assessment.
- Added new test cases for string comparison.
- Changed `attr` type for `evaluateCondition`.
35 changes: 0 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,6 @@ class GBFeature {
/// The default value (should use null if not specified)
dynamic defaultValue;
factory GBFeature.fromMap(Map<String, dynamic> dataMap) {
return GBFeature(
rules: dataMap['rules'] != null
? List<GBFeatureRule>.from(
(dataMap['rules'] as List).map(
(e) => GBFeatureRule.fromMap(e),
),
)
: null,
defaultValue: dataMap["defaultValue"],
);
}
}
Expand Down Expand Up @@ -216,43 +203,21 @@ class GBFeatureRule {
/// What user attribute should be used to assign variations (defaults to id)
String? hashAttribute;
factory GBFeatureRule.fromMap(Map<String, dynamic> mappedData) {
return GBFeatureRule(
nameSpace: mappedData['namespace'],
condition: mappedData['condition'],
coverage: (mappedData['coverage'] as num?)?.toDouble(),
variations: mappedData['variations'] != null
? List<dynamic>.from(mappedData['variations'].map((e) => e))
: null,
key: mappedData['key'],
weights: mappedData['weights'] != null
? List<double>.from(mappedData['weights'])
: null,
force: mappedData['force'],
hashAttribute: mappedData["hashAttribute"],
);
}
}
/// Enum For defining feature value source.
@EnhancedEnum()
enum GBFeatureSource {
/// Queried Feature doesn't exist in GrowthBook.
@EnhancedEnumValue(name: 'unknownFeature')
unknownFeature,
/// Default Value for the Feature is being processed.
@EnhancedEnumValue(name: 'defaultValue')
defaultValue,
/// Forced Value for the Feature is being processed.
@EnhancedEnumValue(name: 'force')
force,
/// Experiment Value for the Feature is being processed.
@EnhancedEnumValue(name: 'experiment')
experiment
}
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0+1"
version: "1.1.0+2"
http_parser:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: growthbook_sdk_flutter
description: GrowthBook SDK for flutter.
version: 1.0.0+1
version: 1.1.0+2
homepage: https://github.com/alippo-com/GrowthBook-SDK-Flutter

environment:
Expand Down

0 comments on commit 3708b0c

Please sign in to comment.