Thread
#multiplatform
    t

    Tim Ortel

    1 month ago
    Hi! Two months ago I already announced my development of a Gradle Plugin that brings gRPC to Kotlin Multiplatform. I have finally added iOS support. Therefore, it now allows you to make client-side calls from multiplatform code to Android, iOS, JVM and JS targets, as such allowing you to share your network logic. Once again, I would greatly appreciate any feedback on the project! https://github.com/TimOrtel/GRPC-Kotlin-Multiplatform
    Paul Woitaschek

    Paul Woitaschek

    1 month ago
    Do I understand correctly, that it generates a DSL for the messages? If so, why not simply a data class?
    t

    Tim Ortel

    1 month ago
    I wanted to make the library look and feel exactly like the one offered for Kotlin/JVM.
    Right now, for JVM the plugin does not generate the logic itself, but delegates it the files generated by protoc. Therefore, a data class is not possible. However, I am planning on generating the proto logic for JVM myself. Then data classes may be a viable option.
    Paul Woitaschek

    Paul Woitaschek

    1 month ago
    I think in that case I'd rather generate a function that mandates all fields. I always find it very strange if there is a dsl in Kotlin for creating objects. Usually, named arguments are just so much better and compile time safe