Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Apr 12, 2024
1 parent c6d35ee commit 644f5a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
19 changes: 18 additions & 1 deletion voice/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi

plugins {
`kord-multiplatform-module`
`kord-publishing`
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
kotlin {
applyDefaultHierarchyTemplate {
common {
group("ktor") {
withJvm()
withApple()
withLinux()
}

group("nonKtor") {
withJs()
withMingw()
}
}
}
jvm {
withJava()
}
Expand All @@ -18,7 +35,7 @@ kotlin {
compileOnly(projects.kspAnnotations)
}

nonJsMain.dependencies {
named("ktorMain").dependencies {
api(libs.ktor.network)
}

Expand Down
6 changes: 0 additions & 6 deletions voice/src/jsMain/kotlin/udp/VoiceUdpSocket.js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCoroutine

@KordVoice
public actual data class SocketAddress actual constructor(
public actual val hostname: String,
public actual val port: Int,
)

public actual val GlobalVoiceUdpSocket: VoiceUdpSocket = object : VoiceUdpSocket {
private val socketScope =
CoroutineScope(Dispatchers.Default + SupervisorJob() + CoroutineName("kord-voice-global-socket"))
Expand Down

0 comments on commit 644f5a7

Please sign in to comment.