lepicekmichal / SignalRKore

A Kotlin multiplatform coroutine-based SignalR client.
Apache License 2.0
25 stars 4 forks source link

No matching variant of eu.lepicekmichal.signalrkore:signalrkore:0.8.5 was found. #7

Closed erickvelasco11 closed 2 months ago

erickvelasco11 commented 2 months ago

Hi lepicekmichal Thanks for library, I think this could be very useful to all people we have a server with signalR to avoid migrate the server to another technology. However, I have a problem with the import of dependencies

I'm running my project in Kotlin Multiplatform. I'm implementing the library like this

commonMain.dependencies {
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material)
            implementation(compose.ui)
            implementation(compose.components.resources)
            implementation(compose.components.uiToolingPreview)
            implementation(libs.kotlin.coroutines)
            implementation(libs.kermit)
            implementation(project(":webrtc-kmp"))
            implementation(libs.ktor.client.core)
            runtimeOnly("io.ktor:ktor-client-websockets:2.3.12")
            implementation(libs.ktor.client.negotiation)
            implementation(libs.kotlin.serialization)
            implementation("com.squareup.okio:okio:3.9.0")
            implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.0")
            implementation("org.jetbrains.kotlin:kotlin-stdlib-common:2.0.0")
            runtimeOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
            runtimeOnly("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0")
            implementation("eu.lepicekmichal.signalrkore:signalrkore:0.8.5")
        }

But when I try to gradle, I receive the issue No matching variant of eu.lepicekmichal.signalrkore:signalrkore:0.8.5 was found. I was checking there is something with multiple variants of library, but I'm lost because the readme does not explain nothing about this.

I'm attaching a file with all trace route of the issue, maybe you could give me some light about this issue. gradle error.txt

Thanks again

lepicekmichal commented 2 months ago

Hi, I believe you have kotlin target set to include JS, is that right? If so, mentioned in readme too, I have not yet extended support for JavaScript. Only JVM, Android and iOS.

I'll try to support it in near future but it was definitely not tested on this platform yet.

Lemme know if that answers your problem.

erickvelasco11 commented 2 months ago

Hi, thanks for your answer. Yes I was checking in a testing multiplatform project with a lot of targets. I have created a new one with just iOS and Android and it works perfectly.

Thanks