Skip to content

Commit

Permalink
[FSSDK-9491] chore Prepare for 2.0.0-beta release (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
muzahidul-opti authored Sep 22, 2023
1 parent 6476087 commit 2f8ddfd
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
}
}
ext {
android_sdk_version = "4.0.0-beta2"
android_sdk_version = "4.0.0-beta3"
}
allprojects {
repositories {
Expand Down
10 changes: 5 additions & 5 deletions lib/src/data_objects/decide_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ class Decision {
enabled = json[Constants.enabled];
}
if (json[Constants.userContext] is Map<dynamic, dynamic>) {
Map<String, dynamic> _userContext =
Map<String, dynamic> localUserContext =
Map<String, dynamic>.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<dynamic, dynamic>) {
if (localUserContext[Constants.attributes] is Map<dynamic, dynamic>) {
userContext[Constants.attributes] =
Map<String, dynamic>.from(_userContext[Constants.attributes]);
Map<String, dynamic>.from(localUserContext[Constants.attributes]);
}
}

Expand Down
2 changes: 0 additions & 2 deletions lib/src/optimizely_client_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 2f8ddfd

Please sign in to comment.