diff --git a/.pubnub.yml b/.pubnub.yml
index 1c7bd6eb5..95545d380 100644
--- a/.pubnub.yml
+++ b/.pubnub.yml
@@ -1,9 +1,9 @@
name: kotlin
-version: 10.3.3
+version: 10.3.4
schema: 1
scm: github.com/pubnub/kotlin
files:
- - build/libs/pubnub-kotlin-10.3.3-all.jar
+ - build/libs/pubnub-kotlin-10.3.4-all.jar
sdks:
-
type: library
@@ -23,8 +23,8 @@ sdks:
-
distribution-type: library
distribution-repository: maven
- package-name: pubnub-kotlin-10.3.3
- location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.3.3/pubnub-kotlin-10.3.3.jar
+ package-name: pubnub-kotlin-10.3.4
+ location: https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.3.4/pubnub-kotlin-10.3.4.jar
supported-platforms:
supported-operating-systems:
Android:
@@ -121,6 +121,11 @@ sdks:
license-url: https://www.apache.org/licenses/LICENSE-2.0.txt
is-required: Required
changelog:
+ - date: 2025-01-13
+ version: v10.3.4
+ changes:
+ - type: bug
+ text: "Internal fixes."
- date: 2025-01-07
version: v10.3.3
changes:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a27fe593a..2229f40cd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## v10.3.4
+January 13 2025
+
+#### Fixed
+- Internal fixes.
+
## v10.3.3
January 07 2025
diff --git a/README.md b/README.md
index 00125f979..83d8eec7f 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
com.pubnub
pubnub-kotlin
- 10.3.3
+ 10.3.4
```
diff --git a/gradle.properties b/gradle.properties
index c9417cc04..a135697ee 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -18,7 +18,7 @@ RELEASE_SIGNING_ENABLED=true
SONATYPE_HOST=DEFAULT
SONATYPE_AUTOMATIC_RELEASE=false
GROUP=com.pubnub
-VERSION_NAME=10.3.3
+VERSION_NAME=10.3.4
POM_PACKAGING=jar
POM_NAME=PubNub SDK
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 6ba56fe09..72acd5f2e 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -13,7 +13,7 @@ dokka = "1.9.20"
kotlinx_datetime = "0.6.1"
kotlinx_coroutines = "1.9.0"
pubnub_js = "8.4.1"
-pubnub_swift = "8.2.3"
+pubnub_swift = "8.2.4"
[libraries]
retrofit2 = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit2" }
diff --git a/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/PubNubImpl.kt b/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/PubNubImpl.kt
index 9f56ba641..bc6c4b0da 100644
--- a/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/PubNubImpl.kt
+++ b/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/PubNubImpl.kt
@@ -189,7 +189,7 @@ class PubNubImpl(private val pubNubObjC: KMPPubNub) : PubNub {
pubNubObjC.removeAllListeners()
}
- // TODO: replicate and usePost parameters are not present in Swift SDK
+ // TODO: replicate is not present in Swift SDK
override fun publish(
channel: String,
message: Any,
@@ -206,12 +206,12 @@ class PubNubImpl(private val pubNubObjC: KMPPubNub) : PubNub {
message = message,
meta = meta,
shouldStore = shouldStore,
+ usePost = usePost,
ttl = ttl,
customMessageType = customMessageType
)
}
- // TODO: usePost parameter is not present in Swift SDK
override fun fire(channel: String, message: Any, meta: Any?, usePost: Boolean): Publish {
return PublishImpl(
pubnub = pubNubObjC,
@@ -219,6 +219,7 @@ class PubNubImpl(private val pubNubObjC: KMPPubNub) : PubNub {
message = message,
meta = meta,
shouldStore = false,
+ usePost = usePost,
ttl = 0,
customMessageType = null
)
diff --git a/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/pubsub/Publish.ios.kt b/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/pubsub/Publish.ios.kt
index 7bdbbdc42..aa6c9b43c 100644
--- a/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/pubsub/Publish.ios.kt
+++ b/pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/pubsub/Publish.ios.kt
@@ -23,6 +23,7 @@ class PublishImpl(
private val message: Any,
private val meta: Any?,
private val shouldStore: Boolean?,
+ private val usePost: Boolean,
private val ttl: Int?,
private val customMessageType: String?
) : Publish {
@@ -32,6 +33,7 @@ class PublishImpl(
message = message,
meta = meta,
shouldStore = shouldStore?.let { NSNumber(bool = it) },
+ usePost = NSNumber(bool = usePost),
ttl = ttl?.let { NSNumber(it) },
customMessageType = customMessageType,
onSuccess = callback.onSuccessHandler { PNPublishResult(it.toLong()) },
diff --git a/pubnub-kotlin/pubnub-kotlin-api/src/jsMain/kotlin/com/pubnub/api/PubNubImpl.kt b/pubnub-kotlin/pubnub-kotlin-api/src/jsMain/kotlin/com/pubnub/api/PubNubImpl.kt
index 2ee31cdb6..3229e07b8 100644
--- a/pubnub-kotlin/pubnub-kotlin-api/src/jsMain/kotlin/com/pubnub/api/PubNubImpl.kt
+++ b/pubnub-kotlin/pubnub-kotlin-api/src/jsMain/kotlin/com/pubnub/api/PubNubImpl.kt
@@ -1443,7 +1443,7 @@ private fun MembershipInclude.toMembershipIncludeOptions(): PubNubJs.MembershipI
}
private fun MemberInclude.toMemberIncludeOptions(): PubNubJs.IncludeOptions {
- return createJsObject {
+ return createJsObject {
this.totalCount = this@toMemberIncludeOptions.includeTotalCount
this.customFields = this@toMemberIncludeOptions.includeCustom
this.UUIDFields = this@toMemberIncludeOptions.includeUser
diff --git a/pubnub-kotlin/pubnub-kotlin-impl/src/test/kotlin/com/pubnub/api/legacy/PubNubImplTest.kt b/pubnub-kotlin/pubnub-kotlin-impl/src/test/kotlin/com/pubnub/api/legacy/PubNubImplTest.kt
index a8133599c..1fec4de8b 100644
--- a/pubnub-kotlin/pubnub-kotlin-impl/src/test/kotlin/com/pubnub/api/legacy/PubNubImplTest.kt
+++ b/pubnub-kotlin/pubnub-kotlin-impl/src/test/kotlin/com/pubnub/api/legacy/PubNubImplTest.kt
@@ -56,7 +56,7 @@ class PubNubImplTest : BaseTest() {
fun getVersionAndTimeStamp() {
val version = PubNubImpl.SDK_VERSION
val timeStamp = PubNubImpl.timestamp()
- assertEquals("10.3.3", version)
+ assertEquals("10.3.4", version)
assertTrue(timeStamp > 0)
}