Join Slack
Powered by
I'm on a Kotlin Native MPP with Ktor client. Is it...
# gradle
a
atsushi-koshikizawa
08/15/2020, 3:24 AM
I'm on a Kotlin Native MPP with Ktor client. Is it possible to switch dependencies automatically by platforms? On Mac requires the client engine for Mac, but on Linux requires it for Linux.
j
Jeremy
08/17/2020, 4:53 PM
https://kotlinlang.org/docs/reference/mpp-dsl-reference.html#dependencies
🙏 1
a
atsushi-koshikizawa
08/18/2020, 2:44 AM
I have already read it but I cannot solve exception I caught... It may be fixed on Kotlin 1.4. (on 1.4, it works as expected.)
j
Jeremy
08/18/2020, 6:21 PM
Has ktor for kotlin 1.4 been released yet?
Jeremy
08/18/2020, 6:21 PM
With 1.4 you should only need to specify the core/common dependency and the gradle metadata should include the correct one per platform
a
atsushi-koshikizawa
08/19/2020, 2:58 AM
Ktor 1.4.0 for Kotlin 1.4 has been released! I'll try it
https://kotlinlang.slack.com/archives/C0A974TJ9/p1597778804480700
👍 1
5
Views
Open in Slack
Previous
Next