File tree 8 files changed +29
-13
lines changed
integrationTest/kotlin/com/pubnub/api/integration
test/kotlin/com/pubnub/api/legacy
8 files changed +29
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : kotlin
2
- version : 6.0.0
2
+ version : 6.0.1
3
3
schema : 1
4
4
scm : github.com/pubnub/kotlin
5
5
files :
6
- - build/libs/pubnub-kotlin-6.0.0 -all.jar
6
+ - build/libs/pubnub-kotlin-6.0.1 -all.jar
7
7
sdks :
8
8
-
9
9
type : library
@@ -233,6 +233,13 @@ sdks:
233
233
license-url : https://github.com/stleary/JSON-java/blob/20210307/LICENSE
234
234
is-required : Required
235
235
changelog :
236
+ -
237
+ version : v6.0.1
238
+ date : 2021-05-25
239
+ changes :
240
+ -
241
+ type : bug
242
+ text : " There was missing PNAcknowledgmentCategory status callback after unsubscribe operation. Problem was caused by ungaught SSLException. This release provides a fix for the issue."
236
243
-
237
244
version : v6.0.0
238
245
date : 2021-05-12
Original file line number Diff line number Diff line change 1
- ## [ v6.0.0 ] ( https://github.com/pubnub/kotlin/releases/tag/v6.0.0 )
2
- May 12 2021
1
+ ## [ v6.0.1 ] ( https://github.com/pubnub/kotlin/releases/tag/v6.0.1 )
2
+ May 25 2021
3
3
4
- [ Full Changelog] ( https://github.com/pubnub/kotlin/compare/v5.1.3 ...v6.0.0 )
4
+ [ Full Changelog] ( https://github.com/pubnub/kotlin/compare/v6.0.0 ...v6.0.1 )
5
5
6
- - Random initialisation vector used when encryption enabled is now default behaviour.
7
- - Bumping versions of used dependencies.
8
- - There were some non daemon threads running in background preventing VM from exiting. Now they are daemon threads.
6
+ - There was missing PNAcknowledgmentCategory status callback after unsubscribe operation. Problem was caused by ungaught SSLException. This release provides a fix for the issue.
9
7
10
8
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
23
23
<dependency >
24
24
<groupId >com.pubnub</groupId >
25
25
<artifactId >pubnub-gson</artifactId >
26
- <version >6.0.0 </version >
26
+ <version >6.0.1 </version >
27
27
</dependency >
28
28
```
29
29
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ plugins {
13
13
}
14
14
15
15
group = ' com.pubnub'
16
- version = ' 6.0.0 '
16
+ version = ' 6.0.1 '
17
17
18
18
repositories {
19
19
mavenCentral()
Original file line number Diff line number Diff line change @@ -107,10 +107,18 @@ class SubscribeIntegrationTests : BaseIntegrationTest() {
107
107
@Test
108
108
fun testUnsubscribeFromAllChannels () {
109
109
val success = AtomicBoolean ()
110
+ val randomChannel = randomChannel()
111
+
112
+ pubnub.subscribeToBlocking(randomChannel)
110
113
111
114
pubnub.addListener(object : SubscribeCallback () {
112
115
override fun status (pubnub : PubNub , pnStatus : PNStatus ) {
113
- success.set(pubnub.getSubscribedChannels().isEmpty())
116
+ if (pnStatus.category == PNStatusCategory .PNAcknowledgmentCategory &&
117
+ pnStatus.affectedChannels.contains(randomChannel) &&
118
+ pnStatus.operation == PNOperationType .PNUnsubscribeOperation
119
+ ) {
120
+ success.set(pubnub.getSubscribedChannels().isEmpty())
121
+ }
114
122
}
115
123
})
116
124
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class PubNub(val configuration: PNConfiguration) {
79
79
80
80
private companion object Constants {
81
81
private const val TIMESTAMP_DIVIDER = 1000
82
- private const val SDK_VERSION = " 6.0.0 "
82
+ private const val SDK_VERSION = " 6.0.1 "
83
83
private const val MAX_SEQUENCE = 65535
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import okhttp3.Call
4
4
import okhttp3.Connection
5
5
import org.slf4j.LoggerFactory
6
6
import java.net.SocketException
7
+ import javax.net.ssl.SSLException
7
8
import kotlin.reflect.full.declaredMemberFunctions
8
9
import kotlin.reflect.jvm.isAccessible
9
10
@@ -17,6 +18,8 @@ internal class PNCall(
17
18
realCall.getConnection()?.socket()?.shutdownInput()
18
19
} catch (se: SocketException ) {
19
20
log.warn(" Caught exception when canceling call" , se)
21
+ } catch (_: SSLException ) {
22
+ // we have to swallow this exception, otherwise cancel will break status delivery
20
23
} catch (uoe: UnsupportedOperationException ) {
21
24
// silent catch
22
25
}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class PubNubTest : BaseTest() {
67
67
fun getVersionAndTimeStamp () {
68
68
val version = pubnub.version
69
69
val timeStamp = pubnub.timestamp()
70
- assertEquals(" 6.0.0 " , version)
70
+ assertEquals(" 6.0.1 " , version)
71
71
assertTrue(timeStamp > 0 )
72
72
}
73
73
}
You can’t perform that action at this time.
0 commit comments