Hi. I am working on mobile kmm project. (ios + and...
# mockk
a
Hi. I am working on mobile kmm project. (ios + android) As per my understanding there is no way right now to import mockk into commonTest module, as it targets kotlin native as well. I am wondering: 1. Am I wrong? 2. What is the idea of io.mockk:mockk-common then? The documentation reference this dependency for Common Multiplatform.
b
mockk supports JVM & JS, so you CAN use it in common sourceSet if your module only targets those platforms
a
Gotcha. I guess it should be common-jvm then 🙂
b
it's not jvm-specific. As I said, it targets JS too
a
Sorry, my bad.
Do you have any idea if there any plans to support native?
b
No idea. Haven't used it in ages
🙏 1
c
I think its not going to happen anytime soon, its not really clear how it should work
a
Thanks. Now I understand why 🙂