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

David Hart

01/21/2021, 1:03 PM
For example, if a library supports Kotlin Native, does it necessarily support KMM?
b

Big Chungus

01/21/2021, 1:36 PM
Each kotlin target needs to be declared and published explicitly by the library author. e.g. JVM, linuxX64...
MpApt is not a library in this case, but a compiler plugin (via gradle plugin) that fully integrates with KMP plugin to support all kotlin target sourceSets (as opposed to jvm-only like kapt)
As for figuring out what platforms library supports, the easiest way currently is to have a look at library buildfile. I'm working on something better right now, but the progress is slow since I do not have as much time as I'd like :D
d

David Hart

01/21/2021, 3:13 PM
Thanks for the detailed answer!
So you don’t see a reason MpApt wouldn’t work with KMM?
b

Big Chungus

01/21/2021, 3:15 PM
No, it should work fine. Must be something with your config
Also MpApt is the only MPP annotation processor that I know of
d

David Hart

01/21/2021, 3:16 PM
MPP? What does that stand for?
b

Big Chungus

01/21/2021, 3:17 PM
MultiPlatformProject.
d

David Hart

01/21/2021, 3:17 PM
Thanks 🙂
b

Big Chungus

01/21/2021, 3:17 PM
A synonym for KMP basically