https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

Sergio

11/09/2023, 6:45 PM
Hi! Perhaps somebody has already researched about the size increase of an iOS XCFramework written in Kotlin, what expected percentage increase would it be vs a framework written in Swift?
i

indyfromoz

11/09/2023, 7:26 PM
In KMP, one uses
Ktor
client for HTTP requests in a API client library, for example, code written in Kotlin. We can use the KMP library for JVM, Android, etc. In case of iOS/macOS native XCFramework, we tend to use
NSURLSession
along with
async/await
, code written in Swift. Surely, there will be difference in the size of the XCFrameworks created via these two pathways. But, can we call the comparison fair?
s

Sergio

11/09/2023, 8:41 PM
I mean, if you had to create an XCFramework either entirely native or with KMP, and an important criterion for making the decision is that the size does not increase significantly. At a percentage level, how much could a KMP-based framework increase in size compared to a fully native one?
2 Views