|
4 | 4 | import PackageDescription
|
5 | 5 |
|
6 | 6 | let package = Package(
|
7 |
| - name: "Web3swift", |
8 |
| - products: [ |
9 |
| - // Products define the executables and libraries produced by a package, and make them visible to other packages. |
10 |
| - .library(name: "web3swift", targets: ["web3swift"]), |
| 7 | + name: "Web3swift", |
| 8 | + platforms: [ |
| 9 | + .macOS(.v10_12), .iOS(.v11), |
11 | 10 | ],
|
12 |
| - dependencies: [ |
13 |
| - .package(url: "https://github.com/attaswift/BigInt.git", from: "5.2"), |
14 |
| - .package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.15.3"), |
15 |
| - .package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.4"), |
16 |
| - .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.4.0"), |
| 11 | + products: [ |
| 12 | + // Products define the executables and libraries produced by a package, and make them visible to other packages. |
| 13 | + .library(name: "web3swift", targets: ["web3swift"]), |
17 | 14 | ],
|
18 |
| - targets: [ |
19 |
| - // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
20 |
| - // Targets can depend on other targets in this package, and on products in packages which this package depends on. |
21 |
| - .target(name: "secp256k1"), |
22 |
| - .target( |
23 |
| - name: "web3swift", |
24 |
| - dependencies: ["BigInt", "secp256k1", "PromiseKit", "Starscream", "CryptoSwift"], |
25 |
| - exclude: [ |
26 |
| - ]), |
27 |
| - .testTarget( |
28 |
| - name: "web3swiftTests", |
29 |
| - dependencies: ["web3swift"]), |
| 15 | + |
| 16 | + dependencies: [ |
| 17 | + .package(url: "https://github.com/attaswift/BigInt.git", from: "5.2.0"), |
| 18 | + .package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.15.3"), |
| 19 | + .package(url: "https://github.com/daltoniam/Starscream.git", from: "4.0.4"), |
| 20 | + .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.4.0"), |
| 21 | + ], |
| 22 | + targets: [ |
| 23 | + // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
| 24 | + // Targets can depend on other targets in this package, and on products in packages which this package depends on. |
| 25 | + .target(name: "secp256k1"), |
| 26 | + .target( |
| 27 | + name: "web3swift", |
| 28 | + dependencies: ["BigInt", "secp256k1", "PromiseKit", "Starscream", "CryptoSwift"], |
| 29 | + exclude: [ |
| 30 | + ]), |
| 31 | + .testTarget( |
| 32 | + name: "web3swiftTests", |
| 33 | + dependencies: ["web3swift"]), |
30 | 34 | ]
|
31 | 35 | )
|
0 commit comments