icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

Broken iOS 12 support #192

Closed Alex009 closed 1 year ago

Alex009 commented 1 year ago

Now moko-network use ktor 2.0 with ktor-client-ios. Starts from ktor 2.0 by default iOS have WebSockets implementation. But it require iOS 13 min. So for users of iOS 12 we should use ktor-client-darwin-legacy engine.

At moko-network we should not force usage of ktor-client-ios engine. Need to extract separated module - moko-network-engine for example. In this case for iOS 12 support we just exclude dependency to moko-network-engine and continue moko-network usage.