trackslash
VAULT-103 P2 For an agent

Mac app: build and test the shared modules on macOS

0
Sub-issue of VAULT-101 P2 A native Mac app

Description

Part of VAULT-101. It needs the design doc (VAULT-102).

Make the shared modules build and test on macOS, and make validation prove it, so the Mac work never breaks iOS, or the other way round.

  • The core modules: VaultCore, VaultFeed, VaultBackup, VaultKeygen, CryptoEngine, CArgon2, VaultSettings and FoundationExtensions build for macOS 26. VaultFeed's one UIKit file moves behind a platform check, or into the iOS module.
  • Their tests: they run on macOS through the CI_macOS scheme and its test plan. Tests that are iOS-only by nature are marked as such, not deleted.
  • Validation: local-check.config.ts gains a macOS step that builds and tests the shared modules. It runs alongside the iOS steps and posts as part of the same "Validate (local)" check.
  • No behaviour changes: the iOS app and its tests are unchanged.

Done when

make validate builds and tests the shared modules on macOS as well as iOS, and every test passes on both.

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Done in https://github.com/badbundle/vault-app/pull/713 (merged as 4523c835). make validate now builds and runs every shared module's tests on the Mac as well as iOS: 2,790 tests on the Mac, after the iOS steps, in the same "Validate (local)" check.

  • ImageTools and VaultExport build for macOS too, since VaultBackup and VaultFeed depend on them. They use platform aliases (PlatformImage, PlatformFont, PlatformColor, PlatformEdgeInsets), which are the same UIKit types on iOS. Until VAULT-104, making a PDF on the Mac throws, and the tests that draw PDFs are iOS-only.
  • No test is iOS-only by nature: even the keychain tests pass on the Mac.
  • Found on the way: a Mac with Apple silicon won't write a file with complete protection while its screen is locked, as an iPhone won't. Validation often runs with the screen locked, so the macOS test plan has debug builds write the vault's files with completeUntilFirstUserAuthentication (VAULT_TEST_FILE_PROTECTION). Release builds ignore it. docs/mac-app.md records what it means for the app: the Mac's vault file can't be read or written while the screen is locked, as on iOS.