Skip to content

0.4.0

Choose a tag to compare

@mozharovsky mozharovsky released this 07 Jul 11:51
· 71 commits to main since this release
6e79d74

Added

  • Scheme object model with Xcscheme and BuildableReference — Xcscheme wraps a parsed scheme document the way XcodeProject wraps a pbxproj, with parse, create, build, root, and elements(name), and buildableReferences() returns typed views whose blueprintIdentifier, blueprintName, buildableName, and referencedContainer properties read and write the underlying element's attributes directly. The tree stays the single source of truth, so typed edits and direct tree edits compose freely and byte-fidelity guarantees are unchanged.
  • is() narrowing on every view class — a static type guard for discriminating mixed objects, so walking a document reads as if (NativeTarget.is(object)) and narrows the way instanceof does, subclasses included.
  • Typed views for three more kinds — BuildConfiguration exposes its name and a live buildSettings dictionary typed as BuildSettings (writes land in the document), FileReference exposes path and name, and ContainerItemProxy exposes remoteInfo. All three come out of the factory and the property queries automatically. BuildSettings also gains the TEST_HOST and TEST_TARGET_NAME keys rename flows touch.
  • A documentation pass over the scheme module: the parser class, its fields, and every previously undocumented method now carry doc comments.

Full Changelog: 0.3.0...0.4.0