Okay, so I added JS target to an existing Android/iOS mpp library. Once I got the webpack built, and then imported into a test web project, I was actually able to make calls to it. Exciting.
Though now I have run into the previously mentioned mangling of method names that has been mentioned elsewhere. While I understand mangling overloaded methods (I remember C++), it appears to mangling
every method, even if not overloaded. It was mentioned elsewhere, but it seems any method that takes params is mangled. And I certainly do not or cannot mark all methods as external (‘Non top-level
external
declaration’) or @JsName all common-level APIs. I would expect the compiler could determine whether to mangle based on whether there are overloads or not…
Any other solutions possible?