From fe5b6ecdac71cebbddeb75f1c97a10d927aa4525 Mon Sep 17 00:00:00 2001 From: SOOS-FAngelino <95292464+SOOS-FAngelino@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:47:33 -0300 Subject: [PATCH] Add files via upload --- Package.swift | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..ace1d72 --- /dev/null +++ b/Package.swift @@ -0,0 +1,100 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "swift-vuln-test", + platforms: [ + .iOS(.v12), + .macOS(.v10_14), + .tvOS(.v12), + .watchOS(.v5) + ], + products: [ + .library( + name: "Apollo", + targets: ["Apollo"]), + .library( + name: "ApolloAPI", + targets: ["ApolloAPI"]), + .library( + name: "ApolloUtils", + targets: ["ApolloUtils"]), + .library( + name: "Apollo-Dynamic", + type: .dynamic, + targets: ["Apollo"]), + .library( + name: "ApolloCodegenLib", + targets: ["ApolloCodegenLib"]), + .library( + name: "ApolloSQLite", + targets: ["ApolloSQLite"]), + .library( + name: "ApolloWebSocket", + targets: ["ApolloWebSocket"]), + ], + dependencies: [ + .package(url: "https://github.com/apple/swift-nio-extras.git", .exact("1.4.0")), + .package(url: "https://github.com/vapor/vapor.git", .exact("4.84.1")), + ], + targets: [ + .target( + name: "Apollo", + dependencies: [ + "ApolloAPI", + "ApolloUtils" + ], + exclude: [ + "Info.plist" + ]), + .target( + name: "ApolloAPI", + dependencies: [], + exclude: [ + "Info.plist", + "CodegenV1" + ]), + .target( + name: "ApolloUtils", + dependencies: [], + exclude: [ + "Info.plist" + ]), + .target( + name: "ApolloCodegenLib", + dependencies: [ + "ApolloUtils", + .product(name: "InflectorKit", package: "InflectorKit"), + .product(name: "Stencil", package: "Stencil"), + ], + exclude: [ + "Info.plist", + "Frontend/JavaScript", + ], + resources: [ + .copy("Frontend/dist/ApolloCodegenFrontend.bundle.js"), + .copy("Frontend/dist/ApolloCodegenFrontend.bundle.js.map") + ]), + .target( + name: "ApolloSQLite", + dependencies: [ + "Apollo", + .product(name: "SQLite", package: "SQLite.swift"), + ], + exclude: [ + "Info.plist" + ]), + .target( + name: "ApolloWebSocket", + dependencies: [ + "Apollo", + "ApolloUtils", + .product(name: "Starscream", package: "Starscream"), + ], + exclude: [ + "Info.plist" + ]) + ] +) \ No newline at end of file