Skip to content

Commit c47cdac

Browse files
author
Max Presman
committed
4.0.5
1 parent 00f1d2c commit c47cdac

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
4.0.5
3+
- unified retrofit handling to lower amount of instances and sync'd the state methods.
4+
25
4.0.4
36
- setting State for other UUID's is now supported (again)
47

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
id 'findbugs'
1010
}
1111
group = 'com.pubnub'
12-
version = '4.0.4'
12+
version = '4.0.5'
1313

1414
description = """"""
1515

src/main/java/com/pubnub/api/PubNub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class PubNub {
5353
private static final int TIMESTAMP_DIVIDER = 1000;
5454
private static final int MAX_SEQUENCE = 65535;
5555

56-
private static final String SDK_VERSION = "4.0.4";
56+
private static final String SDK_VERSION = "4.0.5";
5757

5858
public PubNub(final PNConfiguration initialConfig) {
5959
this.configuration = initialConfig;

src/test/java/com/pubnub/api/managers/SubscriptionManagerTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,10 @@ public void status(PubNub pubnub, PNStatus status) {
481481
public void message(PubNub pubnub, PNMessageResult message) {
482482
List<LoggedRequest> requests = findAll(getRequestedFor(urlMatching("/v2/subscribe.*")));
483483

484-
assertEquals("8", requests.get(1).queryParameter("tr").firstValue());
485-
atomic.set(true);
486-
484+
if (requests.size() > 1) {
485+
assertEquals("8", requests.get(1).queryParameter("tr").firstValue());
486+
atomic.set(true);
487+
}
487488
}
488489

489490
@Override

0 commit comments

Comments
 (0)