From bf04bfd35e58fdfef95bff412caa5c6aa090cb7a Mon Sep 17 00:00:00 2001 From: Dhruvin Date: Sun, 28 Aug 2022 13:32:24 +0530 Subject: [PATCH] doc: updated docs according --- CHANGELOG.md | 10 ++++++++++ README.md | 35 ----------------------------------- example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 12 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a647bf8..69a425a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/README.md b/README.md index 2f85d6e..d7839fa 100644 --- a/README.md +++ b/README.md @@ -163,19 +163,6 @@ class GBFeature { /// The default value (should use null if not specified) dynamic defaultValue; - - factory GBFeature.fromMap(Map dataMap) { - return GBFeature( - rules: dataMap['rules'] != null - ? List.from( - (dataMap['rules'] as List).map( - (e) => GBFeatureRule.fromMap(e), - ), - ) - : null, - defaultValue: dataMap["defaultValue"], - ); - } } @@ -216,43 +203,21 @@ class GBFeatureRule { /// What user attribute should be used to assign variations (defaults to id) String? hashAttribute; - - factory GBFeatureRule.fromMap(Map mappedData) { - return GBFeatureRule( - nameSpace: mappedData['namespace'], - condition: mappedData['condition'], - coverage: (mappedData['coverage'] as num?)?.toDouble(), - variations: mappedData['variations'] != null - ? List.from(mappedData['variations'].map((e) => e)) - : null, - key: mappedData['key'], - weights: mappedData['weights'] != null - ? List.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 } diff --git a/example/pubspec.lock b/example/pubspec.lock index ed390a2..16d5314 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 415ad4f..901cfd8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: