file size question! when you include a basic KN fr...
# kotlin-native
t
file size question! when you include a basic KN framework to your iOS project, by how much did your iOS output app size increase? same question with Android. I know this answer could be all over the place (if your KN has a 200mb video, then it obviously would increase the app by 200mb+), but a rough estimate would be wonderful. Even a basic hello world comparison would help me at this point. Thanks!
g
Situation with Android is very different, because on Android Kotlin compiled for JVM, you don’t need any runtime, only stdlib (this is ~1mb jar, which may be also stripped a lot with proguard/r8)
o
Native runtime is not big, and usually only needed parts are included into the binary, for example
Copy code
cat hello.kt
fun main() = println("Hello")
konanc hello.kt  -o h-linux -target linux
ls -lh h-linux.kexe
-rwxr-xr-x  1 nike  staff   475K 16 апр 08:48 h-linux.kexe
strip h-linux.kexe
ls -lh h-linux.kexe
-rwxr-xr-x  1 nike  staff   316K 16 апр 08:48 h-linux.kexe
konanc hello.kt  -o h-mac -target macos_x64
ls -lh h-mac.kexe 
-rwxr-xr-x  1 nike  staff   727K 16 апр 08:58 h-mac.kexe
strip  h-mac.kexe 
ls -lh h-mac.kexe 
-rwxr-xr-x  1 nike  staff   471K 16 апр 08:58 h-mac.kexe
konanc hello.kt  -o h-ios -target ios_arm64
ls -lh h-ios.kexe 
-rwxr-xr-x  1 nike  staff   752K 16 апр 08:59 h-ios.kexe
strip h-ios.kexe 
ls -lh h-ios.kexe 
-rwxr-xr-x  1 nike  staff   495K 16 апр 09:00 h-ios.kexe
and just to be clear: there no distinct Kotlin/Native runtime, needed parts are shipped with the final artefact
👍 1
t
ok, what about iOS file size?