I am trying to add Kotlin/Js to a existing KMP + C...
# multiplatform
v
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
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
This is what i did expect classes in commonMain, and then implementation or type alias in android/ios side with blank for js
p
A great, same principle