Skip to content

Commit 0e1ebb0

Browse files
benjamin-tang-pusherpusher-cisonologico
authored
Add proguard file (#344)
* exclude pusher.client class from minifying * Bump to version 2.4.3 Co-authored-by: Pusher CI <[email protected]> Co-authored-by: sonologico <[email protected]>
1 parent a7d2b30 commit 0e1ebb0

File tree

4 files changed

+197
-192
lines changed

4 files changed

+197
-192
lines changed

CHANGELOG.md

Lines changed: 193 additions & 189 deletions
Original file line numberDiff line numberDiff line change
@@ -1,189 +1,193 @@
1-
# Changelog
2-
3-
## Version 2.4.2 - 23th Sep 2022
4-
* Fixes a crash when an event comes in without and escaped data json member.
5-
* update to com.google.code.gson:gson:2.9.1
6-
* update to org.java-websocket:Java-WebSocket:1.5.3
7-
8-
## Version 2.4.1 - 13th Sep 2022
9-
* Refactoring and code cleanup of event handling in the SDK
10-
* Fixes subscription_count events
11-
12-
## Version 2.4.0 - 15th July 2022
13-
* Add support for Subscription count events
14-
15-
## Version 2.3.0 - 4th July 2022
16-
* Added support for user sign in and server to user messages
17-
* Fixed issue with calling disconnect while the client is attempting reconnection
18-
* Fixed issue with calling connect while the client is disconnecting
19-
20-
## Version 2.2.8 - 30th November 2021
21-
* Add global [event listner](https://github.com/pusher/pusher-websocket-java/issues/305)
22-
23-
## Version 2.2.7 - 11th November 2021
24-
* Fixed an [issue Vulnerability with legacy Gson dependency](https://github.com/pusher/pusher-websocket-java/issues/305)
25-
26-
## Version 2.2.6 - 17th March 2021
27-
* Fixed an [issue causing a NullPointerException if event data on a Presence channel was malformed or missing](https://github.com/pusher/pusher-websocket-java/pull/290)
28-
29-
## Version 2.2.5 - 11th August 2020
30-
* Fixed an [issue with the Java-WebSocket library with android pre-sdk24 devices causing a NoSuchMethod exception](https://github.com/pusher/pusher-websocket-java/pull/284)
31-
32-
## Version 2.2.4 - 3rd August 2020
33-
* Removed unnecessary code in the TweetNaClFast implementation
34-
* Updated the Java-WebSocket library to 1.5.1 as the [current version 1.4.0 has a known critical vulnerability.](https://github.com/pusher/pusher-websocket-java/issues/279)
35-
36-
## Version 2.2.3 - 8th July 2020
37-
38-
* Fixed LazySodium causing a crash on Android devices by swapping it out for [TweetNaCl](https://github.com/InstantWebP2P/tweetnacl-java)
39-
40-
## Version 2.2.2 - 6th July 2020
41-
42-
* Fixed an issue where some private encrypted messages were not decrypted accurately by swapping our implementation of SecretBoxOpener for one provided by [Lazy Sodium](https://github.com/terl/lazysodium-java)
43-
44-
## Version 2.2.1 - 22nd April 2020
45-
46-
* Changed PusherOptions `setForceTLS` and `isForceTLS` to `setUseTLS` and `isUseTLS` to align with the other client SDKs.
47-
48-
## Version 2.2.0 - 22nd April 2020
49-
50-
* Changed PusherOptions `setEncrypted` and `isEncrypted` to `setForceTLS` and `isForceTLS` to reduce confusion between this option and private encrypted channels.
51-
52-
## Version 2.1.1 - 15th April 2020
53-
54-
* Fix a case where multiple websocket connections could be opened at once
55-
if reconnection was triggered by an activity timeout.
56-
57-
## Version 2.1.0 - 8th April 2020
58-
59-
* Added support for [private encrypted channels](https://pusher.com/docs/channels/using_channels/encrypted-channels)
60-
61-
## Version 2.0.2
62-
63-
* Make a no-op state change non-fatal, allowing transitions to/from the same state
64-
65-
## Version 2.0.1
66-
67-
* Forward `channel_data` returned by the auth endpoint when subscribing to private channels
68-
69-
## Version 2.0.0
70-
71-
* 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).
72-
* Update Java sourceCompatibility and targetCompatibility to 1.8.
73-
* Fix an issue where the reconnect logic would not be reset after connect() is called again.
74-
* Depend on `org.java-websocket:Java-WebSocket:1.4.0` instead of `com.pusher:java-websocket:1.4.1`.
75-
76-
## Version 1.4.0
77-
* Update the dependency to use pusher/java-websocket fork and remove dependency on clojars.org repository.
78-
79-
## Version 1.3.0
80-
* Add retry logic when the connection is lost
81-
* Accept 201 status code from auth endpoints
82-
83-
## Version 1.2.2
84-
85-
* Improve resillience of pong timeout disconnections
86-
87-
## Version 1.2.0
88-
89-
2016-07-05 jpatel531
90-
91-
* Expose Client interface
92-
93-
## Version 1.1.3
94-
95-
2016-05-12 mdpye, plackemacher, jpatel531
96-
97-
* Fix exceptions where tasks were being pushed onto a shutting-down event queue.
98-
* Reduce construction of GSON objects and keep one centralized instance.
99-
100-
## Version 1.1.2
101-
102-
2016-03-23 jpatel531
103-
104-
* Fix cases where the library would throw an error due to a connection state change
105-
from `CONNECTING` to `CONNECTING`. More information [here](https://github.com/pusher/pusher-websocket-java/pull/102)
106-
* Fix `ConcurrentModificationException` on event listeners.
107-
108-
## Version 1.1.1
109-
110-
2016-03-22 jpatel531
111-
112-
* Removes the dependency on slf4j-log4j
113-
114-
## Version 1.1.0
115-
116-
2016-03-09 jpatel531, jameshfisher
117-
118-
* Allow specifying a proxy via which to connect to Pusher.
119-
120-
## Version 1.0.2
121-
122-
2015-11-06 leggetter, siggijons
123-
* Use @SerializedName in PresenceChannelImpl for better serialization support across languages e.g. Turkish
124-
125-
## Version 1.0.1
126-
127-
2015-11-06 hamchapman, jpatel531
128-
* Resolves issues where Gson would cast numeric user ids as doubles before converting them to a string, leading to inconsistencies
129-
130-
## Version 1.0.0
131-
132-
2015-10-7
133-
* Use generic `Map` for `HttpAuthorizer` - trevorrjohn
134-
* Add to `Pusher` `isSubscribed` `getChannel`, `getPrivateChannel` and `getPresenceChannel` methods - jpatel531
135-
* Library unsubscribes asynchronously - jpatel531
136-
* Synchronize access to channel event listeners - trevorrjohn, jpatel531, mdpye
137-
138-
## Version 0.3.3
139-
2015-02-09 mdpye
140-
* REALLY remove the JavaWebsockets submodule
141-
142-
## Version 0.3.2
143-
2015-02-05 mdpye
144-
* Resolve dependency embedding issues, Java-Websockets is now published to clojars.org
145-
2014-12-11 roccozanni
146-
* Allow unsubscribing while disconnected (will not re-subscribe when connection is restored)
147-
2014-02-04 mdpye
148-
* Make ChannelImpl.state volatile - it is potentially read from any thread in pre-send checks triggering client messages
149-
150-
## Version 0.3.1
151-
2013-12-13 mdpye
152-
* Add a generic `<V> V User.getInfo(Class<V>)` which parses the user info into an instance of `V`.
153-
154-
## Version 0.3.0
155-
2013-12-13 mdpye
156-
* BREAKING CHANGE `User.getInfo()` returns valid JSON encoded String rather than the encoding provided by `java.util.AbstractMap.toString()`
157-
158-
## Version 0.2.3
159-
2013-12-06 mdpye
160-
* Simply ping-pong by switching to a model of cancellable timers rather than scheduled checks
161-
162-
## Version 0.2.2
163-
2013-11-18 mdpye
164-
* Use more robust method for finding artifact version
165-
166-
## Version 0.2.1
167-
2013-11-14 mdpye
168-
* EventQueue made a daemon thread and also shutdown on disconnect
169-
170-
## Version 0.2.0
171-
2013-11-08 mdpye
172-
* Fix up pom for inclusion in Maven Central
173-
174-
2013-11-07
175-
* Do not choke on user_id if it is JSON encoded as a number
176-
rather than a string
177-
178-
2013-11-06
179-
* Initiate ping messages from client on activity timeout
180-
Teardown connection if no response seen from server
181-
182-
2013-11-04 mdpye
183-
* Import a logging framework (slf4j)
184-
* Log error with additional info and continue when trying to
185-
transition from disconnected->disconnected state
186-
187-
2013-11-01 mdpye
188-
* Fix state leakage between Pusher instances
189-
* Support setting alternative endpoint
1+
# Changelog
2+
3+
## 2.4.3
4+
5+
- [FIXED] Fix issue with json serialization when using proguard
6+
7+
## Version 2.4.2 - 23th Sep 2022
8+
* Fixes a crash when an event comes in without and escaped data json member.
9+
* update to com.google.code.gson:gson:2.9.1
10+
* update to org.java-websocket:Java-WebSocket:1.5.3
11+
12+
## Version 2.4.1 - 13th Sep 2022
13+
* Refactoring and code cleanup of event handling in the SDK
14+
* Fixes subscription_count events
15+
16+
## Version 2.4.0 - 15th July 2022
17+
* Add support for Subscription count events
18+
19+
## Version 2.3.0 - 4th July 2022
20+
* Added support for user sign in and server to user messages
21+
* Fixed issue with calling disconnect while the client is attempting reconnection
22+
* Fixed issue with calling connect while the client is disconnecting
23+
24+
## Version 2.2.8 - 30th November 2021
25+
* Add global [event listner](https://github.com/pusher/pusher-websocket-java/issues/305)
26+
27+
## Version 2.2.7 - 11th November 2021
28+
* Fixed an [issue Vulnerability with legacy Gson dependency](https://github.com/pusher/pusher-websocket-java/issues/305)
29+
30+
## Version 2.2.6 - 17th March 2021
31+
* Fixed an [issue causing a NullPointerException if event data on a Presence channel was malformed or missing](https://github.com/pusher/pusher-websocket-java/pull/290)
32+
33+
## Version 2.2.5 - 11th August 2020
34+
* Fixed an [issue with the Java-WebSocket library with android pre-sdk24 devices causing a NoSuchMethod exception](https://github.com/pusher/pusher-websocket-java/pull/284)
35+
36+
## Version 2.2.4 - 3rd August 2020
37+
* Removed unnecessary code in the TweetNaClFast implementation
38+
* Updated the Java-WebSocket library to 1.5.1 as the [current version 1.4.0 has a known critical vulnerability.](https://github.com/pusher/pusher-websocket-java/issues/279)
39+
40+
## Version 2.2.3 - 8th July 2020
41+
42+
* Fixed LazySodium causing a crash on Android devices by swapping it out for [TweetNaCl](https://github.com/InstantWebP2P/tweetnacl-java)
43+
44+
## Version 2.2.2 - 6th July 2020
45+
46+
* Fixed an issue where some private encrypted messages were not decrypted accurately by swapping our implementation of SecretBoxOpener for one provided by [Lazy Sodium](https://github.com/terl/lazysodium-java)
47+
48+
## Version 2.2.1 - 22nd April 2020
49+
50+
* Changed PusherOptions `setForceTLS` and `isForceTLS` to `setUseTLS` and `isUseTLS` to align with the other client SDKs.
51+
52+
## Version 2.2.0 - 22nd April 2020
53+
54+
* Changed PusherOptions `setEncrypted` and `isEncrypted` to `setForceTLS` and `isForceTLS` to reduce confusion between this option and private encrypted channels.
55+
56+
## Version 2.1.1 - 15th April 2020
57+
58+
* Fix a case where multiple websocket connections could be opened at once
59+
if reconnection was triggered by an activity timeout.
60+
61+
## Version 2.1.0 - 8th April 2020
62+
63+
* Added support for [private encrypted channels](https://pusher.com/docs/channels/using_channels/encrypted-channels)
64+
65+
## Version 2.0.2
66+
67+
* Make a no-op state change non-fatal, allowing transitions to/from the same state
68+
69+
## Version 2.0.1
70+
71+
* Forward `channel_data` returned by the auth endpoint when subscribing to private channels
72+
73+
## Version 2.0.0
74+
75+
* 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).
76+
* Update Java sourceCompatibility and targetCompatibility to 1.8.
77+
* Fix an issue where the reconnect logic would not be reset after connect() is called again.
78+
* Depend on `org.java-websocket:Java-WebSocket:1.4.0` instead of `com.pusher:java-websocket:1.4.1`.
79+
80+
## Version 1.4.0
81+
* Update the dependency to use pusher/java-websocket fork and remove dependency on clojars.org repository.
82+
83+
## Version 1.3.0
84+
* Add retry logic when the connection is lost
85+
* Accept 201 status code from auth endpoints
86+
87+
## Version 1.2.2
88+
89+
* Improve resillience of pong timeout disconnections
90+
91+
## Version 1.2.0
92+
93+
2016-07-05 jpatel531
94+
95+
* Expose Client interface
96+
97+
## Version 1.1.3
98+
99+
2016-05-12 mdpye, plackemacher, jpatel531
100+
101+
* Fix exceptions where tasks were being pushed onto a shutting-down event queue.
102+
* Reduce construction of GSON objects and keep one centralized instance.
103+
104+
## Version 1.1.2
105+
106+
2016-03-23 jpatel531
107+
108+
* Fix cases where the library would throw an error due to a connection state change
109+
from `CONNECTING` to `CONNECTING`. More information [here](https://github.com/pusher/pusher-websocket-java/pull/102)
110+
* Fix `ConcurrentModificationException` on event listeners.
111+
112+
## Version 1.1.1
113+
114+
2016-03-22 jpatel531
115+
116+
* Removes the dependency on slf4j-log4j
117+
118+
## Version 1.1.0
119+
120+
2016-03-09 jpatel531, jameshfisher
121+
122+
* Allow specifying a proxy via which to connect to Pusher.
123+
124+
## Version 1.0.2
125+
126+
2015-11-06 leggetter, siggijons
127+
* Use @SerializedName in PresenceChannelImpl for better serialization support across languages e.g. Turkish
128+
129+
## Version 1.0.1
130+
131+
2015-11-06 hamchapman, jpatel531
132+
* Resolves issues where Gson would cast numeric user ids as doubles before converting them to a string, leading to inconsistencies
133+
134+
## Version 1.0.0
135+
136+
2015-10-7
137+
* Use generic `Map` for `HttpAuthorizer` - trevorrjohn
138+
* Add to `Pusher` `isSubscribed` `getChannel`, `getPrivateChannel` and `getPresenceChannel` methods - jpatel531
139+
* Library unsubscribes asynchronously - jpatel531
140+
* Synchronize access to channel event listeners - trevorrjohn, jpatel531, mdpye
141+
142+
## Version 0.3.3
143+
2015-02-09 mdpye
144+
* REALLY remove the JavaWebsockets submodule
145+
146+
## Version 0.3.2
147+
2015-02-05 mdpye
148+
* Resolve dependency embedding issues, Java-Websockets is now published to clojars.org
149+
2014-12-11 roccozanni
150+
* Allow unsubscribing while disconnected (will not re-subscribe when connection is restored)
151+
2014-02-04 mdpye
152+
* Make ChannelImpl.state volatile - it is potentially read from any thread in pre-send checks triggering client messages
153+
154+
## Version 0.3.1
155+
2013-12-13 mdpye
156+
* Add a generic `<V> V User.getInfo(Class<V>)` which parses the user info into an instance of `V`.
157+
158+
## Version 0.3.0
159+
2013-12-13 mdpye
160+
* BREAKING CHANGE `User.getInfo()` returns valid JSON encoded String rather than the encoding provided by `java.util.AbstractMap.toString()`
161+
162+
## Version 0.2.3
163+
2013-12-06 mdpye
164+
* Simply ping-pong by switching to a model of cancellable timers rather than scheduled checks
165+
166+
## Version 0.2.2
167+
2013-11-18 mdpye
168+
* Use more robust method for finding artifact version
169+
170+
## Version 0.2.1
171+
2013-11-14 mdpye
172+
* EventQueue made a daemon thread and also shutdown on disconnect
173+
174+
## Version 0.2.0
175+
2013-11-08 mdpye
176+
* Fix up pom for inclusion in Maven Central
177+
178+
2013-11-07
179+
* Do not choke on user_id if it is JSON encoded as a number
180+
rather than a string
181+
182+
2013-11-06
183+
* Initiate ping messages from client on activity timeout
184+
Teardown connection if no response seen from server
185+
186+
2013-11-04 mdpye
187+
* Import a logging framework (slf4j)
188+
* Log error with additional info and continue when trying to
189+
transition from disconnected->disconnected state
190+
191+
2013-11-01 mdpye
192+
* Fix state leakage between Pusher instances
193+
* Support setting alternative endpoint

0 commit comments

Comments
 (0)