Skip to content

Commit 9dd7e5f

Browse files
authored
Bump for 2.0.0-beta6 release. (#212)
1 parent 08bf693 commit 9dd7e5f

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Optimizely Android X SDK Changelog
22

3+
## 2.0.0-beta6
4+
August 1st, 2018
5+
6+
### 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.
8+
* Bring back async init without the datafile. (#211)
9+
310
## 2.0.0-beta5
411
July 23, 2018
512

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ext {
5353
build_tools_version = "27.0.0"
5454
min_sdk_version = 14
5555
target_sdk_version = 26
56-
java_core_ver = "2.1.1"
56+
java_core_ver = "2.1.2"
5757
android_logger_ver = "1.3.6"
5858
support_annotations_ver = "24.2.1"
5959
junit_ver = "4.12"

event-handler/src/androidTest/java/com/optimizely/ab/android/event_handler/DefaultEventHandlerTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import android.util.Pair;
2626

2727
import com.optimizely.ab.event.LogEvent;
28+
import com.optimizely.ab.event.internal.payload.EventBatch;
2829

2930
import org.junit.After;
3031
import org.junit.Before;
@@ -54,7 +55,6 @@ public class DefaultEventHandlerTest {
5455

5556
private DefaultEventHandler eventHandler;
5657
private String url = "http://www.foo.com";
57-
private String requestBody = "key1=val1&key2=val2&key3=val3";
5858

5959
@Before
6060
public void setupEventHandler() {
@@ -68,20 +68,20 @@ public void setupEventHandler() {
6868

6969
@Test
7070
public void dispatchEventSuccess() throws MalformedURLException {
71-
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), requestBody));
71+
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), new EventBatch()));
7272
//verify(context).startService(any(Intent.class));
7373
verify(logger).info("Sent url {} to the event handler service", "http://www.foo.com");
7474
}
7575

7676
@Test
7777
public void dispatchEmptyUrlString() {
78-
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, "", new HashMap<String, String>(), requestBody));
78+
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, "", new HashMap<String, String>(), new EventBatch()));
7979
verify(logger).error("Event dispatcher received an empty url");
8080
}
8181

8282
@Test
8383
public void dispatchEmptyParams() {
84-
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), requestBody));
84+
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), new EventBatch()));
8585
//verify(context).startService(any(Intent.class));
8686
verify(logger).info("Sent url {} to the event handler service", "http://www.foo.com");
8787
}

event-handler/src/test/java/com/optimizely/ab/android/event_handler/DefaultEventHandlerTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import android.content.Intent;
2121

2222
import com.optimizely.ab.event.LogEvent;
23+
import com.optimizely.ab.event.internal.payload.EventBatch;
2324

2425
import org.junit.Before;
2526
import org.junit.Test;
@@ -45,7 +46,6 @@ public class DefaultEventHandlerTest {
4546

4647
private DefaultEventHandler eventHandler;
4748
private String url = "http://www.foo.com";
48-
private String requestBody = "key1=val1&key2=val2&key3=val3";
4949

5050
@Before
5151
public void setupEventHandler() {
@@ -57,20 +57,20 @@ public void setupEventHandler() {
5757

5858
@Test
5959
public void dispatchEventSuccess() throws MalformedURLException {
60-
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), requestBody));
60+
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), new EventBatch()));
6161
verify(context).startService(any(Intent.class));
6262
verify(logger).info("Sent url {} to the event handler service", "http://www.foo.com");
6363
}
6464

6565
@Test
6666
public void dispatchEmptyUrlString() {
67-
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, "", new HashMap<String, String>(), requestBody));
67+
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, "", new HashMap<String, String>(), new EventBatch()));
6868
verify(logger).error("Event dispatcher received an empty url");
6969
}
7070

7171
@Test
7272
public void dispatchEmptyParams() {
73-
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), requestBody));
73+
eventHandler.dispatchEvent(new LogEvent(LogEvent.RequestMethod.POST, url, new HashMap<String, String>(), new EventBatch()));
7474
verify(context).startService(any(Intent.class));
7575
verify(logger).info("Sent url {} to the event handler service", "http://www.foo.com");
7676
}

0 commit comments

Comments
 (0)