Skip to content

Commit cad88f9

Browse files
authored
Add release notes for the 2.0 beta. (#187)
1 parent 1951d62 commit cad88f9

File tree

1 file changed

+65
-21
lines changed

1 file changed

+65
-21
lines changed

CHANGELOG.md

+65-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Optimizely Android X SDK Changelog
2-
### 1.6.0
2+
3+
## 2.0.0-beta1
4+
5+
March 29th, 2018
6+
7+
This major release of the Optimizely SDK introduces APIs for Feature Management. It also introduces some breaking changes listed below.
8+
9+
### New Features
10+
* Introduces the `isFeatureEnabled` API to determine whether to show a feature to a user or not.
11+
```
12+
Boolean enabled = optimizelyClient.isFeatureEnabled("my_feature_key", "user_1", userAttributes);
13+
```
14+
15+
* You can also get all the enabled features for the user by calling the following method which returns a list of strings representing the feature keys:
16+
```
17+
ArrayList<String> enabledFeatures = optimizelyClient.getEnabledFeatures("user_1", userAttributes);
18+
```
19+
20+
* Introduces Feature Variables to configure or parameterize your feature. There are four variable types: `Integer`, `String`, `Double`, `Boolean`.
21+
```
22+
String stringVariable = optimizelyClient.getFeatureVariableString("my_feature_key", "string_variable_key", "user_1");
23+
Integer integerVariable = optimizelyClient.getFeatureVariableInteger("my_feature_key", "integer_variable_key", "user_1");
24+
Double doubleVariable = optimizelyClient.getFeatureVariableDouble("my_feature_key", "double_variable_key", "user_1");
25+
Boolean booleanVariable = optimizelyClient.getFeatureVariableBoolean("my_feature_key", "boolean_variable_key", "user_1");
26+
```
27+
28+
### Breaking changes
29+
* 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.
30+
```
31+
Map<String, Object> eventTags = new HashMap<String, Object>();
32+
33+
// reserved "revenue" tag
34+
eventTags.put("revenue", 6432);
35+
36+
optimizelyClient.track("event_key", "user_id", userAttributes, eventTags);
37+
```
38+
39+
* Live variable accessor methods have been removed and have been replaced with the feature variable methods mentioned above. Feature variables are scoped to a feature so you must supply the feature key in addition to the variable key to access them.
40+
41+
- `getVariableBoolean` now becomes `getFeatureVariableBoolean`
42+
- `getVariableString` now becomes `getFeatureVariableString`
43+
- `getVariableInteger` now becomes `getFeatureVariableInteger`
44+
- `getVariableFloat` now becomes `getFeatureVariableDouble`
45+
46+
## 1.6.0
347
Febuary 3, 2018
448

549
- Release 1.6.0
@@ -16,7 +60,7 @@ This release also deprecates the old notification broadcaster in favor of a noti
1660
*Breaking change*
1761
There is a new abstract method on NotificationListener notify(args...);
1862

19-
### 1.5.1
63+
## 1.5.1
2064
November 1, 2017
2165

2266
- Release 1.5.1
@@ -45,7 +89,7 @@ November 1, 2017
4589
- Updated build tools and target to API 26 which will cause proguard warnings if you are not using the latest build tools.
4690
- Also for Android O, you must register for the SUPPLICANT_CONNECTION_CHANGE_ACTION intent filter in code (see the test-app for an example).
4791

48-
### 1.5.0
92+
## 1.5.0
4993
October 30, 2017
5094

5195
- Release 1.5.0
@@ -73,7 +117,7 @@ October 30, 2017
73117
- Updated build tools and target to API 26
74118
- Also for Android O, you must register for the SUPPLICANT_CONNECTION_CHANGE_ACTION intent filter in code (see the test-app for an example).
75119

76-
### 1.4.0
120+
## 1.4.0
77121
August 9, 2017
78122

79123
- Release 1.4.0
@@ -97,7 +141,7 @@ August 9, 2017
97141
- Background processes are not running by default.
98142
- Various handlers (EventHandler, DatafileHandler, ErrorHandler) can be overridden.
99143

100-
### 1.4.0-beta-RC2
144+
## 1.4.0-beta-RC2
101145
August 9, 2017
102146

103147
- Release candidate for 1.4.0
@@ -121,7 +165,7 @@ August 9, 2017
121165
- Background processes are not running by default.
122166
- Various handlers (EventHandler, DatafileHandler, ErrorHandler) can be overridden.
123167

124-
### 1.4.0-beta-RC1
168+
## 1.4.0-beta-RC1
125169
August 2, 2017
126170

127171
- Release candidate for 1.4.0
@@ -144,7 +188,7 @@ August 2, 2017
144188
- Background processes are not running by default.
145189
- Various handlers (EventHandler, DatafileHandler, ErrorHandler) can be overridden.
146190

147-
### 1.4.0-alpha-RC1
191+
## 1.4.0-alpha-RC1
148192
July 26, 2017
149193

150194
- Release candidate for 1.4.0
@@ -167,7 +211,7 @@ July 26, 2017
167211
- Various handlers (EventHandler, DatafileHandler, ErrorHandler) can be overridden.
168212

169213

170-
### 1.4.0-alpha
214+
## 1.4.0-alpha
171215
July 11, 2017
172216

173217
- Allow configure background tasks to run or not.
@@ -184,36 +228,36 @@ July 11, 2017
184228
- Background processes are not running by default.
185229
- Various handlers (EventHandler, DatafileHandler, ErrorHandler) can be overridden.
186230

187-
### 1.3.1
231+
## 1.3.1
188232
April 25, 2017
189233

190234
- Handle exceptions in top-level APIs
191235

192-
### 1.3.0
236+
## 1.3.0
193237
April 12, 2017
194238

195239
- Add getter for `ProjectConfig`
196240

197-
### 1.2.0
241+
## 1.2.0
198242
March 20, 2017
199243

200244
- Add event tags to the `track` API
201245
- Deprecated `eventValue` parameter from the `track` API. Use event tags to pass in event value instead
202246
- Update to java-core 1.6.0 (https://github.com/optimizely/java-sdk/blob/master/CHANGELOG.md#160)
203247

204-
### 1.1.0
248+
## 1.1.0
205249
February 17, 2017
206250

207251
- Support Android TV SDK client engine
208252
- Update to java-core 1.5.0 (https://github.com/optimizely/java-sdk/blob/master/CHANGELOG.md#150)
209253

210254

211-
### 1.0.0
255+
## 1.0.0
212256
January 23, 2017
213257

214258
- GA release
215259

216-
### 0.5.0
260+
## 0.5.0
217261
January 20, 2017
218262

219263
*Bug Fixes*
@@ -224,15 +268,15 @@ January 20, 2017
224268

225269
- Change live variable getter signature from `getVariableFloat` to `getVariableDouble`
226270

227-
### 0.4.1
271+
## 0.4.1
228272
December 28, 2016
229273

230274
*Bug Fixes*
231275

232276
- Add try catches around Cache.java and Client.java to handle exceptions gracefully
233277
- Fixes crash with not being able to bind to DatafileService
234278

235-
### 0.4.0
279+
## 0.4.0
236280
December 15, 2016
237281

238282
*New Features*
@@ -244,14 +288,14 @@ December 15, 2016
244288
- Rename `AndroidUserExperimentRecord` to `AndroidUserProfile`
245289
- Change position of `activateExperiment` parameter in live variable getters
246290

247-
### 0.3.0
291+
## 0.3.0
248292
December 8, 2016
249293

250294
*New Features*
251295

252296
- Add support for live variables
253297

254-
### 0.2.2
298+
## 0.2.2
255299
November 30, 2016
256300

257301
*Bug Fixes*
@@ -262,19 +306,19 @@ November 30, 2016
262306
- Changed the initialization call from `start` to `initialize`
263307
- `getOptimizely` now only returns the cached version of the client
264308

265-
### 0.2.1
309+
## 0.2.1
266310
November 4, 2016
267311

268312
*Bug Fixes*
269313
- Ensures that the `OptimizelyStartedListener` is always called *once* and *only once* even if Optimizely fails to load a datafile from everywhere. It should be safe to launch parts of your app after the callback hits now.
270314

271-
### 0.2.0
315+
## 0.2.0
272316
October 28, 2016
273317

274318
*Breaking Changes*
275319
- Renames `AndroidOptimizely` to `OptimizelyClient`
276320

277-
### 0.1.3
321+
## 0.1.3
278322
October 27, 2016
279323

280324
*Bug Fixes*

0 commit comments

Comments
 (0)