Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.
// swift-tools-version:5.9
import PackageDescription
// What the macOS and iOS apps share: the plan store, the device platforms and the
// Mac ⇄ iPhone sync. Smart Life / Tuya is a separate module (HouseSmartLife), so a build
// can leave it out: the App Store edition of the iPhone app does.
let package = Package(
name: "HouseCore",
platforms: [.macOS(.v13), .iOS(.v17)],
products: [
.library(name: "HouseCore", targets: ["HouseCore"]),
.library(name: "HouseSmartLife", targets: ["HouseSmartLife"]),
],
targets: [
.target(name: "HouseCore", path: "Sources/HouseCore"),
.target(name: "HouseSmartLife", dependencies: ["HouseCore"], path: "Sources/HouseSmartLife"),
.testTarget(name: "HouseCoreTests", dependencies: ["HouseCore"], path: "Tests/HouseCoreTests"),
.testTarget(name: "HouseSmartLifeTests", dependencies: ["HouseSmartLife"], path: "Tests/HouseSmartLifeTests"),
]
)