From 01977c300da650341e764c9658e6a2fc92ed453c Mon Sep 17 00:00:00 2001 From: Will Sewell Date: Thu, 8 Aug 2019 16:48:39 +0100 Subject: [PATCH 1/2] v2 release --- README.md | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d29933f8..7541a56a 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The pusher-java-client is available in Maven Central. com.pusher pusher-java-client - 1.8.0 + 2.0.0 ``` @@ -67,7 +67,7 @@ The pusher-java-client is available in Maven Central. ```groovy dependencies { - compile 'com.pusher:pusher-java-client:1.8.0' + compile 'com.pusher:pusher-java-client:2.0.0' } ``` diff --git a/build.gradle b/build.gradle index 6b80e93a..15a72cd2 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ apply plugin: 'org.ajoberstar.github-pages' apply plugin: 'signing' group = "com.pusher" -version = "1.8.2-SNAPSHOT" +version = "2.0.0" sourceCompatibility = "1.8" targetCompatibility = "1.8" From 53fba72a9e723873b00465f1aeff56f4d376bd36 Mon Sep 17 00:00:00 2001 From: Will Sewell Date: Mon, 12 Aug 2019 15:20:57 +0100 Subject: [PATCH 2/2] Add additional changes to the CHANGELOG --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 006be02b..7b1b99a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,11 @@ This Changelog is no longer being updated. For any further changes please see the Releases section on this Github repository - https://github.com/pusher/pusher-websocket-java/releases ## Version 2.0.0 -* The onEvent handler now gets called with one parameter, called the PusherEvent. This PusherEvent has all the same information available as was available before with the 3 parameters, but now is accessible by calling getChannelName(), getData() or getEventName() on the PusherEvent object you receive. In addition, for presence channel client events, you can now retrieve an authenticated User ID by calling getUserId() on the PusherEvent object. To read more on Authenticated users, see the README or our docs [here](https://pusher.com/docs/channels/using_channels/events#user-id-in-client-events). +* The onEvent handler now gets called with one parameter, called the PusherEvent. This PusherEvent has all the same information available as was available before with the 3 parameters, but now is accessible by calling getChannelName(), getData() or getEventName() on the PusherEvent object you receive. In addition, for presence channel client events, you can now retrieve an authenticated User ID by calling getUserId() on the PusherEvent object. To read more on Authenticated users, see the README or our docs [here](https://pusher.com/docs/channels/using_channels/events#user-id-in-client-events). +* Update Java sourceCompatibility and targetCompatibility to 1.8. +* Fix an issue where the reconnect logic would not be reset after connect() is called again. +* Depend on `org.java-websocket:Java-WebSocket:1.4.0` instead of `com.pusher:java-websocket:1.4.1`. ## Version 1.4.0 * Update the dependency to use pusher/java-websocket fork and remove dependency on clojars.org repository.