From 15af06d4fb4647906acc65617906bf68d2be4a04 Mon Sep 17 00:00:00 2001 From: Ben Kreeger Date: Tue, 8 Jun 2021 12:34:21 -0500 Subject: [PATCH] Bump swift-tools-version, fix resulting build errors --- Package.swift | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index 4c91d43e..d621bc5e 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.2 import PackageDescription @@ -19,17 +19,24 @@ let package = Package( .package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", .upToNextMinor(from: "9.0.0")), .package(url: "https://github.com/Quick/Quick.git", .upToNextMinor(from: "3.0.0")), .package(url: "https://github.com/Quick/Nimble.git", .upToNextMinor(from: "9.0.0")), - .package(url: "https://github.com/LaunchDarkly/swift-eventsource.git", .upToNextMinor(from: "1.2.1")) + .package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .upToNextMinor(from: "1.2.1")) ], targets: [ .target( name: "LaunchDarkly", - dependencies: ["LDSwiftEventSourceStatic"], + dependencies: [ + .product(name: "LDSwiftEventSourceStatic", package: "LDSwiftEventSource") + ], path: "LaunchDarkly/LaunchDarkly", exclude: ["Support"]), .testTarget( name: "LaunchDarklyTests", - dependencies: ["LaunchDarkly", "OHHTTPStubsSwift", "Quick", "Nimble"], + dependencies: [ + "LaunchDarkly", + .product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"), + .product(name: "Quick", package: "Quick"), + .product(name: "Nimble", package: "Nimble") + ], path: "LaunchDarkly", exclude: ["LaunchDarklyTests/Info.plist", "LaunchDarklyTests/.swiftlint.yml"], sources: ["GeneratedCode", "LaunchDarklyTests"]),