Files
openclaw/apps/shared/ClawdbotKit/Package.swift

58 lines
1.8 KiB
Swift
Raw Normal View History

2025-12-12 21:18:46 +00:00
// swift-tools-version: 6.2
import PackageDescription
let package = Package(
2026-01-04 14:32:47 +00:00
name: "ClawdbotKit",
2025-12-12 21:18:46 +00:00
platforms: [
.iOS(.v18),
2025-12-12 21:18:46 +00:00
.macOS(.v15),
],
products: [
.library(name: "ClawdbotProtocol", targets: ["ClawdbotProtocol"]),
2026-01-04 14:32:47 +00:00
.library(name: "ClawdbotKit", targets: ["ClawdbotKit"]),
.library(name: "ClawdbotChatUI", targets: ["ClawdbotChatUI"]),
2025-12-12 21:18:46 +00:00
],
2025-12-30 12:48:09 +01:00
dependencies: [
2026-01-01 20:19:00 +01:00
.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.0"),
.package(url: "https://github.com/gonzalezreal/textual", exact: "0.2.0"),
2025-12-30 12:48:09 +01:00
],
2025-12-12 21:18:46 +00:00
targets: [
.target(
name: "ClawdbotProtocol",
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
2025-12-12 21:18:46 +00:00
.target(
2026-01-04 14:32:47 +00:00
name: "ClawdbotKit",
2025-12-30 12:48:09 +01:00
dependencies: [
"ClawdbotProtocol",
2025-12-30 12:48:09 +01:00
.product(name: "ElevenLabsKit", package: "ElevenLabsKit"),
],
2025-12-18 10:44:06 +01:00
resources: [
.process("Resources"),
],
2025-12-12 21:18:46 +00:00
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.target(
2026-01-04 14:32:47 +00:00
name: "ClawdbotChatUI",
dependencies: [
"ClawdbotKit",
.product(
name: "Textual",
package: "textual",
condition: .when(platforms: [.macOS, .iOS])),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.testTarget(
2026-01-04 14:32:47 +00:00
name: "ClawdbotKitTests",
dependencies: ["ClawdbotKit", "ClawdbotChatUI"],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.enableExperimentalFeature("SwiftTesting"),
]),
2025-12-12 21:18:46 +00:00
])