diff options
Diffstat (limited to 'Package.swift')
-rw-r--r-- | Package.swift | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..cd3a7aa --- /dev/null +++ b/Package.swift @@ -0,0 +1,30 @@ +// swift-tools-version: 5.9 + +import PackageDescription + +let package = Package( + name: "swift-lichess", + platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)], + products: [ + .library( + name: "LichessClient", + targets: ["LichessClient"]), + ], + dependencies: [ + .package(url: "https://github.com/apple/swift-openapi-generator", from: "1.0.0"), + .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"), + .package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.0"), + ], + targets: [ + .target( + name: "LichessClient", + dependencies: [ + .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), + .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"), + ] + ), + .testTarget( + name: "swift-lichessTests", + dependencies: ["LichessClient"]), + ] +) |