File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : java
2- version : 6.0.1
2+ version : 6.0.2
33schema : 1
44scm : github.com/pubnub/java
55files :
6- - build/libs/pubnub-gson-6.0.1 -all.jar
6+ - build/libs/pubnub-gson-6.0.2 -all.jar
77sdks :
88 -
99 type : library
2323 -
2424 distribution-type : library
2525 distribution-repository : GitHub
26- package-name : pubnub-gson-6.0.1
27- location : https://github.com/pubnub/java/releases/download/v6.0.1 /pubnub-gson-6.0.1 -all.jar
26+ package-name : pubnub-gson-6.0.2
27+ location : https://github.com/pubnub/java/releases/download/v6.0.2 /pubnub-gson-6.0.2 -all.jar
2828 supported-platforms :
2929 supported-operating-systems :
3030 Android :
@@ -135,8 +135,8 @@ sdks:
135135 -
136136 distribution-type : library
137137 distribution-repository : maven
138- package-name : pubnub-gson-6.0.1
139- location : https://repo.maven.apache.org/maven2/com/pubnub/pubnub-gson/6.0.1 /pubnub-gson-6.0.1 .jar
138+ package-name : pubnub-gson-6.0.2
139+ location : https://repo.maven.apache.org/maven2/com/pubnub/pubnub-gson/6.0.2 /pubnub-gson-6.0.2 .jar
140140 supported-platforms :
141141 supported-operating-systems :
142142 Android :
@@ -234,6 +234,11 @@ sdks:
234234 is-required : Required
235235
236236changelog :
237+ - date : 2022-05-19
238+ version : v6.0.2
239+ changes :
240+ - type : bug
241+ text : " Upgraded gson to 2.9.0 to make SDK working under Java 17."
237242 - date : 2022-05-09
238243 version : v6.0.1
239244 changes :
Original file line number Diff line number Diff line change 1+ ## v6.0.2
2+ May 19 2022
3+
4+ #### Fixed
5+ - Upgraded gson to 2.9.0 to make SDK working under Java 17.
6+
17## v6.0.1
28May 09 2022
39
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ You will need the publish and subscribe keys to authenticate your app. Get your
2222 <dependency >
2323 <groupId >com.pubnub</groupId >
2424 <artifactId >pubnub-gson</artifactId >
25- <version >6.0.1 </version >
25+ <version >6.0.2 </version >
2626 </dependency >
2727 ```
2828
2929 * for Gradle, add the following dependency in your `gradle.build`:
3030 ```groovy
31- implementation 'com.pubnub:pubnub-gson:6.0.1 '
31+ implementation 'com.pubnub:pubnub-gson:6.0.2 '
3232 ```
3333
34342. Configure your keys:
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ plugins {
1212}
1313group = ' com.pubnub'
1414
15- version = ' 6.0.1 '
15+ version = ' 6.0.2 '
1616
1717description = """ """
1818
@@ -53,7 +53,7 @@ dependencies {
5353 // compile group: 'com.squareup.retrofit2', name: 'converter-jackson', version:'2.1.0'
5454
5555 // gson
56- api ' com.google.code.gson:gson:2.8.6 '
56+ api ' com.google.code.gson:gson:2.9.0 '
5757 implementation group : ' com.squareup.retrofit2' , name : ' converter-gson' , version : ' 2.6.2'
5858
5959 // cbor
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public class PubNub {
104104 private static final int TIMESTAMP_DIVIDER = 1000 ;
105105 private static final int MAX_SEQUENCE = 65535 ;
106106
107- private static final String SDK_VERSION = "6.0.1 " ;
107+ private static final String SDK_VERSION = "6.0.2 " ;
108108 private final ListenerManager listenerManager ;
109109 private final StateManager stateManager ;
110110
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public MapperManager() {
4949 .registerTypeAdapter (boolean .class , booleanAsIntAdapter )
5050 .registerTypeAdapter (JSONObject .class , new JSONObjectAdapter ())
5151 .registerTypeAdapter (JSONArray .class , new JSONArrayAdapter ())
52+ .disableHtmlEscaping ()
5253 .create ();
5354 this .converterFactory = GsonConverterFactory .create (this .getObjectMapper ());
5455 }
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public void getVersionAndTimeStamp() {
9999 pubnub = new PubNub (pnConfiguration );
100100 String version = pubnub .getVersion ();
101101 int timeStamp = pubnub .getTimestamp ();
102- Assert .assertEquals ("6.0.1 " , version );
102+ Assert .assertEquals ("6.0.2 " , version );
103103 Assert .assertTrue (timeStamp > 0 );
104104 }
105105
You can’t perform that action at this time.
0 commit comments