Skip to content

Commit

Permalink
Bump pubnub-kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Jul 30, 2024
1 parent 8cc5aea commit 23868de
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ internal fun getPhraseToLookFor(text: String, separator: String): String? {

expect fun urlDecode(encoded: String): String

internal val PNFetchMessagesResult.channelsUrlDecoded get() = channels.mapKeys { urlDecode(it.key) }
internal val PNFetchMessagesResult.channelsUrlDecoded get() = channels.mapKeys { urlDecode(it.key) }
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package com.pubnub.chat.internal.util

actual fun urlDecode(encoded: String): String {
TODO("Not yet implemented")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package com.pubnub.chat.internal.util

actual fun urlDecode(encoded: String): String = decodeURIComponent(encoded)

external fun decodeURIComponent(encoded: String): String
external fun decodeURIComponent(encoded: String): String
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package com.pubnub.chat.internal.util

import java.net.URLDecoder

actual fun urlDecode(encoded: String): String = URLDecoder.decode(encoded, Charsets.UTF_8.name())
actual fun urlDecode(encoded: String): String = URLDecoder.decode(encoded, Charsets.UTF_8.name())

0 comments on commit 23868de

Please sign in to comment.