diff --git a/example/pubspec.lock b/example/pubspec.lock index dde2657..008dd85 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -42,7 +42,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" cupertino_icons: dependency: "direct main" description: @@ -70,7 +70,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0" flutter: dependency: "direct main" description: flutter @@ -122,7 +122,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.4" meta: dependency: transitive description: @@ -136,7 +136,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" quiver: dependency: transitive description: @@ -155,7 +155,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -190,7 +190,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" + version: "0.4.9" tuple: dependency: transitive description: @@ -211,6 +211,6 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" sdks: - dart: ">=2.16.2 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" diff --git a/lib/growthbook_sdk_flutter.dart b/lib/growthbook_sdk_flutter.dart index b7ec6c4..93ab95c 100644 --- a/lib/growthbook_sdk_flutter.dart +++ b/lib/growthbook_sdk_flutter.dart @@ -9,7 +9,5 @@ export 'src/Features/features_view_model.dart'; export 'src/Helper/state_helper.dart'; export 'src/Model/model.dart'; export 'src/Network/network.dart'; -export 'src/Network/network.dart'; -export 'src/Utils/utils.dart'; export 'src/Utils/utils.dart'; export 'src/growth_book_sdk.dart'; diff --git a/lib/src/model/context.dart b/lib/src/Model/context.dart similarity index 100% rename from lib/src/model/context.dart rename to lib/src/Model/context.dart diff --git a/lib/src/model/experiment.dart b/lib/src/Model/experiment.dart similarity index 100% rename from lib/src/model/experiment.dart rename to lib/src/Model/experiment.dart diff --git a/lib/src/model/features.dart b/lib/src/Model/features.dart similarity index 100% rename from lib/src/model/features.dart rename to lib/src/Model/features.dart diff --git a/lib/src/model/features.g.dart b/lib/src/Model/features.g.dart similarity index 100% rename from lib/src/model/features.g.dart rename to lib/src/Model/features.g.dart diff --git a/lib/src/model/model.dart b/lib/src/Model/model.dart similarity index 100% rename from lib/src/model/model.dart rename to lib/src/Model/model.dart diff --git a/lib/src/Utils/gb_utils.dart b/lib/src/Utils/gb_utils.dart index e50f441..73ae916 100644 --- a/lib/src/Utils/gb_utils.dart +++ b/lib/src/Utils/gb_utils.dart @@ -1,4 +1,4 @@ -import 'package:growthbook_sdk_flutter/src/utils/utils.dart'; +import 'package:growthbook_sdk_flutter/src/Utils/utils.dart'; /// Fowler-Noll-Vo hash - 32 bit class FNV { @@ -58,8 +58,7 @@ class GBUtils { ///This converts and experiment's coverage and variation weights into an array /// of bucket ranges. - List getBucketRanges( - int numVariations, double coverage, List weights) { + List getBucketRanges(int numVariations, double coverage, List weights) { List bucketRange; // Clamp the value of coverage to between 0 and 1 inclusive. @@ -72,8 +71,7 @@ class GBUtils { } // Default to equal weights if the sum is not equal 1 (or close enough when // rounding errors are factored in): - final weightsSum = targetWeights.fold( - 0, (previousValue, element) => previousValue + element); + final weightsSum = targetWeights.fold(0, (previousValue, element) => previousValue + element); if (weightsSum < 0.99 || weightsSum > 1.01) { targetWeights = getEqualWeights(numVariations); } @@ -111,8 +109,7 @@ class GBUtils { final end = namespace[2]; if (start != null && end != null) { - return GBNameSpace(title, double.parse(start.toString()), - double.parse(end.toString())); + return GBNameSpace(title, double.parse(start.toString()), double.parse(end.toString())); } } diff --git a/pubspec.lock b/pubspec.lock index bb266cd..abd643c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -42,7 +42,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" dio: dependency: "direct main" description: @@ -63,7 +63,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0" flutter: dependency: "direct main" description: flutter @@ -108,7 +108,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.4" meta: dependency: transitive description: @@ -122,7 +122,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" quiver: dependency: transitive description: @@ -141,7 +141,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -176,7 +176,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" + version: "0.4.9" tuple: dependency: "direct main" description: @@ -197,6 +197,6 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" sdks: - dart: ">=2.16.2 <3.0.0" + dart: ">=2.17.0-0 <3.0.0"