oficina / meet Public

native/levelup-phase0

Human

Phase 0 of the native level-up for Calls (native/levelup-phase0). Fable: APPROVE AFTER FIXES at a5c6af7; the fixes are 4bb362c (make ci green). Ready for review. Do not merge yet; Paul's portal steps are below. Nothing has been deployed, published, installed on a device or changed in the portal.

What changed

  • rastrillo/native pin: main b6a4067 (native/levelup-phase0-tools, landed). It was first pinned to the branch tip 238e490, in 2bf889c. RastrilloMacUpdates now names the app by CFBundleName ("Update Ready — Restart Calls").
  • Bundle IDs, every build works.oficina.calls: - Mac Sparkle build: Info.plist and native/mac-updates.json. The bundler reads the ID from that file, so the two cannot disagree. - iPhone app: works.oficina.calls (was net.amadan.oficina.calls.ios). - Broadcast extension: works.oficina.calls.broadcast. - App Group: group.works.oficina.calls. - Kept sign-in: keychain service works.oficina.calls (account session). - The oficina-calls:// scheme is unchanged. It is declared once, as url_schemes in mac-updates.json, and its URL type is named after the bundle ID on Mac and iPhone. Simulator check: oficina-calls://join?... asks "Open in “Oficina Calls”?"
  • Names: - Outside the app: build/Oficina Calls.app, with CFBundleDisplayName "Oficina Calls" on Mac, iPhone and the broadcast extension (Control Center's list). - Inside the app, plain "Calls": CFBundleName (About panel, menu bar), the window title and the iPhone navigation title. - SwiftUI titles the app menu's About, Hide, Quit and Help items with the display name. A probe app showed "Quit Oficina Probe". So PlainNameCommands (CallsMac.swift) replaces those four items with the same actions and shortcuts under "Calls". Quit still leaves a call first. - iOS CFBundleName stays CallsPhone, because the generated Info.plist overwrites it. iOS shows only the display name.
  • Shared bundler: not yet. Calls keeps native/scripts/bundle-mac.py, which now follows the shared naming rules. The docstring says why. The shared bundler embeds no frameworks except Sparkle (Calls needs CallsBridge and LiveKitWebRTC with an rpath). It copies no notices or DeepFilterNet model, writes no camera or microphone usage strings, and builds no Assets.car icon for macOS 26. Switching needs those added to rastrillo first.
  • Deliberately unchanged: - The os_log subsystems and queue labels net.amadan.oficina.calls, which Paul's log show commands use. - The aggregate-device prefix net.amadan.oficina.calls.pair.. - The lobby kicker "OFICINA CALLS". - Sign-in code. No keychain-access-groups or associated-domains entitlements were added.

Gates at a5c6af7 (4bb362c changes only comments, docs and a Go test fixture; make ci re-run green there)

| Gate | Result | | --- | --- | | make native-mac | ok | | mac_updates.py --updates-config mac-updates.json on a copy | ok: the ID and url_schemes validate | | make iphone (simulator) | BUILD SUCCEEDED | | swift test --package-path native/apple | 625 tests, 0 failures, 3 skipped | | CallsInterop --lobby-snapshots | 108 images | | make ci | ok, and migrations agree | | make native-test | ok |

Two earlier full runs each had one different timing-sensitive failure:

  • VideoShapeTests.testSeveralBackdropsAreCheap, while make ci ran beside it;
  • BroadcastTests.testOnlyOneBroadcastAtATime / EnginePinIntegrationTests.

Each passes alone, and the final run was clean. Neither touches IDs.

Environment note: building DeepFilterNet from source currently fails on this Mac (macOS 27). dyld rejects Rust 1.92 proc-macro dylibs ("mis-aligned LINKEDIT string pool"). The stamped, identical DeepFilter.xcframework was copied from the 0.4.16 release worktree.

For Paul: Apple Developer portal (team 9U4A84C4WK)

  1. Identifiers → App Groups → + → group.works.oficina.calls ("Oficina Calls").
  2. Identifiers → App IDs → + → App → explicit works.oficina.calls ("Oficina Calls"). - Make it available to iOS and macOS. - Enable App Groups with that group. - Enable Push Notifications if knocks should reach the phone.
  3. Identifiers → App IDs → + → App → explicit works.oficina.calls.broadcast ("Oficina Calls broadcast"), with App Groups and the same group.
  4. Profiles: - iOS development, both IDs: CALLS_DEVELOPMENT_TEAM=9U4A84C4WK make iphone-device creates them automatically, and can also create steps 1–3. - TestFlight: App Store distribution profiles for both IDs, and an App Store Connect record for works.oficina.calls. - The Mac Sparkle build needs no profile in this phase, because it carries only camera and mic. A Developer ID profile for works.oficina.calls comes with shared sign-in (keychain-access-groups).
  5. The works.oficina.meet IDs and profiles are no longer used by any build.
  6. When push is configured on the server (no deploy now): CALLS_APNS_TOPIC_IOS=works.oficina.calls and CALLS_APNS_TOPIC_MACOS=works.oficina.calls.

For Paul: one-time Mac reinstall (after the first works.oficina.calls release)

The installed app is /Applications/Calls.app, net.amadan.oficina.calls, display name "Calls". Sparkle looks for the update by file name, then display name, then ID. "Oficina Calls.app" matches none of them, so Sparkle will refuse it: "No suitable install is found in the update". The old app keeps failing quietly against the same feed until it is replaced. Do this once (also in native/README.md, "Moving the Mac app to works.oficina.calls"):

  1. Sign out in the old Calls, quit it, and move /Applications/Calls.app to the Bin.
  2. Download the new release zip, open it, and drag Oficina Calls.app to Applications.
  3. Open it and sign in again. Allow camera, microphone and, on first share, Screen Recording again: macOS treats it as a new app.
  4. Optional tidy-up: - Run defaults delete net.amadan.oficina.calls. - In Keychain Access, delete the login item net.amadan.oficina.calls (account session). - In System Settings ▸ Privacy, remove the old "Calls" entries.

iPhone: delete every old Calls first (the net.amadan.oficina.calls.ios build and any works.oficina.meet TestFlight build). They all claim oficina-calls://, and iOS opens one of them arbitrarily.

Server push: if CALLSAPNSTOPICIOS or CALLSAPNSTOPICMACOS is set, change both to works.oficina.calls when the new builds ship. Otherwise APNs answers DeviceTokenNotForTopic and the server silently deletes the tokens.

Next Mac release: the archive is works.oficina.calls-<build>.zip and the app is build/Oficina Calls.app. release-calls-0.4.16.sh (outside the repo) hard-codes the old IDs and build/Calls.app; do not copy it unchanged.

Commits 0
Discussions 1 1 open
Tasks 6/6 done

Activity