The code is exactly the same for both platforms and has no platform specific parts. Therefor, I don’t want to split it in common and platform specific code and I don’t want to create custom interfaces (facades) for each platform.
The problem is that a lot of the names get mangled. I know about the @JsName and @JVMName annotations, but they are not compatible with each other and:
- kotlin plugin doesn’t understand @JVMName;
- kotlin2js plugin doesn’t understand @JsName.
I searched for a solution but didn’t find a good one.
I hope you can help me!