mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 12:31:32 +00:00
* refactor(apple): unify offline client databases
* refactor(apple): remove dead cache APIs
* fix(apple): satisfy native storage gates
* fix(apple): sync generated localization catalog
* Revert "fix(apple): sync generated localization catalog"
This reverts commit d0f5e7b749.
* fix(i18n): keep source validation pre-merge
* test(macos): isolate flaky suite state
* test(macos): isolate log locator on main actor
93 lines
3.3 KiB
Swift
93 lines
3.3 KiB
Swift
// swift-tools-version: 6.2
|
|
|
|
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"),
|
|
]),
|
|
])
|