5/20/2023 0 Comments Kmm iosImplementation "io.ktor:ktor-client-serialization:$ktor_version" Implementation "io.ktor:ktor-client-json:$ktor_version" Implementation "io.ktor:ktor-client-core:$ktor_version" Id '' version '1.3.72'įinal def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64 This is not just KTOR, it is any iOS dependency, so there's obviously something incorrect in my project setup, but I am unable to spot it. Upon recreating the project as a library, and simply starting to add the dependencies for KTOR 1.3.2, the iOS dependencies are failing to resolve. Then I realized that I needed to recreate the project and create a library instead of a shared application, as I have existing codebases for each mobile client already, and I need to publish the MPP library to be used by them. I am trying to develop a small library to post issues to my company's Jira server, and I thought that a Kotlin MPP w/ KTOR would be just the ticket.Īt first, following a few tutorials, I made a shared project, and the imports for iOS were working fine but Android's Ktor implementation would not resolve.
0 Comments
Leave a Reply. |