Protobuf Without Codegen Kmp

Speak protobuf from shared Kotlin by annotating ordinary data classes with field numbers instead of generating a code layer — with the encoder setting that makes the bytes match a generated encoder, the equality override a byte-array field needs, and the conformance test that pins the equivalence. Use when a schema-driven protocol has to work on every target rather than only the JVM, when encoding a message with an absent nested field throws, or when round-trip tests pass while real peers reject the frames.

maxrave-dev 2314f85 7.1 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/protobuf-without-codegen-kmp commit 2314f85403

Frequently asked questions

npx skillmds@latest add maxrave-dev/protobuf-without-codegen-kmp