Android Protobuf in Kotlin with example app
Using Kotlin to access Protobuf generated code is not feasible as pointed out in my previous blog. But cheer up, there’s a workaround, if you just really don’t want to use Java on it.
If you notice carefully, only on com.android.application
and com.android.library
we’ll have the gradle issue accessing Proto generated file from our Kotlin code. Hence the trick is just to create a plain…