oficina / docs Public

native/levelup-phase0

Native level-up phase 0 for Docs (native-levelup/BRIEF.md, PLAN.md §0). Ready for review. Not merged.

761c2f4: pin. rastrillo/native c24df35 → b6a4067 (rastrillo main, where native/levelup-phase0-tools landed). The commit touches Package.swift, Package.resolved, both project.yml files, notices/native/provenance.json (the LICENSE is unchanged) and DocsKit's Colophon.json (regenerated with go run ./cmd/docs-colophon). Nothing in Docs broke. That one commit is the whole pin, so the next repin edits the same six files. Its only Swift change is NativeUpdateCommands naming the app by CFBundleName ("Restart Docs").

18a7c35: bundle IDs and the URL scheme.

  • Every build is works.oficina.docs. native/mac-updates.json moves the Sparkle build from net.amadan.oficina.docs. The App Store Mac and iPhone builds were already works.oficina.docs. The review app is now works.oficina.docs.review, and the iPhone bundle-ID prefix (which the UI-test bundle uses) is works.oficina.
  • mac-updates.json adds "url_schemes": ["works.oficina.docs"], so the Sparkle bundle gets CFBundleURLTypes and registers works.oficina.docs://. There is no app-local wrapper. The scheme is applied only when the bundle is built with --updates-config, which every release build uses. A bare scripts/build-mac.sh development build registers none, but ASWebAuthenticationSession still catches the sign-in callback.

cb9408a: names.

  • Mac App Store: the app is now "Oficina Docs.app" (PRODUCT_NAME; the module keeps the name DocsMacStore). CFBundleDisplayName is "Oficina Docs" and CFBundleName is "Docs" (it was "Oficina Docs"), so the menu bar and About say "Docs". The Sparkle build gets the same names from rastrillo's bundler.
  • iPhone: the home-screen label is "Oficina Docs". On an iPhone 18 Pro simulator (iOS 27.0) it shows in full and does not truncate, but it fills the column (native-levelup/screenshots/docs-ios-home-screen.png).
  • Inside the app, the accounts/sign-in title and the Colophon's opening line now say "Docs" in all twelve languages, matching the web Colophon.

No entitlements were added, and the sign-in code is unchanged.

Gates (local, at cb9408a):

  • .amadan/ci.d/20-native (check-native.sh) green: 101 XCTest (4 skipped) plus Swift Testing.
  • .amadan/ci.d/10-gate green. Docs has no make ci; its Makefile has only release, so these two scripts are its CI.
  • scripts/build-mac.sh --updates-config mac-updates.json built "Oficina Docs.app": works.oficina.docs, CFBundleName "Docs", the scheme registered, and codesign --verify --deep --strict ok. The old net.amadan JSON is refused before the build.
  • scripts/build-iphone.sh simulator succeeded, and the unsigned App Store Mac xcodebuild succeeded.

For Paul: the Mac app needs one manual reinstall, and the new ID starts signed out. Sparkle may install over the old app in place; nobody has tried it yet. See rastrillo docs/mac-updates.md, "Moving an installed net.amadan.oficina.* app".

Commits 3
Discussions 0 0 open
Tasks 0/2 done

Activity