Hello, in an MP project for the iOS target we do n...
# multiplatform
g
Hello, in an MP project for the iOS target we do not need to depend on a kotlin stdlib like we do for all the other sourcesets, what’s the reason for this?
r
There’s no specific native stdlib (yet?). The iOS sourceSet depends on the common sourceSet, which should depend on
stdlib-common
which contains all the mpp stdlibs.
stdlib-common
contains the pure Kotlin stdlibs,
stdlib
depends on
stdlib-common
and contains the JVM wrappers/extensions/etc for JVM stdlibs
r
Native stdlib exists and we're using it in native targets, it's just added as a dependency implicitly and unconditionally.
r
Oh, ok. It’s added by the mpp plugin itself?
s
Native stdlib is added by the compiler itself.
👍 4
g
Thank you for the explanation!