meshtastic / protobufs

Protobuf definitions for the Meshtastic project
https://meshtastic.org
GNU General Public License v3.0
80 stars 117 forks source link

Region in is a reserved word in Swift #163

Closed garthvh closed 2 years ago

garthvh commented 2 years ago

Can't use the value in an enum in a picker

mc-hamster commented 2 years ago

As part of the protobuf build step in swift, can a regex be done to change the word to something else?

Some massaging had to be done on the python build of protobofs for a similar reason:

https://github.com/meshtastic/Meshtastic-python/blob/master/bin/regen-protos.sh

garthvh commented 2 years ago

using single quotes worked case in