File tree Expand file tree Collapse file tree 10 files changed +51
-12
lines changed
appleMain/kotlin/com/pubnub/internal/entities
pubnub-kotlin-impl/src/test/kotlin/com/pubnub/api/legacy Expand file tree Collapse file tree 10 files changed +51
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : kotlin
2
- version : 10.5.2
2
+ version : 10.5.3
3
3
schema : 1
4
4
scm : github.com/pubnub/kotlin
5
5
files :
6
- - build/libs/pubnub-kotlin-10.5.2 -all.jar
6
+ - build/libs/pubnub-kotlin-10.5.3 -all.jar
7
7
sdks :
8
8
-
9
9
type : library
23
23
-
24
24
distribution-type : library
25
25
distribution-repository : maven
26
- package-name : pubnub-kotlin-10.5.2
27
- location : https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.5.2 /pubnub-kotlin-10.5.2 .jar
26
+ package-name : pubnub-kotlin-10.5.3
27
+ location : https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.5.3 /pubnub-kotlin-10.5.3 .jar
28
28
supported-platforms :
29
29
supported-operating-systems :
30
30
Android :
@@ -121,6 +121,11 @@ sdks:
121
121
license-url : https://www.apache.org/licenses/LICENSE-2.0.txt
122
122
is-required : Required
123
123
changelog :
124
+ - date : 2025-07-03
125
+ version : v10.5.3
126
+ changes :
127
+ - type : bug
128
+ text : " Internal fixes."
124
129
- date : 2025-05-15
125
130
version : v10.5.2
126
131
changes :
Original file line number Diff line number Diff line change
1
+ ## v10.5.3
2
+ July 03 2025
3
+
4
+ #### Fixed
5
+ - Internal fixes.
6
+
1
7
## v10.5.2
2
8
May 15 2025
3
9
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
20
20
<dependency >
21
21
<groupId >com.pubnub</groupId >
22
22
<artifactId >pubnub-kotlin</artifactId >
23
- <version >10.5.2 </version >
23
+ <version >10.5.3 </version >
24
24
</dependency >
25
25
```
26
26
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RELEASE_SIGNING_ENABLED=true
18
18
SONATYPE_HOST =DEFAULT
19
19
SONATYPE_AUTOMATIC_RELEASE =false
20
20
GROUP =com.pubnub
21
- VERSION_NAME =10.5.2
21
+ VERSION_NAME =10.5.3
22
22
POM_PACKAGING =jar
23
23
24
24
POM_NAME =PubNub SDK
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.pubnub.internal.entities
3
3
import cocoapods.PubNubSwift.KMPChannelGroupEntity
4
4
import cocoapods.PubNubSwift.KMPSubscription
5
5
import com.pubnub.api.v2.entities.ChannelGroup
6
+ import com.pubnub.api.v2.subscriptions.ReceivePresenceEventsImpl
6
7
import com.pubnub.api.v2.subscriptions.Subscription
7
8
import com.pubnub.api.v2.subscriptions.SubscriptionOptions
8
9
import com.pubnub.internal.subscription.SubscriptionImpl
@@ -16,7 +17,9 @@ class ChannelGroupImpl(
16
17
get() = channelGroup.name()
17
18
18
19
override fun subscription (options : SubscriptionOptions ): Subscription {
19
- // TODO: Add support for handling SubscriptionOptions
20
- return SubscriptionImpl (objCSubscription = KMPSubscription (entity = channelGroup))
20
+ val presenceOptions = options.allOptions.filterIsInstance<ReceivePresenceEventsImpl >()
21
+ val objcSubscription = KMPSubscription (channelGroup, presenceOptions.isNotEmpty())
22
+
23
+ return SubscriptionImpl (objcSubscription)
21
24
}
22
25
}
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ class ChannelImpl(
58
58
override val name: String
59
59
get() = channel.name()
60
60
61
- // TODO: Add support for handling SubscriptionOptions
62
61
override fun subscription (options : SubscriptionOptions ): Subscription {
63
62
val presenceOptions = options.allOptions.filterIsInstance<ReceivePresenceEventsImpl >()
64
63
val objcSubscription = KMPSubscription (channel, presenceOptions.isNotEmpty())
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ import com.pubnub.api.v2.subscriptions.ReceivePresenceEventsImpl
126
126
import com.pubnub.api.v2.subscriptions.Subscription
127
127
import com.pubnub.api.v2.subscriptions.SubscriptionOptions
128
128
import com.pubnub.api.v2.subscriptions.SubscriptionSet
129
+ import com.pubnub.internal.v2.entities.ChannelGroupImpl
129
130
import com.pubnub.internal.v2.entities.ChannelImpl
130
131
import com.pubnub.internal.v2.subscriptions.SubscriptionSetImpl
131
132
import com.pubnub.kmp.CustomObject
@@ -1202,7 +1203,7 @@ class PubNubImpl(val jsPubNub: PubNubJs) : PubNub {
1202
1203
}
1203
1204
1204
1205
override fun channelGroup (name : String ): ChannelGroup {
1205
- TODO ( " Not yet implemented " )
1206
+ return ChannelGroupImpl (jsPubNub.asDynamic().channelGroup(name) )
1206
1207
}
1207
1208
1208
1209
override fun channelMetadata (id : String ): ChannelMetadata {
Original file line number Diff line number Diff line change
1
+ package com.pubnub.internal.v2.entities
2
+
3
+ import com.pubnub.api.v2.entities.ChannelGroup
4
+ import com.pubnub.api.v2.subscriptions.ReceivePresenceEventsImpl
5
+ import com.pubnub.api.v2.subscriptions.Subscription
6
+ import com.pubnub.api.v2.subscriptions.SubscriptionOptions
7
+ import com.pubnub.internal.v2.subscriptions.SubscriptionImpl
8
+ import com.pubnub.kmp.createJsObject
9
+
10
+ class ChannelGroupImpl (private val jsChannelGroup : dynamic ) : ChannelGroup {
11
+ override val name: String
12
+ get() = jsChannelGroup.name
13
+
14
+ override fun subscription (options : SubscriptionOptions ): Subscription { // TODO: Handle missing filter options
15
+ return SubscriptionImpl (
16
+ jsChannelGroup.subscription(
17
+ createJsObject<PubNub .SubscriptionOptions > {
18
+ if (options.allOptions.filterIsInstance<ReceivePresenceEventsImpl >().isNotEmpty()) {
19
+ receivePresenceEvents = true
20
+ }
21
+ }
22
+ )
23
+ )
24
+ }
25
+ }
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class ChannelImpl(private val jsChannel: dynamic) : Channel {
54
54
override val name: String
55
55
get() = jsChannel.name
56
56
57
- override fun subscription (options : SubscriptionOptions ): Subscription { // todo use options
57
+ override fun subscription (options : SubscriptionOptions ): Subscription { // TODO: Handle missing filter options
58
58
return SubscriptionImpl (
59
59
jsChannel.subscription(
60
60
createJsObject<PubNub .SubscriptionOptions > {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class PubNubImplTest : BaseTest() {
56
56
fun getVersionAndTimeStamp () {
57
57
val version = PubNubImpl .SDK_VERSION
58
58
val timeStamp = PubNubImpl .timestamp()
59
- assertEquals(" 10.5.2 " , version)
59
+ assertEquals(" 10.5.3 " , version)
60
60
assertTrue(timeStamp > 0 )
61
61
}
62
62
You can’t perform that action at this time.
0 commit comments