mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
234df15a6d
* build(deps): refresh dependencies after cooldown Apply dependency, toolchain, action, image, and exact tool updates released by the inclusive 2026-08-16 seven-day cutoff. Adapt owner boundaries for the resulting CUA, logging, Teams, Markdown, native, and test-harness contract changes while retaining versions blocked by upstream compatibility constraints. * fix(ui): align markdown renderer env typing * fix(deps): align postcss and mistral peer contracts * fix(deps): repair refreshed dependency contracts * fix(deps): retain tslog startup budget * fix(ci): verify Android tools with SHA-256 * fix(ci): fence Android SDK cache version
93 lines
3.3 KiB
Swift
93 lines
3.3 KiB
Swift
// swift-tools-version: 6.3
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "OpenClawKit",
|
|
platforms: [
|
|
.iOS(.v18),
|
|
.macOS(.v15),
|
|
.watchOS(.v11),
|
|
],
|
|
products: [
|
|
.library(name: "OpenClawProtocol", targets: ["OpenClawProtocol"]),
|
|
.library(name: "OpenClawNativeState", targets: ["OpenClawNativeState"]),
|
|
.library(name: "OpenClawKit", targets: ["OpenClawKit"]),
|
|
.library(name: "OpenClawChatUI", targets: ["OpenClawChatUI"]),
|
|
],
|
|
traits: [
|
|
.trait(name: "Talk", description: "ElevenLabs cloud TTS / talk support"),
|
|
.default(enabledTraits: ["Talk"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.1"),
|
|
.package(url: "https://github.com/groue/GRDB.swift.git", exact: "7.11.1"),
|
|
.package(url: "https://github.com/mgriebling/SwiftMath", exact: "1.7.3"),
|
|
.package(url: "https://github.com/swiftlang/swift-markdown", exact: "0.8.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "OpenClawProtocol",
|
|
path: "Sources/OpenClawProtocol",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "OpenClawNativeState",
|
|
path: "Sources/OpenClawNativeState",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "OpenClawKit",
|
|
dependencies: [
|
|
"OpenClawNativeState",
|
|
"OpenClawProtocol",
|
|
.product(
|
|
name: "ElevenLabsKit",
|
|
package: "ElevenLabsKit",
|
|
condition: .when(platforms: [.iOS, .macOS], traits: ["Talk"])),
|
|
],
|
|
path: "Sources/OpenClawKit",
|
|
resources: [
|
|
.process("Resources"),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "OpenClawChatUI",
|
|
dependencies: [
|
|
"OpenClawKit",
|
|
"OpenClawProtocol",
|
|
.product(name: "GRDB", package: "GRDB.swift"),
|
|
.product(name: "Markdown", package: "swift-markdown"),
|
|
.product(name: "SwiftMath", package: "SwiftMath"),
|
|
],
|
|
path: "Sources/OpenClawChatUI",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.testTarget(
|
|
name: "OpenClawKitTests",
|
|
dependencies: [
|
|
"OpenClawKit",
|
|
"OpenClawChatUI",
|
|
"OpenClawProtocol",
|
|
.product(name: "GRDB", package: "GRDB.swift"),
|
|
],
|
|
path: "Tests/OpenClawKitTests",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
.testTarget(
|
|
name: "OpenClawNativeStateTests",
|
|
dependencies: ["OpenClawNativeState"],
|
|
path: "Tests/OpenClawNativeStateTests",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
])
|