Skip to content

Commit

Permalink
Fix iOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Sep 16, 2024
1 parent 959e8dd commit f01523f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class PubNubImpl(private val pubNubObjC: KMPPubNub) : PubNub {
channel: String,
message: Any,
meta: Any?,
shouldStore: Boolean,
shouldStore: Boolean?,
usePost: Boolean,
replicate: Boolean,
ttl: Int?
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.pubnub.api.v2.callbacks

import cocoapods.PubNubSwift.KMPEventListener
import com.pubnub.api.PubNub
import com.pubnub.api.callbacks.Listener
import com.pubnub.api.models.consumer.pubsub.PNMessageResult
import com.pubnub.api.models.consumer.pubsub.PNPresenceEventResult
import com.pubnub.api.models.consumer.pubsub.PNSignalResult
Expand All @@ -16,7 +17,7 @@ import kotlinx.cinterop.ExperimentalForeignApi
*/

@OptIn(ExperimentalForeignApi::class)
actual interface EventListener : BaseEventListener {
actual interface EventListener : Listener {
val underlying: KMPEventListener
val onMessage: (PubNub, PNMessageResult) -> Unit
val onPresence: (PubNub, PNPresenceEventResult) -> Unit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ actual interface PubNub {

actual fun removeAllListeners()

actual fun publish(
channel: String,
message: Any,
meta: Any?,
shouldStore: Boolean,
usePost: Boolean,
replicate: Boolean,
ttl: Int?
): Publish

actual fun fire(
channel: String,
message: Any,
Expand Down Expand Up @@ -440,4 +430,13 @@ actual interface PubNub {
): SubscriptionSet

actual fun parseToken(token: String): PNToken
actual fun publish(
channel: String,
message: Any,
meta: Any?,
shouldStore: Boolean?,
usePost: Boolean,
replicate: Boolean,
ttl: Int?,
): Publish
}

0 comments on commit f01523f

Please sign in to comment.