Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case in folder name #14

Merged
merged 2 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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"
2 changes: 0 additions & 2 deletions lib/growthbook_sdk_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 4 additions & 7 deletions lib/src/Utils/gb_utils.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -58,8 +58,7 @@ class GBUtils {

///This converts and experiment's coverage and variation weights into an array
/// of bucket ranges.
List<GBBucketRange> getBucketRanges(
int numVariations, double coverage, List<double> weights) {
List<GBBucketRange> getBucketRanges(int numVariations, double coverage, List<double> weights) {
List<GBBucketRange> bucketRange;

// Clamp the value of coverage to between 0 and 1 inclusive.
Expand All @@ -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<double>(
0, (previousValue, element) => previousValue + element);
final weightsSum = targetWeights.fold<double>(0, (previousValue, element) => previousValue + element);
if (weightsSum < 0.99 || weightsSum > 1.01) {
targetWeights = getEqualWeights(numVariations);
}
Expand Down Expand Up @@ -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()));
}
}

Expand Down
16 changes: 8 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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"