I write a simple kmm demo, the code is quite simple: klib contents`package com.example.kmmappdemo {`
class Fibonacci constructor() {
fun calc(num: Long): Long
}
class Greeting constructor() {
fun greet(): String
}
class IOSPlatform constructor() : Platform {
override val name: String
}
interface Platform {
val name: String
}
}
package com.example.kmmappdemo {
fun getPlatform(): Platform
}
The klib is only 8KB, however, the shared.framework/shared is too big: 837KB
It seems that kotlib stdlib and garbage collections is also compiled into the dynamic framework. My question is, is it possible for me to split the klib generated framework into two parts, the default one and the customized one, like how it's managed in flutter.
In Flutter, there are two frameworks, Flutter.framework and App.framework. Flutter.framework includes the stdlib and garbage collections parts, the app.framework is the business code written by developers.