I am trying to add Kotlin/Js to a existing KMP + CMP project, which current targets android and iOS
I have some dependencies (Eg, CrashKiOS, Moko-permissions, Moko-geo, etc) in commonMain which unfortunately does not support JS and hence, I am unable to add JS as a target
What should be the best solution to this?
p
Pablichjenkov
04/30/2024, 12:55 PM
One alternative is to not add the libraries directly in your project. Instead create your own library wrapper, then in your wrapper provide empty or custom implementations to the js and other not supported targets.
v
Vaibhav Jaiswal
04/30/2024, 12:56 PM
This is what i did
expect classes in commonMain, and then implementation or type alias in android/ios side with blank for js