Skip to content
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Optimizely Java X SDK Changelog

## 3.3.1
October 11th, 2019

### New Features:
- java.util.Supplier is not supported below Android API 24. In order to support Android 22 which still has more than 10% market share, we have changed our implementation to use our own config supplier interface.

## 3.3.0
October 1st, 2019

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ public static ConfigParser getInstance() {
}

//======== Helper methods ========//
@FunctionalInterface
public interface ParserSupplier {

/**
* Gets a result.
*
* @return a result
*/
ConfigParser get();
}

public enum ConfigParserSupplier {
// WARNING THESE MUST REMAIN LAMBDAS!!!
Expand All @@ -49,9 +59,9 @@ public enum ConfigParserSupplier {
JSON_SIMPLE_CONFIG_PARSER("org.json.simple.JSONObject", () -> { return new JsonSimpleConfigParser(); });

private final String className;
private final Supplier<ConfigParser> supplier;
private final ParserSupplier supplier;

ConfigParserSupplier(String className, Supplier<ConfigParser> supplier) {
ConfigParserSupplier(String className, ParserSupplier supplier) {
this.className = className;
this.supplier = supplier;
}
Expand Down