Merge branch 'native/levelup-phase0' into main
Native level-up phase 0: works.oficina.calls, "Oficina Calls" in Finder, rastrillo/native main b6a4067 Paul's rulings 2026-11-14: works.oficina.* bundle IDs on every build (Mac, iPhone works.oficina.calls; broadcast works.oficina.calls.broadcast; App Group group.works.oficina.calls); "Oficina Calls" in Finder/Dock/home screen, plain "Calls" inside (PlainNameCommands restores About/Hide/Quit/Help under Calls; Quit still leaves the call). oficina-calls:// declared once in mac-updates.json. No entitlements, sign-in code or server deploy. Reviewed by Fable at a5c6af7: APPROVE AFTER FIXES (make ci, make native-mac, release-config path, Swift tests, menu probe green); 4bb362c applies the doc fixes (delete old iPhone apps; APNs topics -> works.oficina.calls on the server when the new builds ship; in-repo Mac reinstall steps), checked by the lander; make ci green at 4bb362c. Paul: portal steps + one manual Mac reinstall.
16 files changed,
+180
−58
README.md+7 −1internal/calls/apns/apns_test.go+6 −5internal/calls/config.go+7 −3internal/callstest/native_browser_test.go+1 −1native/README.md+40 −2native/apple/Package.resolved+1 −1native/apple/Package.swift+1 −1native/apple/Sources/CallsKit/RemoteKnocks.swift+5 −3native/apple/Sources/CallsKit/SessionStore.swift+1 −1native/apple/Sources/CallsMac/CallsMac.swift+31 −0native/apple/Tests/CallsKitTests/KeptSignInTests.swift+1 −1native/ios/README.md+27 −23native/ios/project.yml+12 −7native/mac-updates.json+2 −1native/scripts/build-mac.sh+2 −2native/scripts/bundle-mac.py+36 −6
CI passed — run details
CI log
=== vet === go vet ./... go: downloading go1.26.5 (linux/arm64) go: downloading golang.org/x/crypto v0.56.0 go: downloading amadan.net/rastrillo/rastrillo v0.27.1-0.20261006204347-fb806a287060 go: downloading amadan.net/oficina/estilo.git v0.0.0-20261025200559-260f98c42e2d go: downloading amadan.net/oficina/home/connect v0.0.0-20261110233753-14c83d71b992 go: downloading amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2 go: downloading gorm.io/gorm v1.31.2 go: downloading amadan.net/oficina/agent-access.git v0.0.0-20261025011012-4b94ff9e8a8d go: downloading amadan.net/oficina/home/handoff v0.0.0-20261024233715-ff16bf56bc4d go: downloading amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2 go: downloading github.com/go-chi/chi/v5 v5.3.2 go: downloading github.com/go-json-experiment/json v0.0.0-20250725192818-e39067aee2d2 go: downloading github.com/google/uuid v1.6.0 go: downloading github.com/keymaildev/signin v0.1.1 go: downloading github.com/carlosframework/rastrillo v0.23.0 go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/modelcontextprotocol/go-sdk v1.7.0 go: downloading github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 go: downloading modernc.org/sqlite v1.55.0 go: downloading gorm.io/plugin/dbresolver v1.6.2 go: downloading golang.org/x/text v0.41.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading amadan.net/rastrillo/rastrillo/money v0.1.0 go: downloading github.com/google/jsonschema-go v0.4.3 go: downloading github.com/yosida95/uritemplate/v3 v3.0.2 go: downloading golang.org/x/oauth2 v0.35.0 go: downloading golang.org/x/sync v0.22.0 go: downloading golang.org/x/time v0.15.0 go: downloading github.com/segmentio/encoding v0.5.4 go: downloading github.com/segmentio/asm v1.1.3 go: downloading golang.org/x/sys v0.47.0 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/memory v1.11.0 go: downloading github.com/dustin/go-humanize v1.0.1 go: downloading modernc.org/mathutil v1.7.1 go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec === fmt === === test === go test ./... ok amadan.net/oficina/calls/callscore 7.462s ok amadan.net/oficina/calls/cmd/calls 13.226s ? amadan.net/oficina/calls/cmd/calls-contract [no test files] ok amadan.net/oficina/calls/cmd/quality-summary 0.013s ok amadan.net/oficina/calls/internal/calls 12.799s ok amadan.net/oficina/calls/internal/calls/apns 0.007s ok amadan.net/oficina/calls/internal/calls/hub 1.090s ? amadan.net/oficina/calls/internal/calls/icons [no test files] ? amadan.net/oficina/calls/internal/calls/keymailtest [no test files] ok amadan.net/oficina/calls/internal/calls/relay 0.003s ok amadan.net/oficina/calls/internal/calls/seal 0.003s ? amadan.net/oficina/calls/internal/calls/teamstate [no test files] ok amadan.net/oficina/calls/internal/callstest 12.331s ok amadan.net/oficina/calls/protocol 0.003s ? amadan.net/oficina/calls/scripts/writeestilo [no test files] === migration-check === go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check go: downloading golang.org/x/mod v0.38.0 go: downloading github.com/BurntSushi/toml v1.6.0 rastrillo migration check: models and migrations agree === race === CGO_ENABLED=1 go test -race ./internal/... ok amadan.net/oficina/calls/internal/calls 88.552s ok amadan.net/oficina/calls/internal/calls/apns 1.024s ok amadan.net/oficina/calls/internal/calls/hub 4.656s ? amadan.net/oficina/calls/internal/calls/icons [no test files] ? amadan.net/oficina/calls/internal/calls/keymailtest [no test files] ok amadan.net/oficina/calls/internal/calls/relay 1.017s ok amadan.net/oficina/calls/internal/calls/seal 1.011s ? amadan.net/oficina/calls/internal/calls/teamstate [no test files] ok amadan.net/oficina/calls/internal/callstest 47.837s
diff --git a/README.md b/README.md| index 136af6b..97d76f8 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -143,7 +143,13 @@ Apple push is a sixth group, and all of it or none of it: |
| `CALLS_APNS_KEY` (the `.p8` as Apple issues it, PEM and multi-line), |
| `CALLS_APNS_KEY_ID`, `CALLS_APNS_TEAM_ID`, `CALLS_APNS_TOPIC_IOS` and |
| `CALLS_APNS_TOPIC_MACOS`, with `CALLS_APNS_SANDBOX` for a development |
| -build's tokens. Unset, the server sends no push and says so nowhere — |
| +build's tokens. **For Paul:** if `CALLS_APNS_TOPIC_IOS` or |
| +`CALLS_APNS_TOPIC_MACOS` is set on the server, change both to |
| +`works.oficina.calls` when the `works.oficina.calls` builds ship (they were |
| +`net.amadan.oficina.calls.ios` and `net.amadan.oficina.calls`). A token pushed |
| +under a topic that is not its app's is refused as `DeviceTokenNotForTopic`, |
| +which `apns` treats as gone and deletes, silently. Unset, the server sends no |
| +push and says so nowhere — |
| a knock still reaches every member in the room over their own stream, |
| which is where this app was before push existed. Partly set, startup |
| refuses: half a push key is a mistake to catch at boot rather than in a |
diff --git a/internal/calls/apns/apns_test.go b/internal/calls/apns/apns_test.go| index 9094156..4db3b1a 100644 |
| --- a/internal/calls/apns/apns_test.go |
| +++ b/internal/calls/apns/apns_test.go |
| @@ -40,7 +40,7 @@ func client(t *testing.T, handler http.HandlerFunc) (*Client, *httptest.Server) |
| t.Cleanup(server.Close) |
| c, err := New(Config{ |
| KeyID: "ABC123DEFG", TeamID: "TEAM123456", Key: key, |
| - Topics: map[string]string{"ios": "works.oficina.calls", "macos": "works.oficina.calls.mac"}, |
| + Topics: map[string]string{"ios": "test.topic.ios", "macos": "test.topic.macos"}, |
| Host: server.URL, HTTP: server.Client(), |
| }) |
| if err != nil { |
| @@ -167,10 +167,11 @@ func TestTheRequestCarriesWhatApplesRequires(t *testing.T) { |
| if path.Load() != "/3/device/devicetoken123" { |
| t.Fatal("wrong path", path.Load()) |
| } |
| - // The topic follows the platform: the two apps have different bundle |
| - // identifiers, and a token sent under the wrong one is refused with |
| - // DeviceTokenNotForTopic. |
| - if topic.Load() != "works.oficina.calls.mac" { |
| + // The topic follows the platform: the server holds one per platform |
| + // (both works.oficina.calls in production since 2026-11-14), and a |
| + // token sent under the wrong one is refused with |
| + // DeviceTokenNotForTopic. Distinct here so the test sees which was used. |
| + if topic.Load() != "test.topic.macos" { |
| t.Fatal("wrong topic for macos", topic.Load()) |
| } |
| if pushType.Load() != "alert" || priority.Load() != "10" { |
diff --git a/internal/calls/config.go b/internal/calls/config.go| index ae1cacd..c7f8e0e 100644 |
| --- a/internal/calls/config.go |
| +++ b/internal/calls/config.go |
| @@ -70,9 +70,13 @@ type Config struct { |
| APNsKeyID string |
| // CALLS_APNS_TEAM_ID, the Apple developer team. |
| APNsTeamID string |
| - // CALLS_APNS_TOPIC_IOS and CALLS_APNS_TOPIC_MACOS: the two bundle |
| - // identifiers. Separate because a token is issued per app, and one |
| - // sent under the other app's topic is refused. |
| + // CALLS_APNS_TOPIC_IOS and CALLS_APNS_TOPIC_MACOS: the bundle |
| + // identifier of the iPhone app and of the Mac app. Both are |
| + // works.oficina.calls since 2026-11-14 (they were |
| + // net.amadan.oficina.calls.ios and net.amadan.oficina.calls). Kept |
| + // separate because a token is issued per app, and one sent under a |
| + // topic that is not its app's is refused as DeviceTokenNotForTopic, |
| + // which apns treats as Gone: the token is deleted. |
| APNsTopicIOS string |
| APNsTopicMacOS string |
| // CALLS_APNS_SANDBOX sends to Apple's sandbox host, which is where a |
diff --git a/internal/callstest/native_browser_test.go b/internal/callstest/native_browser_test.go| index 1378647..92f0ee3 100644 |
| --- a/internal/callstest/native_browser_test.go |
| +++ b/internal/callstest/native_browser_test.go |
| @@ -211,7 +211,7 @@ func assertNativeQualityReports(t *testing.T, rig *browserRig) { |
| // unsigned, so inbound UDP reaches it only as a reply to its own outbound |
| // on the same address pair — which two such binaries achieve only when |
| // their first checks happen to cross in the right order. Chromium is |
| -// signed, so the browser gates never meet it, and a Developer ID Calls.app |
| +// signed, so the browser gates never meet it, and a Developer ID Oficina Calls.app |
| // would not either. Not proved: allowing the binary through the firewall |
| // needs an administrator, and was not done. |
| func TestNativeMacScreenShare(t *testing.T) { |
diff --git a/native/README.md b/native/README.md| index 8c57272..29b7a23 100644 |
| --- a/native/README.md |
| +++ b/native/README.md |
| @@ -8,7 +8,7 @@ Requires macOS 14+, Xcode, Go 1.26 and network access for pinned dependencies. |
| ```sh |
| make native-mac |
| -open native/build/Calls.app |
| +open "native/build/Oficina Calls.app" |
| ``` |
| Signed out, the home screen names the Calls server — `calls.oficina.works` |
| @@ -710,6 +710,44 @@ Developer ID signing, notarization and App Store packaging remain follow-up work |
| The iPhone target, device builds and Safari tests are described in |
| [ios/README.md](ios/README.md). |
| +## Moving the Mac app to works.oficina.calls (once) |
| + |
| +From 2026-11-14 the Mac app is `works.oficina.calls`, installed as |
| +**Oficina Calls.app** with the display name "Oficina Calls". Every release |
| +up to 0.4.16 is `net.amadan.oficina.calls`, installed as `Calls.app` with |
| +the display name "Calls". Sparkle looks for the update inside the archive by |
| +the installed app's file name, then by its display name, and only then by |
| +bundle ID. "Oficina Calls.app" with a new ID matches none of them, so Sparkle |
| +refuses the update: "No suitable install is found in the update". Calls' |
| +updater is quiet, so 0.4.16 fails this way on every check from the day the |
| +first `works.oficina.calls` build is in the feed, and nobody sees it. It has to |
| +be reinstalled by hand, once: |
| + |
| +1. Sign out in the old Calls (home screen, **Sign out**), then quit it. |
| +2. Move `/Applications/Calls.app` to the Bin. |
| +3. Download the new release's zip, open it, and drag **Oficina Calls.app** to |
| + Applications. Open it and sign in again. macOS treats it as a new app, so it |
| + asks again for the camera and microphone, and for Screen Recording at the |
| + first share. |
| +4. Optional tidy-up. The old app's data stays under the old ID: |
| + - `defaults delete net.amadan.oficina.calls`; |
| + - in Keychain Access, the login keychain's generic password with |
| + **service `net.amadan.oficina.calls`, account `session`**. This is the |
| + shape `KeychainSessionStore` uses (`SessionStore.swift`), and the new app |
| + keeps the same shape under `works.oficina.calls`. The |
| + `<id>.session` / `<id>.store` names in rastrillo/native's |
| + `docs/mac-updates.md` are the shared library's, not Calls'; |
| + - the old "Calls" rows in System Settings ▸ Privacy & Security (Camera, |
| + Microphone, Screen Recording). |
| + |
| +**For the next release.** The release archive is now named |
| +`works.oficina.calls-<build>.zip` (release_mac.py names it after the bundle |
| +ID). The app to package is `native/build/Oficina Calls.app`. The last release |
| +script, `/Users/paulcampbell/amadan.net/oficina/release-calls-0.4.16.sh` |
| +(outside this repository), hard-codes the old IDs (`BUNDLE_ID`, |
| +`IOS_BUNDLE_ID`, lines 36-37) and `build/Calls.app` (lines 211-257). Don't |
| +copy it unchanged for the next release. |
| + |
| ## Quality reports and Report a problem |
| The apps send a connection-quality report every 30 seconds in a call and one |
| @@ -744,7 +782,7 @@ shapes, more queries, and the kill switch (`CALLS_QUALITY_REPORTS=off`). |
| platform capture/UI portions are separate from the Go protocol implementation. |
| - `native/apple/Sources/CallsMac`: SwiftUI app and system-browser authentication host. |
| - `native/apple/Sources/CallsInterop`: a separate synthetic-media test executable; |
| - it is not bundled with Calls.app. |
| + it is not bundled with Oficina Calls.app. |
| Go Mobile's cgo requirement is isolated in `native/go.mod` and the native build |
| script. The existing server continues to build with `CGO_ENABLED=0`. WebRTC is |
diff --git a/native/apple/Package.resolved b/native/apple/Package.resolved| index adb9d82..07c9ad7 100644 |
| --- a/native/apple/Package.resolved |
| +++ b/native/apple/Package.resolved |
| @@ -5,7 +5,7 @@ |
| "kind" : "remoteSourceControl", |
| "location" : "https://amadan.net/rastrillo/native", |
| "state" : { |
| - "revision" : "b8098cd09c2641467f4dad71057e4a733b610649" |
| + "revision" : "b6a4067e39efd641fd5fa149cc666fee47bdb9b5" |
| } |
| }, |
| { |
diff --git a/native/apple/Package.swift b/native/apple/Package.swift| index d4e64e2..9d866a3 100644 |
| --- a/native/apple/Package.swift |
| +++ b/native/apple/Package.swift |
| @@ -3,7 +3,7 @@ import PackageDescription |
| import Foundation |
| let sharedNative: Package.Dependency = ProcessInfo.processInfo.environment["OFICINA_NATIVE_PACKAGE_PATH"].map { .package(path: $0) } |
| - ?? .package(url: "https://amadan.net/rastrillo/native", revision: "b8098cd09c2641467f4dad71057e4a733b610649") |
| + ?? .package(url: "https://amadan.net/rastrillo/native", revision: "b6a4067e39efd641fd5fa149cc666fee47bdb9b5") |
| let package = Package( |
| name: "CallsNative", |
diff --git a/native/apple/Sources/CallsKit/RemoteKnocks.swift b/native/apple/Sources/CallsKit/RemoteKnocks.swift| index 030e551..2aab4c9 100644 |
| --- a/native/apple/Sources/CallsKit/RemoteKnocks.swift |
| +++ b/native/apple/Sources/CallsKit/RemoteKnocks.swift |
| @@ -19,9 +19,11 @@ import Foundation |
| /// about a knock, which is exactly where every device was before this |
| /// existed. It is never a reason to fail a join, and never a sheet. |
| @MainActor public enum RemoteKnocks { |
| - /// The platform name the server stores alongside the token. The two |
| - /// apps have different bundle identifiers and therefore different APNs |
| - /// topics, so a token is useless without it. |
| + /// The platform name the server stores alongside the token. The server |
| + /// holds an APNs topic per platform (CALLS_APNS_TOPIC_IOS and _MACOS) and |
| + /// sends each token under its platform's topic. Both apps are |
| + /// works.oficina.calls since 2026-11-14, so today the two topics are the |
| + /// same; a token sent under any other topic is refused. |
| public static var platform: String { |
| #if os(iOS) |
| return "ios" |
diff --git a/native/apple/Sources/CallsKit/SessionStore.swift b/native/apple/Sources/CallsKit/SessionStore.swift| index 3e3767e..1546a5f 100644 |
| --- a/native/apple/Sources/CallsKit/SessionStore.swift |
| +++ b/native/apple/Sources/CallsKit/SessionStore.swift |
| @@ -40,7 +40,7 @@ public struct KeychainSessionStore: SessionStore { |
| private let service: String |
| private let account = "session" |
| - public init(service: String = "net.amadan.oficina.calls") { |
| + public init(service: String = "works.oficina.calls") { |
| self.service = service |
| } |
diff --git a/native/apple/Sources/CallsMac/CallsMac.swift b/native/apple/Sources/CallsMac/CallsMac.swift| index d6265b9..fa4a4a6 100644 |
| --- a/native/apple/Sources/CallsMac/CallsMac.swift |
| +++ b/native/apple/Sources/CallsMac/CallsMac.swift |
| @@ -31,6 +31,7 @@ import LiveKitWebRTC |
| .defaultSize(width: 1000, height: 760) |
| .commands { |
| CommandGroup(replacing: .newItem) {} |
| + PlainNameCommands() |
| NativeUpdateCommands(updater: updater) |
| CommandMenu("Call") { CallMenuItems(model: model) } |
| } |
| @@ -108,6 +109,36 @@ final class CallsAppDelegate: NSObject, NSApplicationDelegate { |
| } |
| } |
| +/// The application menu's own items, under the name the app has inside its |
| +/// windows. Finder, the Dock and Spotlight say "Oficina Calls" (the bundle's |
| +/// file name and CFBundleDisplayName), but SwiftUI builds About, Hide, Quit |
| +/// and Help from CFBundleDisplayName too, which would put "Quit Oficina |
| +/// Calls" in a menu headed by the plain name. These are the same actions |
| +/// AppKit's own items take, with the same shortcuts: Quit still goes |
| +/// through applicationShouldTerminate, so a call is left first. |
| +struct PlainNameCommands: Commands { |
| + static let name = "Calls" |
| + |
| + var body: some Commands { |
| + CommandGroup(replacing: .appInfo) { |
| + // The standard panel names the app by CFBundleName, which is "Calls". |
| + Button("About \(Self.name)") { NSApp.orderFrontStandardAboutPanel(nil) } |
| + } |
| + CommandGroup(replacing: .appVisibility) { |
| + Button("Hide \(Self.name)") { NSApp.hide(nil) }.keyboardShortcut("h") |
| + Button("Hide Others") { NSApp.hideOtherApplications(nil) } |
| + .keyboardShortcut("h", modifiers: [.command, .option]) |
| + Button("Show All") { NSApp.unhideAllApplications(nil) } |
| + } |
| + CommandGroup(replacing: .appTermination) { |
| + Button("Quit \(Self.name)") { NSApp.terminate(nil) }.keyboardShortcut("q") |
| + } |
| + CommandGroup(replacing: .help) { |
| + Button("\(Self.name) Help") { NSApp.showHelp(nil) }.keyboardShortcut("?") |
| + } |
| + } |
| +} |
| + |
| /// The Call menu. Mute is here so that its shortcut can be found, and so |
| /// that there is one when Space belongs to a text field or a button. Copy |
| /// Invite Link puts the meeting's link on the clipboard without the share |
diff --git a/native/apple/Tests/CallsKitTests/KeptSignInTests.swift b/native/apple/Tests/CallsKitTests/KeptSignInTests.swift| index efffd2a..4dee45b 100644 |
| --- a/native/apple/Tests/CallsKitTests/KeptSignInTests.swift |
| +++ b/native/apple/Tests/CallsKitTests/KeptSignInTests.swift |
| @@ -225,7 +225,7 @@ final class KeptSignInTests: XCTestCase { |
| guard ProcessInfo.processInfo.environment["CALLS_KEYCHAIN_TEST"] == "1" else { |
| throw XCTSkip("Set CALLS_KEYCHAIN_TEST=1 to use this machine's Keychain.") |
| } |
| - let store = KeychainSessionStore(service: "net.amadan.oficina.calls.test-\(UUID().uuidString)") |
| + let store = KeychainSessionStore(service: "works.oficina.calls.test-\(UUID().uuidString)") |
| defer { store.clear() } |
| XCTAssertNil(store.load()) |
| store.save(kept) |
diff --git a/native/ios/README.md b/native/ios/README.md| index 83fa1fb..7d4383f 100644 |
| --- a/native/ios/README.md |
| +++ b/native/ios/README.md |
| @@ -85,43 +85,47 @@ still ends when the app goes to the background. If the broadcast is stopped |
| from outside while Calls is in the background, the call ends too. |
| The App Group is one build setting, `CALLS_APP_GROUP` in `project.yml` |
| -(`group.net.amadan.oficina.calls`). It feeds both targets' entitlements and the |
| +(`group.works.oficina.calls`). It feeds both targets' entitlements and the |
| `CallsAppGroup` key in both Info.plists. The extension's bundle identifier is the |
| app's plus `.broadcast`. The app looks for its extension by that rule, so the |
| two must stay in step. |
| +**Identifiers.** Paul ruled on 2026-11-14 that every Oficina build is |
| +`works.oficina.<app>`, App Store and direct download, iPhone and Mac. So the |
| +iPhone app is `works.oficina.calls`, the same identifier as the Mac app, and its |
| +extension is `works.oficina.calls.broadcast`. Earlier builds were |
| +`net.amadan.oficina.calls.ios` (development) and `works.oficina.meet` |
| +(`release/calls-testflight`); both are retired. To iOS a new identifier is a new |
| +app: it installs beside the old one, signed out, and asks for the camera and |
| +microphone again. |
| + |
| +**Delete the old iPhone apps first.** Before installing a `works.oficina.calls` |
| +build, delete every earlier Calls from the phone: the `net.amadan.oficina.calls.ios` |
| +development build ("Calls") and any `works.oficina.meet` TestFlight build. They |
| +all claim `oficina-calls://`, and when two apps claim a scheme iOS opens one of |
| +them arbitrarily, so "Join in the app" could land in the old one. |
| + |
| **Signing.** The simulator build is unsigned, so it has no App Group and cannot |
| broadcast; ReplayKit broadcasts need a device anyway. Before the first signed |
| device build, in the Apple Developer portal (Certificates, Identifiers & |
| Profiles): |
| -1. Identifiers → App Groups → **+** → `group.net.amadan.oficina.calls`. |
| -2. Identifiers → `net.amadan.oficina.calls.ios` → enable **App Groups** → |
| - choose that group. (Push stays as it is.) |
| -3. Identifiers → **+** → App IDs → App → `net.amadan.oficina.calls.ios.broadcast`, |
| - description "Calls broadcast", with **App Groups** enabled and the same group. |
| +1. Identifiers → App Groups → **+** → `group.works.oficina.calls`, description |
| + "Oficina Calls". |
| +2. Identifiers → **+** → App IDs → App → explicit `works.oficina.calls`, |
| + description "Oficina Calls", with **App Groups** enabled and that group |
| + chosen. Enable **Push Notifications** too if knocks should reach the phone. |
| +3. Identifiers → **+** → App IDs → App → explicit `works.oficina.calls.broadcast`, |
| + description "Oficina Calls broadcast", with **App Groups** enabled and the |
| + same group. |
| 4. `CALLS_DEVELOPMENT_TEAM=<team> make iphone-device`. Automatic signing makes |
| both development profiles once the identifiers exist, and |
| `-allowProvisioningUpdates` can also create steps 1–3 for you if you would |
| rather let Xcode do it. |
| -A TestFlight or App Store build needs distribution profiles for **both** bundle |
| -identifiers, and the extension goes up inside the app. |
| - |
| -**The TestFlight release branch differs.** `release/calls-testflight` ships |
| -under the bundle identifier `works.oficina.meet`, not |
| -`net.amadan.oficina.calls.ios`. When screen sharing reaches that branch it |
| -needs, in its `project.yml`: |
| - |
| -- `CALLS_APP_GROUP: group.works.oficina.meet` |
| -- the `CallsBroadcast` target's `PRODUCT_BUNDLE_IDENTIFIER: |
| - works.oficina.meet.broadcast` (the app finds its extension as its own |
| - identifier plus `.broadcast`, so this one is not a free choice) |
| - |
| -and, in the Apple Developer portal, the App Group `group.works.oficina.meet` |
| -enabled on both `works.oficina.meet` and `works.oficina.meet.broadcast`, with |
| -distribution profiles for both. The development values above stay as they are |
| -on main. |
| +A TestFlight or App Store build needs App Store distribution profiles for **both** |
| +identifiers, and the extension goes up inside the app. The `works.oficina.meet` |
| +identifiers and profiles are no longer used by any build. |
| ## Verification |
diff --git a/native/ios/project.yml b/native/ios/project.yml| index f842718..43bcb96 100644 |
| --- a/native/ios/project.yml |
| +++ b/native/ios/project.yml |
| @@ -1,6 +1,6 @@ |
| name: CallsPhone |
| options: |
| - bundleIdPrefix: net.amadan.oficina |
| + bundleIdPrefix: works.oficina |
| deploymentTarget: |
| iOS: '17.0' |
| packages: |
| @@ -16,7 +16,7 @@ settings: |
| # the iPhone's screen crosses lives in its container. One setting |
| # feeds both entitlements and both Info.plists' CallsAppGroup key, so |
| # a build under another bundle identifier changes it here and only here. |
| - CALLS_APP_GROUP: group.net.amadan.oficina.calls |
| + CALLS_APP_GROUP: group.works.oficina.calls |
| targets: |
| CallsPhone: |
| type: application |
| @@ -36,7 +36,7 @@ targets: |
| path: ../build/ios-info.plist |
| properties: |
| CFBundleURLTypes: |
| - - CFBundleURLName: net.amadan.oficina.calls.join |
| + - CFBundleURLName: works.oficina.calls |
| CFBundleURLSchemes: [oficina-calls] |
| CallsAppGroup: $(CALLS_APP_GROUP) |
| # Audio, so a call sharing the whole screen survives the person |
| @@ -54,10 +54,14 @@ targets: |
| settings: |
| base: |
| ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon |
| - PRODUCT_BUNDLE_IDENTIFIER: net.amadan.oficina.calls.ios |
| + PRODUCT_BUNDLE_IDENTIFIER: works.oficina.calls |
| TARGETED_DEVICE_FAMILY: '1,2' |
| GENERATE_INFOPLIST_FILE: YES |
| - INFOPLIST_KEY_CFBundleDisplayName: Calls |
| + # The home screen, Spotlight and Settings say "Oficina Calls"; inside |
| + # its own screens the app says plain "Calls". (CFBundleName stays |
| + # $(PRODUCT_NAME), CallsPhone: the generated Info.plist overrides it, |
| + # and iOS shows the display name wherever a person sees the app.) |
| + INFOPLIST_KEY_CFBundleDisplayName: Oficina Calls |
| INFOPLIST_KEY_NSCameraUsageDescription: Calls uses your camera so people in your meeting can see you. |
| INFOPLIST_KEY_NSMicrophoneUsageDescription: Calls uses your microphone so people in your meeting can hear you. |
| INFOPLIST_KEY_UILaunchScreen_Generation: YES |
| @@ -69,7 +73,8 @@ targets: |
| info: |
| path: ../build/ios-broadcast-info.plist |
| properties: |
| - CFBundleDisplayName: Calls |
| + # Control Center's screen-recording list names the extension. |
| + CFBundleDisplayName: Oficina Calls |
| CallsAppGroup: $(CALLS_APP_GROUP) |
| NSExtension: |
| NSExtensionPointIdentifier: com.apple.broadcast-services-upload |
| @@ -84,7 +89,7 @@ targets: |
| product: CallsBroadcastKit |
| settings: |
| base: |
| - PRODUCT_BUNDLE_IDENTIFIER: net.amadan.oficina.calls.ios.broadcast |
| + PRODUCT_BUNDLE_IDENTIFIER: works.oficina.calls.broadcast |
| TARGETED_DEVICE_FAMILY: '1,2' |
| CallsPhoneTests: |
| type: bundle.unit-test |
diff --git a/native/mac-updates.json b/native/mac-updates.json| index 2dbacce..9677b90 100644 |
| --- a/native/mac-updates.json |
| +++ b/native/mac-updates.json |
| @@ -1,5 +1,6 @@ |
| { |
| - "bundle_id": "net.amadan.oficina.calls", |
| + "bundle_id": "works.oficina.calls", |
| + "url_schemes": ["oficina-calls"], |
| "feed_url": "https://raw.amadan.net/oficina/native-releases/main/calls/appcast.xml", |
| "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| "keychain_account": "oficina", |
diff --git a/native/scripts/build-mac.sh b/native/scripts/build-mac.sh| index 1a8b436..c5f8bfa 100755 |
| --- a/native/scripts/build-mac.sh |
| +++ b/native/scripts/build-mac.sh |
| @@ -6,5 +6,5 @@ configuration="${OFICINA_BUILD_CONFIGURATION:-debug}" |
| swift build --package-path apple --configuration "$configuration" --product CallsMac |
| python3 scripts/bundle-mac.py "$configuration" |
| shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| -python3 "$shared_native/tools/mac_updates.py" build/Calls.app --package apple "$@" |
| -printf 'Built %s/build/Calls.app\n' "$PWD" |
| +python3 "$shared_native/tools/mac_updates.py" "build/Oficina Calls.app" --package apple "$@" |
| +printf 'Built %s/build/Oficina Calls.app\n' "$PWD" |
diff --git a/native/scripts/bundle-mac.py b/native/scripts/bundle-mac.py| index 18313a2..4fe135d 100644 |
| --- a/native/scripts/bundle-mac.py |
| +++ b/native/scripts/bundle-mac.py |
| @@ -1,4 +1,16 @@ |
| -"""Bundle the local development app. Distribution signing is a separate step.""" |
| +"""Bundle the local development app. Distribution signing is a separate step. |
| + |
| +Calls keeps its own bundler rather than rastrillo/native's tools/bundle-mac.py, |
| +which the other four apps use, because that one cannot yet build Calls: it |
| +embeds no frameworks but Sparkle (Calls needs CallsBridge and LiveKitWebRTC, |
| +with an rpath), copies no resources but Lucide's notice (Calls ships the |
| +RNNoise, DeepFilterNet and WebRTC notices and the DeepFilterNet model), writes |
| +no usage descriptions (camera, microphone, Continuity Camera), and draws the |
| +icon as an ICNS only, where Calls compiles an Icon Composer Assets.car for |
| +macOS 26. Its naming rules are followed here: works.oficina.<app>, the plain |
| +name as CFBundleName, "Oficina <App>" as the file and display name, and URL |
| +schemes from mac-updates.json registered under the bundle ID. |
| +""" |
| import json |
| from pathlib import Path |
| import plistlib |
| @@ -10,8 +22,18 @@ configuration = sys.argv[1] if len(sys.argv) > 1 else 'debug' |
| if configuration not in ('debug', 'release'): raise ValueError('invalid build configuration') |
| root = Path(__file__).resolve().parent.parent |
| products = Path(subprocess.check_output(['swift', 'build', '--package-path', str(root / 'apple'), '--configuration', configuration, '--show-bin-path'], text=True).strip()) |
| -bundle = root / 'build/Calls.app/Contents' |
| +# Finder, the Dock and Spotlight show "Oficina Calls" (the .app file name and |
| +# CFBundleDisplayName), apart from every other calls app. Inside its own |
| +# windows the app is plain "Calls": CFBundleName is the short name the menu bar |
| +# and the About panel use. (SwiftUI titles About, Hide, Quit and Help with the |
| +# display name, so CallsMac.swift's PlainNameCommands names them itself.) Same |
| +# rule as rastrillo/native tools/bundle-mac.py. |
| +display_name = 'Oficina Calls' |
| +bundle = root / f'build/{display_name}.app/Contents' |
| if bundle.parent.exists(): shutil.rmtree(bundle.parent) |
| +# Builds before the rename wrote build/Calls.app; one left behind would be |
| +# opened by mistake, so it goes. |
| +if (root / 'build/Calls.app').exists(): shutil.rmtree(root / 'build/Calls.app') |
| (bundle / 'MacOS').mkdir(parents=True, exist_ok=True) |
| (bundle / 'Frameworks').mkdir(parents=True, exist_ok=True) |
| (bundle / 'Resources').mkdir(parents=True, exist_ok=True) |
| @@ -69,11 +91,19 @@ for size in (16, 32, 128, 256, 512): |
| check=True, stdout=subprocess.DEVNULL) |
| subprocess.run(['iconutil', '-c', 'icns', str(iconset), '-o', |
| str(bundle / 'Resources/CallsMac.icns')], check=True) |
| +# The app's URL schemes are declared once, in mac-updates.json, as the shared |
| +# bundler reads them (rastrillo/native tools/bundle-mac.py), and registered |
| +# under the bundle ID as their name, as it registers them. |
| +updates = json.loads((root / 'mac-updates.json').read_text()) |
| info = { |
| - 'CFBundleURLTypes': [{'CFBundleURLName': 'net.amadan.oficina.calls.join', |
| - 'CFBundleURLSchemes': ['oficina-calls']}], |
| - 'CFBundleName': 'Calls', 'CFBundleDisplayName': 'Calls', |
| - 'CFBundleIdentifier': 'net.amadan.oficina.calls', |
| + 'CFBundleURLTypes': [{'CFBundleURLName': updates['bundle_id'], |
| + 'CFBundleURLSchemes': updates['url_schemes']}], |
| + 'CFBundleName': 'Calls', 'CFBundleDisplayName': display_name, |
| + # Paul, 2026-11-14: every Oficina build, Sparkle and App Store, Mac and |
| + # iPhone, is works.oficina.<app>: here works.oficina.calls, read from |
| + # mac-updates.json so the two cannot disagree (mac_updates.py refuses a |
| + # release whose Info.plist names another app). |
| + 'CFBundleIdentifier': updates['bundle_id'], |
| 'CFBundleExecutable': 'CallsMac', 'CFBundlePackageType': 'APPL', |
| 'CFBundleIconFile': 'CallsMac.icns', 'CFBundleIconName': 'AppIcon', |
| 'CFBundleShortVersionString': '0.1.0', 'CFBundleVersion': '1', |