oficina / docs Public

Oficina ID entitlements on all three builds; Sparkle build declares them and its Developer ID profile; twelve localizations

Human

Prompt

2. Entitlements: Mac (Sparkle + App Store) and iOS get keychain-access-groups [9U4A84C4WK.works.oficina.docs FIRST, then 9U4A84C4WK.works.oficina.id], app groups (Mac 9U4A84C4WK.works.oficina; iOS group.works.oficina), associated-domains webcredentials:id.oficina.works. Wire the Sparkle build's mac-updates.json "entitlements"/"provisioning_profile" so a release signs with them (the profile path is outside the repo — design the config so the path is supplied at release time or via a documented local path; never commit the profile). 4. [...] add "localizations" (Docs' 12 languages) to mac-updates.json

From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.

Summary

DeveloperID.entitlements (Sparkle), AppStore.entitlements and ios/DocsPhone.entitlements claim keychain-access-groups [9U4A84C4WK.works.oficina.docs, then 9U4A84C4WK.works.oficina.id], the app group (9U4A84C4WK.works.oficina on Mac, group.works.oficina on iOS) and webcredentials:id.oficina.works. mac-updates.json names the entitlements and the profile by its local path, ~/private_keys/oficina/profiles/Oficina-Docs-macOS-Developer-ID.provisionprofile (mac_updates.py expands ~; --provisioning-profile overrides it at release; ad hoc builds never read it), and lists Docs' twelve languages; both XcodeGen projects declare CFBundleLocalizations too.
Agent notes
The profile is never committed. An ad hoc build drops the team entitlements and says so on stderr, so Oficina ID cannot read the keychain there: sign with the Developer ID (or an Apple Development identity and a development profile) to use it.
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7313cded992e72a0d21675a8a90aea021a747dae parent 6d327dc
8 files changed, +145 −0
  • native/ios/DocsPhone.entitlements +23 −0
  • native/ios/Info.plist +15 −0
  • native/ios/project.yml +19 −0
  • native/mac-updates.json +16 −0
  • native/macos/AppStore.entitlements +17 −0
  • native/macos/DeveloperID.entitlements +23 −0
  • native/macos/Info.plist +15 −0
  • native/macos/project.yml +17 −0

CI passed — run details

diff --git a/native/ios/DocsPhone.entitlements b/native/ios/DocsPhone.entitlements
new file mode 100644
index 0000000..830da33
--- /dev/null
+++ b/native/ios/DocsPhone.entitlements
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.developer.associated-domains</key>
+ <array>
+ <string>webcredentials:id.oficina.works</string>
+ </array>
+ <key>com.apple.security.application-groups</key>
+ <array>
+ <string>group.works.oficina</string>
+ </array>
+ <!-- Docs' own group FIRST: a keychain query that names no group lands in
+ the first one, and Docs' sessions and offline keys must never land in
+ the group every Oficina app reads (rastrillo/native APPLE.md,
+ "Oficina ID, slice A"). The second is the shared Oficina ID group. -->
+ <key>keychain-access-groups</key>
+ <array>
+ <string>9U4A84C4WK.works.oficina.docs</string>
+ <string>9U4A84C4WK.works.oficina.id</string>
+ </array>
+</dict>
+</plist>
diff --git a/native/ios/Info.plist b/native/ios/Info.plist
index bdaf0f0..dc07ff2 100644
--- a/native/ios/Info.plist
+++ b/native/ios/Info.plist
@@ -10,6 +10,21 @@
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
+ <key>CFBundleLocalizations</key>
+ <array>
+ <string>en</string>
+ <string>ar</string>
+ <string>bn</string>
+ <string>es</string>
+ <string>ga</string>
+ <string>hi</string>
+ <string>ja</string>
+ <string>pt</string>
+ <string>ru</string>
+ <string>vi</string>
+ <string>yue</string>
+ <string>zh-Hans</string>
+ </array>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
diff --git a/native/ios/project.yml b/native/ios/project.yml
index 0f63e51..aade4d3 100644
--- a/native/ios/project.yml
+++ b/native/ios/project.yml
@@ -34,6 +34,10 @@ targets:
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
PROVISIONING_PROFILE_SPECIFIER: $(OFICINA_PROVISIONING_PROFILE)
PRODUCT_BUNDLE_IDENTIFIER: works.oficina.docs
+ # Oficina ID (rastrillo/native APPLE.md, "Oficina ID, slice A"): Docs'
+ # own keychain group first, then the shared one; group.works.oficina;
+ # webcredentials:id.oficina.works for passkeys.
+ CODE_SIGN_ENTITLEMENTS: DocsPhone.entitlements
TARGETED_DEVICE_FAMILY: 1,2
GENERATE_INFOPLIST_FILE: true
INFOPLIST_KEY_CFBundleDisplayName: Oficina Docs
@@ -48,6 +52,21 @@ targets:
CFBundleTypeRole: Editor
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
+ # The twelve languages Docs ships. Without the key every resource
+ # bundle (DocsKit's, RastrilloApple's) reads English.
+ CFBundleLocalizations:
+ - en
+ - ar
+ - bn
+ - es
+ - ga
+ - hi
+ - ja
+ - pt
+ - ru
+ - vi
+ - yue
+ - zh-Hans
DocsReviewPhone:
type: application
platform: iOS
diff --git a/native/mac-updates.json b/native/mac-updates.json
index bf454d5..ba689bf 100644
--- a/native/mac-updates.json
+++ b/native/mac-updates.json
@@ -3,6 +3,22 @@
"url_schemes": [
"works.oficina.docs"
],
+ "localizations": [
+ "en",
+ "ar",
+ "bn",
+ "es",
+ "ga",
+ "hi",
+ "ja",
+ "pt",
+ "ru",
+ "vi",
+ "yue",
+ "zh-Hans"
+ ],
+ "entitlements": "macos/DeveloperID.entitlements",
+ "provisioning_profile": "~/private_keys/oficina/profiles/Oficina-Docs-macOS-Developer-ID.provisionprofile",
"feed_url": "https://raw.amadan.net/oficina/native-releases/main/docs/appcast.xml",
"public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=",
"keychain_account": "oficina"
diff --git a/native/macos/AppStore.entitlements b/native/macos/AppStore.entitlements
index a046386..313f1a9 100644
--- a/native/macos/AppStore.entitlements
+++ b/native/macos/AppStore.entitlements
@@ -8,5 +8,22 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
+ <key>com.apple.developer.associated-domains</key>
+ <array>
+ <string>webcredentials:id.oficina.works</string>
+ </array>
+ <key>com.apple.security.application-groups</key>
+ <array>
+ <string>9U4A84C4WK.works.oficina</string>
+ </array>
+ <!-- Docs' own group FIRST: a keychain query that names no group lands in
+ the first one, and Docs' sessions and offline keys must never land in
+ the group every Oficina app reads (rastrillo/native APPLE.md,
+ "Oficina ID, slice A"). The second is the shared Oficina ID group. -->
+ <key>keychain-access-groups</key>
+ <array>
+ <string>9U4A84C4WK.works.oficina.docs</string>
+ <string>9U4A84C4WK.works.oficina.id</string>
+ </array>
</dict>
</plist>
diff --git a/native/macos/DeveloperID.entitlements b/native/macos/DeveloperID.entitlements
new file mode 100644
index 0000000..2aa4c0a
--- /dev/null
+++ b/native/macos/DeveloperID.entitlements
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.developer.associated-domains</key>
+ <array>
+ <string>webcredentials:id.oficina.works</string>
+ </array>
+ <key>com.apple.security.application-groups</key>
+ <array>
+ <string>9U4A84C4WK.works.oficina</string>
+ </array>
+ <!-- Docs' own group FIRST: a keychain query that names no group lands in
+ the first one, and Docs' sessions and offline keys must never land in
+ the group every Oficina app reads (rastrillo/native APPLE.md,
+ "Oficina ID, slice A"). The second is the shared Oficina ID group. -->
+ <key>keychain-access-groups</key>
+ <array>
+ <string>9U4A84C4WK.works.oficina.docs</string>
+ <string>9U4A84C4WK.works.oficina.id</string>
+ </array>
+</dict>
+</plist>
diff --git a/native/macos/Info.plist b/native/macos/Info.plist
index 9b6f5f2..9a78f00 100644
--- a/native/macos/Info.plist
+++ b/native/macos/Info.plist
@@ -14,6 +14,21 @@
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
+ <key>CFBundleLocalizations</key>
+ <array>
+ <string>en</string>
+ <string>ar</string>
+ <string>bn</string>
+ <string>es</string>
+ <string>ga</string>
+ <string>hi</string>
+ <string>ja</string>
+ <string>pt</string>
+ <string>ru</string>
+ <string>vi</string>
+ <string>yue</string>
+ <string>zh-Hans</string>
+ </array>
<key>CFBundleName</key>
<string>Docs</string>
<key>CFBundlePackageType</key>
diff --git a/native/macos/project.yml b/native/macos/project.yml
index 22b059a..8739fe4 100644
--- a/native/macos/project.yml
+++ b/native/macos/project.yml
@@ -43,6 +43,23 @@ targets:
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
CFBundleIconFile: AppIcon
LSApplicationCategoryType: public.app-category.productivity
+ # The twelve languages Docs ships: PlainAppNameCommands' titles and
+ # DocsKit's strings appear only in languages the app declares
+ # (rastrillo/native docs/mac-updates.md). The Sparkle build gets the
+ # same list from mac-updates.json.
+ CFBundleLocalizations:
+ - en
+ - ar
+ - bn
+ - es
+ - ga
+ - hi
+ - ja
+ - pt
+ - ru
+ - vi
+ - yue
+ - zh-Hans
NSHighResolutionCapable: true
CFBundleURLTypes:
- CFBundleURLName: works.oficina.docs.signin