how do dependencies work in a MPP-world? consider ...
# multiplatform
t
how do dependencies work in a MPP-world? consider a MPP with targets JVM and JS with a
commonMain
dependency on lets call it
A
. What does
A
have to provide in order to be usable as a dependency? Does
A
have ro provide a
.class
as well as a
.js
artifact? Does kotlin kompile `A`s kotlin code into the target's format?
b
Dependencies would need to be Kotlin MPP as well, if you want to have them referenced from the common part. The Kotlin standard library would be a natural example. If you have third party code that is not pure Kotlin, you can reference it only from the platform-dependent part and therefor most likely need to write abstractions for it.
t
OK thank you