Files
ShoeGaze/Package.swift
T
josh 0ddf350f1f Migrate to Lyrebird 2.0.0; app version bump
Lyrebird 2.0 moved `@UIParam` / `UIParamNode` out of `LyrebirdUI` into the
core `LyrebirdSynth` module (the `Lyrebird` product); `LyrebirdUI` no longer
re-exports them. Migrate:
- add `import LyrebirdSynth` to every file that uses `@UIParam`/`UIParamNode`
  (the pedal controls, tempo-syncable params, and the SwiftUI views).
- Package.swift: the `LyrebirdShoeGazeUI` target now also depends on the
  `Lyrebird` product (previously only `LyrebirdUI`), so `import LyrebirdSynth`
  resolves there under explicit module maps.
- Package.resolved (SwiftPM + both Xcode projects) pinned to Lyrebird 2.0.0.

Also: app marketing/project version bumps, Xcode upgrade-check, and a
CHANGELOG wording tweak carried in the same working tree.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-23 21:17:30 -07:00

66 lines
2.8 KiB
Swift

// swift-tools-version: 6.0
// ShoeGaze — a standalone guitar-pedalboard sample project for Lyrebird.
//
// Depends on the published Lyrebird package by URL. Two products:
// • LyrebirdShoeGaze — core pedal/board framework (no SwiftUI).
// • LyrebirdShoeGazeUI — SwiftUI pedalboard views (knobs + bypass toggle).
//
// Linkage note: both targets link the *static* Lyrebird products (`Lyrebird`,
// `LyrebirdUI`). SwiftPM resolves the shared `LyrebirdSynth` target once, so
// there is a single copy of the module in any consumer — no ObjC class
// double-registration. The dynamic-product dance used by `LiveCompile/` is only
// required for runtime dylib hot-swap, which ShoeGaze does not do.
//
// The apps live at Demo/ShoeGazeBuilder.xcodeproj (macOS) and
// Demo/ShoeGazeBuilderiOS.xcodeproj (iPad) — open ShoeGaze.xcworkspace in Xcode
// and run the matching scheme to build them.
import PackageDescription
let package = Package(
name: "LyrebirdShoeGaze",
platforms: [.macOS(.v15), .iOS(.v18)],
products: [
.library(name: "LyrebirdShoeGaze", targets: ["LyrebirdShoeGaze"]),
.library(name: "LyrebirdShoeGazeUI", targets: ["LyrebirdShoeGazeUI"]),
],
dependencies: [
.package(url: "https://realizedsound.mooo.com/josh/Lyrebird", from: "2.0.0"),
],
targets: [
// Both targets depend on the core `Lyrebird` product AND `LyrebirdUI`.
// Pedals expose their knobs as `@UIParam`, whose projected `UIParamNode`
// lives in the core `LyrebirdSynth` module (the `Lyrebird` product) as of
// Lyrebird 2.0 — `LyrebirdUI` no longer re-exports it — so any file using
// `@UIParam` / `UIParamNode` needs `import LyrebirdSynth`, which requires
// the `Lyrebird` product as a direct dependency. Importing these does not
// pull SwiftUI into ShoeGaze's own core sources.
.target(
name: "LyrebirdShoeGaze",
dependencies: [
.product(name: "Lyrebird", package: "Lyrebird"),
.product(name: "LyrebirdUI", package: "Lyrebird"),
],
path: "Sources/LyrebirdShoeGaze"
),
.target(
name: "LyrebirdShoeGazeUI",
dependencies: [
"LyrebirdShoeGaze",
.product(name: "Lyrebird", package: "Lyrebird"),
.product(name: "LyrebirdUI", package: "Lyrebird"),
],
path: "Sources/LyrebirdShoeGazeUI"
),
.testTarget(
name: "LyrebirdShoeGazeTests",
dependencies: [
"LyrebirdShoeGaze",
"LyrebirdShoeGazeUI",
.product(name: "Lyrebird", package: "Lyrebird"),
.product(name: "LyrebirdUI", package: "Lyrebird"),
],
path: "Tests/LyrebirdShoeGazeTests"
),
]
)