iOS app asks ipx in protobuf, not JSON (#469)
The badge's and CarPlay's reads (/api/feeds, the entry lists) and the player's writes (position, flags) now go as application/x-protobuf, the messages generated from crates/wire/proto by ios/scripts/proto.sh into Sources/Wire, committed so the build needs no protoc. SwiftProtobuf is pinned to the generator's version, 1.41.0, whose code refuses another. A read whose answer is not protobuf counts as no answer: a server from before #465 answers JSON whatever it is asked, and JSON can decode as a message of nothing, which would have set the badge to zero. The outbox keeps its stored key, `json`, for the body, and marks the new writes protobuf, so places saved offline by an older build are still sent, as JSON. Built for the simulator with Xcode 27.2; not run against a server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -148,7 +148,10 @@ running the command and kills the session (exit 144), which has happened more th
|
||||
see [ios/README.md](ios/README.md). It builds only on a Mac with Xcode, from `ios/project.yml`
|
||||
through XcodeGen: nothing here compiles or checks the Swift, so say so when handing over a change
|
||||
to it. A change to the bridge's messages is a change to `native.ts`, `tests/native-bridge.ts` and
|
||||
`ios/Sources/Bridge.swift` together, and the page deploys first.
|
||||
`ios/Sources/Bridge.swift` together, and the page deploys first. The app's own calls to ipx (the
|
||||
player, the badge, CarPlay) are protobuf, from `ios/Sources/Wire`, generated from
|
||||
`crates/wire/proto` by `sh ios/scripts/proto.sh`: run it after changing a `.proto`, and deploy ipx
|
||||
before shipping an app that needs a new field.
|
||||
|
||||
## Before you touch the page
|
||||
|
||||
|
||||
Reference in New Issue
Block a user