Hey! I am using Appcode to make iOS project using ...
# kotlin-native
m
Hey! I am using Appcode to make iOS project using Kotlin/Native. I want to use the htpp client for Native - https://github.com/e5l/http-client-common. So, I add the repo and dependency in Gradle as stated in the Readme and use it in the ViewController file by importing it. However, I get a compilation error about unresolved reference io for the statement import io.ktor.common.client.* Also, the sample project in that repo uses kotlin-platform-native plugin while I use konan and kotlin plugins. Which one is preferred and why? The sample appcode project uses konan and kotlin (granted its a bit dated as one has to change settings to use gradle 4.7 to even get it to compile but still).
e
http-client-common
use
kotlin-platform-native
and new gradle dsl (Follow the note here: https://github.com/JetBrains/kotlin-native/blob/master/GRADLE_PLUGIN.md)
konan
and
kotlin-platform-native
plugins are incompatible