Skip to content

[FSSDK-9491] chore Prepare for 2.0.0-beta release #67

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

Merged
merged 9 commits into from
Sep 22, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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