-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to use kotlin-runtine with coroutines-native-mt #2619
Comments
Good point. Maybe we should just use |
As far as I know, there are no obvious API limitations when using |
I'm confused, the Ktor docs recommends using the single-threaded version there: https://kotlinlang.org/docs/mobile/concurrency-and-coroutines.html#ktor-and-coroutines
Has that changed recently? |
@rantingmong another way to look at this, can you try forcing the dependency in your project? implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core") {
version {
strictly("1.3.9-native-mt-2")
}
} |
I think this has changed recently as they are now depending on the
I tried doing that as per recommendation by my friend but I got this:
|
Yup, this was just merged: JetBrains/kotlin-mobile-docs#24
Interesting.. Does it say anything more as to why it couldn't find the artifact? Also can you try to run |
Sure will do! |
The best approach seems to be to force Gradle's resolution to the desired version:
|
Hi @rantingmong! How did the above solution go? |
Closing this. Use the above suggestion to force the |
Is your feature request related to a problem? Please describe.
I'm currently using apollo for a multiplatform project. But using it alongside Ktor bumps Ktor's coroutines version down to 1.3.9 instead of 1.3.9-native-mt, and Ktor is enforcing native-mt usage of coroutines as of version 1.4.1
Describe the solution you'd like
Add a gradle version
com.apollographql.apollo:apollo-runtime-kotlin:2.4.0-native-mt
so that apollo and Ktor can use the same coroutines version.The text was updated successfully, but these errors were encountered: