iOS app: ask ipx in protobuf, not JSON #469
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ipx speaks protobuf beside JSON since #465. The app's own calls (the badge's and CarPlay's /api/feeds, CarPlay's entry lists, the player's position and flags, and the outbox that holds those offline) still send and read JSON. Move them to application/x-protobuf, with Swift generated from crates/wire/proto by protoc-gen-swift and the SwiftProtobuf package.
Done in
baa6661: the badge, CarPlay and the player read and write ipx's API as application/x-protobuf, from Swift generated off crates/wire/proto (ios/scripts/proto.sh, into ios/Sources/Wire), SwiftProtobuf 1.41.0. Writes an older build queued offline are still sent as JSON. Built for the simulator; not yet run against a server. Needs ipx with #465 deployed before it ships.