How do I export documentation written in KDoc so t...
# multiplatform
t
How do I export documentation written in KDoc so that iOS developers can see it when using the built XCFramework (assuming they don't have direct access to the KMP Kotlin code)?
f
Hey, look here. this feature is far from perfect and really unstable.
a
What's unstable about it? Can it break something?
f
The comment can be randomly located or missing. It also doesn’t work with SKIE
my bad, poor choice of words 😄
a
Thanks 😃
guess I will wait with it
It did work when I just tested it. But when I added it to more modules the compile seemed to hang
f
I think it’s an important feature for distributing binary externally, but it’s not the priority at the moment.
Distributing professional binary with correct code documentation could be a great boost for KMP.
t
Thanks @François I will have a look! 🙏
f
Yes, enable by default and working!
t
@François Kotlin 2.1.0 says "Flag is not supported by this version of the compiler: -Xexport-kdoc". Also as you mentioned it doesn't work with SKIE. 😞 However I voted for the ticket @tapchicoma mentioned. Hopefully others will do as well.