From cf3c50560b8c93b9d348a05c5f5a434b4b02d0c6 Mon Sep 17 00:00:00 2001 From: marcin-cebo <102806110+marcin-cebo@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:14:53 +0100 Subject: [PATCH] PubNub chat v0.9.0 release.(#115) * PubNub chat v0.9.0 release. --------- Co-authored-by: jguz-pubnub Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com> --- .pubnub.yml | 29 +++++++++++++++---- Package.swift | 4 +-- README.md | 2 +- gradle.properties | 2 +- gradle/libs.versions.toml | 2 +- .../pubnub/integration/ChatIntegrationTest.kt | 5 ++++ pubnub-kotlin | 2 +- 7 files changed, 35 insertions(+), 11 deletions(-) diff --git a/.pubnub.yml b/.pubnub.yml index a74542e0..3c4eca9f 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,5 +1,5 @@ name: kmp-chat -version: 0.8.0 +version: 0.9.0 schema: 1 scm: github.com/pubnub/kmp-chat sdks: @@ -21,8 +21,8 @@ sdks: - distribution-type: library distribution-repository: maven - package-name: pubnub-chat-0.8.0 - location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-chat/0.8.0/ + package-name: pubnub-chat-0.9.0 + location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-chat/0.9.0/ supported-platforms: supported-operating-systems: Android: @@ -71,12 +71,31 @@ sdks: requires: - name: pubnub-kotlin - min-version: 10.0.0 - location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.0.0/pubnub-kotlin-10.0.0.jar + min-version: 10.1.0 + location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.1.0/pubnub-kotlin-10.1.0.jar license: PubNub Software Development Kit License license-url: https://github.com/pubnub/kotlin/blob/master/LICENSE is-required: Required changelog: + - date: 2024-11-06 + version: v0.9.0 + changes: + - type: feature + text: "Added MessageDraft." + - type: feature + text: "Added timetoken utils methods." + - type: bug + text: "Added typingTimeoutMargin to improve continuity of typing indicator." + - type: bug + text: "Fix getTyping sending events after close." + - type: bug + text: "Change User.active() to synchronous val User.active." + - type: bug + text: "AccessManager is based on PAM V3 token instead of PAM V2 authKey." + - type: bug + text: "Hard delete returns null." + - type: bug + text: "Replace occurrences of Set with List where ordering matters." - date: 2024-09-24 version: v0.8.0 changes: diff --git a/Package.swift b/Package.swift index 35af94f2..f88e2f0e 100644 --- a/Package.swift +++ b/Package.swift @@ -14,8 +14,8 @@ let package = Package( targets: [ .binaryTarget( name: "PubNubChatRemoteBinaryPackage", - url: "https://github.com/pubnub/kmp-chat/releases/download/chat-v0.8.0/PubNubChat.xcframework.zip", - checksum: "edf1fd649d3fe6257f18179a13a47724d5d177bf2d728ce4f75fa3c7a7873fc7" + url: "https://github.com/pubnub/kmp-chat/releases/download/chat-v0.9.0/PubNubChat.xcframework.zip", + checksum: "e043957bd849c7243085368c0e64607cec6dc2e8db6c863f1a80c025d11f6497" ) ] ) diff --git a/README.md b/README.md index 1a44a088..58b05b31 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your com.pubnub pubnub-chat - 0.8.0 + 0.9.0 ``` diff --git a/gradle.properties b/gradle.properties index dce6d5b7..6c65e707 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ SONATYPE_HOST=DEFAULT SONATYPE_AUTOMATIC_RELEASE=false GROUP=com.pubnub POM_PACKAGING=jar -VERSION_NAME=0.8.1-DEV +VERSION_NAME=0.9.0 POM_NAME=PubNub Chat SDK POM_DESCRIPTION=This SDK offers a set of handy methods to create your own feature-rich chat or add a chat to your existing application. diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 94fc9e53..6c749fa4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,7 +7,7 @@ dokka = "1.9.20" kotlinx_datetime = "0.6.0" kotlinx_coroutines = "1.8.1" kotlinx_serialization = "1.7.1" -pubnub = "10.0.0" +pubnub = "10.1.0" [libraries] pubnub-kotlin-api = { module = "com.pubnub:pubnub-kotlin-api", version.ref = "pubnub" } diff --git a/pubnub-chat-impl/src/commonTest/kotlin/com/pubnub/integration/ChatIntegrationTest.kt b/pubnub-chat-impl/src/commonTest/kotlin/com/pubnub/integration/ChatIntegrationTest.kt index 6c9513dc..a46bbce8 100644 --- a/pubnub-chat-impl/src/commonTest/kotlin/com/pubnub/integration/ChatIntegrationTest.kt +++ b/pubnub-chat-impl/src/commonTest/kotlin/com/pubnub/integration/ChatIntegrationTest.kt @@ -33,6 +33,7 @@ import com.pubnub.chat.types.JoinResult import com.pubnub.chat.types.MessageMentionedUser import com.pubnub.chat.types.MessageMentionedUsers import com.pubnub.chat.types.ThreadMentionData +import com.pubnub.internal.PLATFORM import com.pubnub.kmp.CustomObject import com.pubnub.kmp.createCustomObject import com.pubnub.kmp.createPubNub @@ -65,6 +66,10 @@ class ChatIntegrationTest : BaseChatIntegrationTest() { @Test fun initializeShouldPassWhenPamEnableAndTokenProvided() = runTest { + if (PLATFORM == "iOS") { + return@runTest + } + pubnubPamClient = createPubNub(configPamClient) val token = chatPamServer.pubNub.grantToken( ttl = 1, diff --git a/pubnub-kotlin b/pubnub-kotlin index e615e0cc..b03b1a4a 160000 --- a/pubnub-kotlin +++ b/pubnub-kotlin @@ -1 +1 @@ -Subproject commit e615e0ccb3e12da2a5517c182627c813166efc09 +Subproject commit b03b1a4a6056d416dde00c4d5e0d2b6c9dbe2ed1