Skip to content

Commit

Permalink
PubNub SDK v6.0.1 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
client-engineering-bot committed May 25, 2021
1 parent 6cc069a commit 8f423fb
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 13 deletions.
11 changes: 9 additions & 2 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: kotlin
version: 6.0.0
version: 6.0.1
schema: 1
scm: github.com/pubnub/kotlin
files:
- build/libs/pubnub-kotlin-6.0.0-all.jar
- build/libs/pubnub-kotlin-6.0.1-all.jar
sdks:
-
type: library
Expand Down Expand Up @@ -233,6 +233,13 @@ sdks:
license-url: https://github.com/stleary/JSON-java/blob/20210307/LICENSE
is-required: Required
changelog:
-
version: v6.0.1
date: 2021-05-25
changes:
-
type: bug
text: "There was missing PNAcknowledgmentCategory status callback after unsubscribe operation. Problem was caused by ungaught SSLException. This release provides a fix for the issue."
-
version: v6.0.0
date: 2021-05-12
Expand Down
10 changes: 4 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
## [v6.0.0](https://github.com/pubnub/kotlin/releases/tag/v6.0.0)
May 12 2021
## [v6.0.1](https://github.com/pubnub/kotlin/releases/tag/v6.0.1)
May 25 2021

[Full Changelog](https://github.com/pubnub/kotlin/compare/v5.1.3...v6.0.0)
[Full Changelog](https://github.com/pubnub/kotlin/compare/v6.0.0...v6.0.1)

- Random initialisation vector used when encryption enabled is now default behaviour.
- Bumping versions of used dependencies.
- There were some non daemon threads running in background preventing VM from exiting. Now they are daemon threads.
- There was missing PNAcknowledgmentCategory status callback after unsubscribe operation. Problem was caused by ungaught SSLException. This release provides a fix for the issue.


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
<dependency>
<groupId>com.pubnub</groupId>
<artifactId>pubnub-gson</artifactId>
<version>6.0.0</version>
<version>6.0.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

group = 'com.pubnub'
version = '6.0.0'
version = '6.0.1'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,18 @@ class SubscribeIntegrationTests : BaseIntegrationTest() {
@Test
fun testUnsubscribeFromAllChannels() {
val success = AtomicBoolean()
val randomChannel = randomChannel()

pubnub.subscribeToBlocking(randomChannel)

pubnub.addListener(object : SubscribeCallback() {
override fun status(pubnub: PubNub, pnStatus: PNStatus) {
success.set(pubnub.getSubscribedChannels().isEmpty())
if (pnStatus.category == PNStatusCategory.PNAcknowledgmentCategory &&
pnStatus.affectedChannels.contains(randomChannel) &&
pnStatus.operation == PNOperationType.PNUnsubscribeOperation
) {
success.set(pubnub.getSubscribedChannels().isEmpty())
}
}
})

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/pubnub/api/PubNub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PubNub(val configuration: PNConfiguration) {

private companion object Constants {
private const val TIMESTAMP_DIVIDER = 1000
private const val SDK_VERSION = "6.0.0"
private const val SDK_VERSION = "6.0.1"
private const val MAX_SEQUENCE = 65535
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/com/pubnub/okhttp3/PNCall.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import okhttp3.Call
import okhttp3.Connection
import org.slf4j.LoggerFactory
import java.net.SocketException
import javax.net.ssl.SSLException
import kotlin.reflect.full.declaredMemberFunctions
import kotlin.reflect.jvm.isAccessible

Expand All @@ -17,6 +18,8 @@ internal class PNCall(
realCall.getConnection()?.socket()?.shutdownInput()
} catch (se: SocketException) {
log.warn("Caught exception when canceling call", se)
} catch (_: SSLException) {
// we have to swallow this exception, otherwise cancel will break status delivery
} catch (uoe: UnsupportedOperationException) {
// silent catch
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/com/pubnub/api/legacy/PubNubTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PubNubTest : BaseTest() {
fun getVersionAndTimeStamp() {
val version = pubnub.version
val timeStamp = pubnub.timestamp()
assertEquals("6.0.0", version)
assertEquals("6.0.1", version)
assertTrue(timeStamp > 0)
}
}

0 comments on commit 8f423fb

Please sign in to comment.