I want to add protobuf to my kotlin multiplatform project that contain "Android and Desktop" so it's JVM only
the plugin by default compiles protobuf source from "src/main/proto" rather than "src/commonMain/proto"
Do you know how to fix that issue ?
v
Vidmantas Kerbelis
09/14/2022, 6:01 AM
Probably not entirely helpful for you, as it will not answer your question directly.
But, I’m using protobuf files on a project that I’m working on. The project supports Android and iOS.
We have the protos under
src/commonMain/proto
and we’re using
squareup/Wire
for the protobuf generation.
Soo, I played around quite a bit with the protobuf generation dependant on JVM and got quite disappointed at the capabilities of it on a shared codebase 😕 So I would strongly suggest not using a JVM solution.
To answer your question, you probably just need to specify a different source, lookup