Commit 71993a3
committed
Rename Environment proto type to TAKEnvironment
Bumps the protobufs submodule to 9b123f3 which renames the proto
message type from `Environment` to `TAKEnvironment`. The bare name
collided with SwiftUI's `@Environment` property wrapper, making the
generated Swift module unusable in any iOS consumer that imports both
SwiftUI and the proto bindings — the Meshtastic-Apple app had 78 such
files.
Only `TakPacketV2Serializer.kt` changes in the SDK: the Wire import
and the `toWire` / `toData` bridge helpers now reference `TAKEnvironment`
instead of `Environment`. The SDK's internal data class stays named
`TakPacketV2Data.EnvironmentData` to match the source `<environment>`
CoT XML element name (we only renamed the wire type, not the internal
model).
Wire format is unaffected — proto3 encoding is tag-number-based, so
every fixture's compressed bytes are byte-identical before and after
the rename. All 269 jvmTest cases stay green with no golden file
regeneration required.1 parent ea63645 commit 71993a3
2 files changed
Lines changed: 15 additions & 7 deletions
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
527 | 530 | | |
528 | 531 | | |
529 | 532 | | |
530 | | - | |
| 533 | + | |
531 | 534 | | |
532 | 535 | | |
533 | 536 | | |
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
537 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
538 | 546 | | |
539 | | - | |
| 547 | + | |
540 | 548 | | |
541 | 549 | | |
542 | 550 | | |
543 | 551 | | |
544 | 552 | | |
545 | | - | |
| 553 | + | |
546 | 554 | | |
547 | 555 | | |
548 | 556 | | |
| |||
0 commit comments