-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2dfbb7
commit c674a5d
Showing
13 changed files
with
75 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
signalrkore/src/commonMain/kotlin/eu/lepicekmichal/signalrkore/utils/Dispatchers.kt
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
signalrkore/src/iosMain/kotlin/eu/lepicekmichal/signalrkore/UUID.ios.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package eu.lepicekmichal.signalrkore | ||
|
||
import platform.Foundation.NSUUID | ||
|
||
actual object UUID { | ||
actual fun randomUUID(): String = NSUUID().UUIDString() | ||
} |
20 changes: 20 additions & 0 deletions
20
...re/src/iosMain/kotlin/eu/lepicekmichal/signalrkore/transports/ServerSentEventsDelegate.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package eu.lepicekmichal.signalrkore.transports | ||
|
||
import io.ktor.client.HttpClient | ||
|
||
internal actual class ServerSentEventsDelegate actual constructor(client: HttpClient) { | ||
|
||
actual fun get( | ||
url: String, | ||
headers: Map<String, String>, | ||
onFailure: (Exception) -> Unit, | ||
onSuccess: (Response) -> Unit, | ||
) { | ||
throw IllegalStateException("iOS does not support Server Sent Events.") | ||
} | ||
|
||
actual fun post(url: String, headers: Map<String, String>, message: ByteArray) { | ||
throw IllegalStateException("iOS does not support Server Sent Events.") | ||
} | ||
|
||
} |
15 changes: 0 additions & 15 deletions
15
signalrkore/src/iosMain/kotlin/eu/lepicekmichal/signalrkore/utils/Dispatchers.kt
This file was deleted.
Oops, something went wrong.
File renamed without changes.
11 changes: 0 additions & 11 deletions
11
signalrkore/src/jvmMain/kotlin/eu/lepicekmichal/signalrkore/utils/Dispatchers.kt
This file was deleted.
Oops, something went wrong.