diff --git a/CHANGELOG.md b/CHANGELOG.md index 55ba984..b07c65b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Optimizely Flutter SDK Changelog +## 2.0.0-beta +September 21, 2023 + +### New Features + +* Add ODP for iOS ([#52](https://github.com/optimizely/optimizely-flutter-sdk/pull/52)). +* Add ODP for Android ([#57](https://github.com/optimizely/optimizely-flutter-sdk/pull/57)). + +### Bug Fixes + +* Crash fixed, fetchQualifiedSegments without options ([#64](https://github.com/optimizely/optimizely-flutter-sdk/pull/64)). + +### Functionality Enhancements + +* Update Github Issue Templates ([#65](https://github.com/optimizely/optimizely-flutter-sdk/pull/65)). +* Add configurable log level support ([#63](https://github.com/optimizely/optimizely-flutter-sdk/pull/63)). + ## 1.0.1 May 8, 2023 diff --git a/example/android/build.gradle b/example/android/build.gradle index 57c3218..c133c66 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -11,7 +11,7 @@ buildscript { } } ext { - android_sdk_version = "4.0.0-beta2" + android_sdk_version = "4.0.0-beta3" } allprojects { repositories { diff --git a/lib/src/data_objects/decide_response.dart b/lib/src/data_objects/decide_response.dart index 1f79439..dc2809a 100644 --- a/lib/src/data_objects/decide_response.dart +++ b/lib/src/data_objects/decide_response.dart @@ -42,14 +42,14 @@ class Decision { enabled = json[Constants.enabled]; } if (json[Constants.userContext] is Map) { - Map _userContext = + Map localUserContext = Map.from(json[Constants.userContext]); - if (_userContext[Constants.userId] is String) { - userContext[Constants.userId] = _userContext[Constants.userId]; + if (localUserContext[Constants.userId] is String) { + userContext[Constants.userId] = localUserContext[Constants.userId]; } - if (_userContext[Constants.attributes] is Map) { + if (localUserContext[Constants.attributes] is Map) { userContext[Constants.attributes] = - Map.from(_userContext[Constants.attributes]); + Map.from(localUserContext[Constants.attributes]); } } diff --git a/lib/src/optimizely_client_wrapper.dart b/lib/src/optimizely_client_wrapper.dart index bb2c4c0..f96ad24 100644 --- a/lib/src/optimizely_client_wrapper.dart +++ b/lib/src/optimizely_client_wrapper.dart @@ -27,8 +27,6 @@ import 'package:optimizely_flutter_sdk/src/data_objects/optimizely_config_respon import 'package:optimizely_flutter_sdk/src/utils/constants.dart'; import 'package:optimizely_flutter_sdk/src/utils/utils.dart'; -import 'data_objects/log_level.dart'; - enum ListenerType { activate, track, decision, logEvent, projectConfigUpdate } enum ClientPlatform { iOS, android } diff --git a/pubspec.yaml b/pubspec.yaml index 18d9c15..c2f0293 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,10 +1,10 @@ name: optimizely_flutter_sdk description: This repository houses the Flutter SDK for use with Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts. -version: 1.0.1 +version: 2.0.0-beta homepage: https://github.com/optimizely/optimizely-flutter-sdk environment: - sdk: ">=2.16.2" + sdk: '>=2.16.2 <=3.1.2' flutter: ">=2.5.0" dependencies: