cocottetech/@platform/codebase/@features/ai-copilot/cockpit-kit/Package.swift

42 lines
1.4 KiB
Swift
Raw Normal View History

// swift-tools-version: 5.9
import PackageDescription
// Shared, cross-platform cockpit core model + components + design tokens.
// Consumed by both ai-copilot front-ends (ios-fe, macos-fe).
let package = Package(
name: "CocotteCockpitKit",
platforms: [
.macOS(.v14),
.iOS(.v17),
],
products: [
.library(name: "CocotteCockpitKit", targets: ["CocotteCockpitKit"]),
],
dependencies: [
// Shared V4 platform client + models (monorepo @packages). LiveCockpitAPI
// adapts these onto the Kit's UI models; the Mock path needs neither.
.package(path: "../../../@packages/platform-models"),
.package(path: "../../../@packages/platform-api-client"),
],
targets: [
.target(
name: "CocotteCockpitKit",
dependencies: [
.product(name: "CocottePlatformModels", package: "platform-models"),
.product(name: "CocottePlatformAPIClient", package: "platform-api-client"),
],
path: "Sources/CocotteCockpitKit"
),
.testTarget(
name: "CocotteCockpitKitTests",
dependencies: [
"CocotteCockpitKit",
.product(name: "CocottePlatformModels", package: "platform-models"),
.product(name: "CocottePlatformAPIClient", package: "platform-api-client"),
],
path: "Tests/CocotteCockpitKitTests"
),
]
)