Fountain Coach Gitowner-controlled · read only

AnimationKit.git · Package.swift

AnimationKit.git / Package.swift

revision b69a747658c6af0a24916d4eb02746426ab6f34f · complete file

// swift-tools-version: 6.0
import PackageDescription

let package = Package(
    name: "AnimationKit",
    platforms: [
        .macOS(.v13),
        .iOS(.v16)
    ],
    products: [
        .library(name: "AnimationKit", targets: ["AnimationKit"]),
        .library(name: "AnimationKitClient", targets: ["AnimationKitClient"])
    ],
    dependencies: [
        .package(url: "https://github.com/apple/swift-openapi-generator", from: "1.10.3"),
        .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.8.3"),
        .package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.2.0")
    ],
    targets: [
        .target(
            name: "AnimationKit",
            dependencies: [],
            path: "Sources/AnimationKit"
        ),
        .target(
            name: "AnimationKitClient",
            dependencies: [
                "AnimationKit",
                .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
                .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession")
            ],
            path: "Sources/AnimationKitClient",
            resources: [
                .copy("openapi.yaml")
            ],
            plugins: [
                .plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")
            ]
        ),
        .testTarget(
            name: "AnimationKitTests",
            dependencies: ["AnimationKit"],
            path: "Tests/AnimationKitTests"
        ),
        .testTarget(
            name: "AnimationKitClientTests",
            dependencies: ["AnimationKitClient", "AnimationKit"],
            path: "Tests/AnimationKitClientTests"
        )
    ]
)