-
Notifications
You must be signed in to change notification settings - Fork 38
update for 2.0.0 release #192
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
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c02ad9d
update for 2.0.0 release
thomaszurkan-optimizely 57393e7
Merge branch 'master' into update/for2.0.0release
thomaszurkan-optimizely f7242d0
add bug fix for JobWorkService
thomaszurkan-optimizely adbec9e
Merge branch 'update/for2.0.0release' of https://github.com/optimizel…
thomaszurkan-optimizely 462979e
Merge branch 'master' into update/for2.0.0release
thomaszurkan-optimizely bcb71e0
add license header
thomaszurkan-optimizely 59bec18
add other bug fixes to release 2.0.0 changelog
thomaszurkan-optimizely b3b9354
add github issue and fix date
thomaszurkan-optimizely d869718
use optimizely java sdk 2.0.1
thomaszurkan-optimizely d0a0d0c
Merge branch 'master' into update/for2.0.0release
thomaszurkan-optimizely File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,54 @@ | ||
# Optimizely Android X SDK Changelog | ||
|
||
## 2.0.0 | ||
|
||
April 13th, 2018 | ||
|
||
This major release of the Optimizely SDK introduces APIs for Feature Management. It also introduces some breaking changes listed below. | ||
|
||
### New Features | ||
* Introduces the `isFeatureEnabled` API to determine whether to show a feature to a user or not. | ||
``` | ||
Boolean enabled = optimizelyClient.isFeatureEnabled("my_feature_key", "user_1", userAttributes); | ||
``` | ||
|
||
* 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: | ||
``` | ||
ArrayList<String> enabledFeatures = optimizelyClient.getEnabledFeatures("user_1", userAttributes); | ||
``` | ||
|
||
* Introduces Feature Variables to configure or parameterize your feature. There are four variable types: `Integer`, `String`, `Double`, `Boolean`. | ||
``` | ||
String stringVariable = optimizelyClient.getFeatureVariableString("my_feature_key", "string_variable_key", "user_1"); | ||
Integer integerVariable = optimizelyClient.getFeatureVariableInteger("my_feature_key", "integer_variable_key", "user_1"); | ||
Double doubleVariable = optimizelyClient.getFeatureVariableDouble("my_feature_key", "double_variable_key", "user_1"); | ||
Boolean booleanVariable = optimizelyClient.getFeatureVariableBoolean("my_feature_key", "boolean_variable_key", "user_1"); | ||
``` | ||
|
||
### Breaking changes | ||
* 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. | ||
``` | ||
Map<String, Object> eventTags = new HashMap<String, Object>(); | ||
|
||
// reserved "revenue" tag | ||
eventTags.put("revenue", 6432); | ||
|
||
optimizelyClient.track("event_key", "user_id", userAttributes, eventTags); | ||
``` | ||
|
||
* 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()`) | ||
|
||
### Bug Fixes | ||
* Fix for the following issue: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there are any Github issues that track these we can link em here via |
||
https://issuetracker.google.com/issues/63622293 | ||
The JobWorkService was probably destroyed but we didn't cancel the | ||
processor. It causes an exception in dequeueWork in our JobWorkService. | ||
We wrapped the dequeueWork with a try/catch and are also now cancelling the background task in onDestroy. | ||
|
||
* Fix for possible error when loading logger via dagger (fall back logger provided). | ||
|
||
* Load UserProfileService on synchronous start. Also, cleanup UserProfileService cache in the background thread by removing experiments that are no longer in the datafile. | ||
|
||
## 2.0.0-beta1 | ||
|
||
March 29th, 2018 | ||
|
16 changes: 16 additions & 0 deletions
16
android-sdk/src/main/java/com/optimizely/ab/android/sdk/OptimizelyLiteLogger.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
April 25th 😀