mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 23:27:26 +00:00
Mac: finish Moltbot rename
This commit is contained in:
61
apps/shared/MoltbotKit/Package.swift
Normal file
61
apps/shared/MoltbotKit/Package.swift
Normal file
@@ -0,0 +1,61 @@
|
||||
// swift-tools-version: 6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "MoltbotKit",
|
||||
platforms: [
|
||||
.iOS(.v18),
|
||||
.macOS(.v15),
|
||||
],
|
||||
products: [
|
||||
.library(name: "MoltbotProtocol", targets: ["MoltbotProtocol"]),
|
||||
.library(name: "MoltbotKit", targets: ["MoltbotKit"]),
|
||||
.library(name: "MoltbotChatUI", targets: ["MoltbotChatUI"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.0"),
|
||||
.package(url: "https://github.com/gonzalezreal/textual", exact: "0.3.1"),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "MoltbotProtocol",
|
||||
path: "Sources/MoltbotProtocol",
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("StrictConcurrency"),
|
||||
]),
|
||||
.target(
|
||||
name: "MoltbotKit",
|
||||
path: "Sources/MoltbotKit",
|
||||
dependencies: [
|
||||
"MoltbotProtocol",
|
||||
.product(name: "ElevenLabsKit", package: "ElevenLabsKit"),
|
||||
],
|
||||
resources: [
|
||||
.process("Resources"),
|
||||
],
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("StrictConcurrency"),
|
||||
]),
|
||||
.target(
|
||||
name: "MoltbotChatUI",
|
||||
path: "Sources/MoltbotChatUI",
|
||||
dependencies: [
|
||||
"MoltbotKit",
|
||||
.product(
|
||||
name: "Textual",
|
||||
package: "textual",
|
||||
condition: .when(platforms: [.macOS, .iOS])),
|
||||
],
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("StrictConcurrency"),
|
||||
]),
|
||||
.testTarget(
|
||||
name: "MoltbotKitTests",
|
||||
dependencies: ["MoltbotKit", "MoltbotChatUI"],
|
||||
path: "Tests/MoltbotKitTests",
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("StrictConcurrency"),
|
||||
.enableExperimentalFeature("SwiftTesting"),
|
||||
]),
|
||||
])
|
||||
Reference in New Issue
Block a user