How to compile protobuf message Parcelable app with protobuf android plugin?

there were cmdline options for generating a message like this:

protoc --javanano_out = optional_field_style = accessors, parcelable_messages = true: d: \ ./ message.proto

how to do it with protobuf plugin for android studio?

+3


source to share


1 answer


try adding

option 'optional_field_style=accessors'
option 'parcelable_messages=true'

      



in

javanano{/*add here*/}

      

+2


source







All Articles