diff --git a/Package.swift b/Package.swift index 4c91d43e..590dbcba 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,23 @@ 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"]),