You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "chat_api",
platforms: [
.iOS(.v16),
.macOS(.v13)
],
products: [
.library(name: "chat-api", targets: ["chat_api"])
],
dependencies: [
.package(url: "https://github.com/MacPaw/OpenAI.git", from: "0.4.3"),
.package(url: "https://github.com/modelcontextprotocol/swift-sdk.git", from: "0.9.0"),
.package(path: "../../../location_service/ios/location_service"),
.package(path: "../../../qq_music/ios/qq_music"),
],
targets: [
.target(
name: "chat_api",
dependencies: [
.product(name: "MCP", package: "swift-sdk"),
.product(name: "OpenAI", package: "OpenAI"),
.product(name: "qq-music", package: "qq_music"),
.product(name: "location-service", package: "location_service")
],
exclude: []
),
]
)