Skip to content

Commit ba41498

Browse files
ceimajmikeproeng37
authored andcommitted
Release notes for 2.1.0 (#214)
1 parent 9dd7e5f commit ba41498

File tree

1 file changed

+73
-1
lines changed

1 file changed

+73
-1
lines changed

CHANGELOG.md

+73-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,82 @@
11
# Optimizely Android X SDK Changelog
22

3+
## 2.1.0
4+
August 2nd, 2018
5+
6+
This release is the 2.x general availability launch of the Android SDK, which includes a number of significant new features that are now stable and fully supported. [Feature Management](https://developers.optimizely.com/x/solutions/sdks/reference/?language=android#feature-introduction) is now generally available, which introduces new APIs and which replaces the SDK's variable APIs (`getVariableBoolean`, etc.) with the feature variable APIs (`getFeatureVariableBoolean`, etc.).
7+
8+
The primary difference between the new Feature Variable APIs and the older, Variable APIs is that they allow you to link your variables to a Feature (a new type of entity defined in the Optimizely UI) and to a feature flag in your application. This in turn allows you to run Feature Tests and Rollouts on both your Features and Feature Variables. For complete details of the Feature Management APIs, see the "New Features" section below.
9+
10+
To learn more about Feature Management, read our [knowledge base article introducing the feature](https://help.optimizely.com/Set_Up_Optimizely/Develop_a_product_or_feature_with_Feature_Management).
11+
12+
### New Features
13+
* Introduces the `isFeatureEnabled` API, a featue flag used to determine whether to show a feature to a user. The `isFeatureEnabled` should be used in place of the `activate` API to activate experiments running on features. Specifically, calling this API causes the SDK to evaluate all [Feature Tests](https://developers.optimizely.com/x/solutions/sdks/reference/?language=android#activate-feature-tests) and [Rollouts](https://developers.optimizely.com/x/solutions/sdks/reference/?language=android#activate-feature-rollouts) associated with the provided feature key.
14+
```
15+
Boolean enabled = optimizelyClient.isFeatureEnabled("my_feature_key", "user_1", userAttributes);
16+
```
17+
18+
* Get all enabled features for a user by calling the following method, which returns a list of strings representing the feature keys:
19+
```
20+
ArrayList<String> enabledFeatures = optimizelyClient.getEnabledFeatures("user_1", userAttributes);
21+
```
22+
23+
* Introduces Feature Variables to configure or parameterize your feature. There are four variable types: `Integer`, `String`, `Double`, `Boolean`. Note that unlike the Variable APIs, the Feature Variable APIs do not dispatch impression events. Instead, first call `isFeatureEnabled` to activate your experiments, then retrieve your variables.
24+
```
25+
String stringVariable = optimizelyClient.getFeatureVariableString("my_feature_key", "string_variable_key", "user_1");
26+
Integer integerVariable = optimizelyClient.getFeatureVariableInteger("my_feature_key", "integer_variable_key", "user_1");
27+
Double doubleVariable = optimizelyClient.getFeatureVariableDouble("my_feature_key", "double_variable_key", "user_1");
28+
Boolean booleanVariable = optimizelyClient.getFeatureVariableBoolean("my_feature_key", "boolean_variable_key", "user_1");
29+
```
30+
31+
* Introduces SDK Keys, which allow you to use Environments with the Android SDK. Use an SDK Key to initialize your OptimizelyManager, and the SDK will retrieve the datafile for the environment associated with the SDK Key. This replaces initialization with Project ID.
32+
```
33+
OptimizelyManager optimizelyManager = OptimizelyManager.builder()
34+
.withSDKKey("SDK_KEY_HERE")
35+
.build(getApplication());
36+
optimizelyManager.initialize(this, new OptimizelyStartListener() {
37+
@Override
38+
public void onStart(OptimizelyClient optimizely) {
39+
//user optimizely client here
40+
}
41+
});
42+
```
43+
44+
### Deprecations
45+
* Version 2.1.0 deprecates the Variable APIs: `getVariableBoolean`, `getVariableFloat`, `getVariableInteger`, and `getVariableString`
46+
47+
* Replace use of the Variable APIs with Feature Mangement's Feature Variable APIs, described above
48+
49+
* We will continue to support the Variable APIs until the 3.x release, but we encourage you to upgrade as soon as possible
50+
51+
* You will see a deprecation warning if using a 2.x SDK with the deprecated Variable APIs, but the APIs will continue to behave as they did in 1.x versions of the SDK
52+
53+
### Upgrading from 1.x
54+
55+
In order to begin using Feature Management, you must discontinue use of 1.x variables in your experiments. First, pause and archive all experiments that use variables. Then, contact [Optimizely Support](https://optimizely.zendesk.com/hc/en-us/requests) in order to have your project converted from the 1.x SDK UI to the 2.x SDK UI. In addition to allowing for access to the Feature Management UI, upgrading to the 2.x SDK UI grants you access to [Environments](https://developers.optimizely.com/x/solutions/sdks/reference/?language=android#environments) and other new features.
56+
* *Note*: All future feature development on the Android SDK will assume that your are using the 2.x SDK UI, so we encourage you to upgrade as soon as possible.
57+
58+
59+
### Breaking changes
60+
* The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry of the event tags map. The key for the revenue tag is `revenue` and will be treated by Optimizely as the key for analyzing revenue data in results.
61+
```
62+
Map<String, Object> eventTags = new HashMap<String, Object>();
63+
64+
// reserved "revenue" tag
65+
eventTags.put("revenue", 6432);
66+
67+
optimizelyClient.track("event_key", "user_id", userAttributes, eventTags);
68+
69+
```
70+
71+
* We have removed deprecated classes with the `NotificationBroadcaster` in favor of the new API with the `NotificationCenter`. We have streamlined the API so that it is easily usable with Java Lambdas in *Java 1.8+*. We have also added some convenience methods to add these listeners. Finally, some of the API names have changed slightly (e.g. `clearAllNotifications()` is now `clearAllNotificationListeners()`)
72+
73+
74+
375
## 2.0.0-beta6
476
August 1st, 2018
577

678
### Bug Fixes
7-
* Bump to Java SDK (2.1.2)[https://github.com/optimizely/java-sdk/releases/tag/2.1.2] which improves performance of API calls from.
79+
* Bump to Java SDK [2.1.2](https://github.com/optimizely/java-sdk/releases/tag/2.1.2) which improves performance of API calls from.
880
* Bring back async init without the datafile. (#211)
981

1082
## 2.0.0-beta5

0 commit comments

Comments
 (0)