Adding dependencies to Package.swift

This commit is contained in:
Pengwius 2021-03-26 23:31:43 +01:00
parent eac913fbfe
commit 253d8e3872

View file

@ -13,14 +13,16 @@ let package = Package(
], ],
dependencies: [ dependencies: [
// Dependencies declare other packages that this package depends on. // Dependencies declare other packages that this package depends on.
//.package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", from: "4.2.2"), .package(url: "https://github.com/kishikawakatsumi/KeychainAccess", from: "4.2.2"),
.package(url: "https://github.com/krzyzanowskim/OpenSSL", from: "1.1.180"),
.package(url: "https://github.com/SwiftyJSON/SwiftyJSON", from: "5.0.0")
], ],
targets: [ targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on. // Targets can depend on other targets in this package, and on products in packages this package depends on.
.target( .target(
name: "Sdk", name: "Sdk",
dependencies: []), dependencies: ["KeychainAccess", "OpenSSL", "SwiftyJSON"]),
.testTarget( .testTarget(
name: "SdkTests", name: "SdkTests",
dependencies: ["Sdk"]), dependencies: ["Sdk"]),