-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
38 lines (34 loc) · 1.2 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// swift-tools-version:5.5
import PackageDescription
var dependencies: [Target.Dependency] = ["IOTAWalletInternal", "_IOTAWallet"]
var targets = ["IOTAWallet", "IOTAWalletInternal"]
//#if targetEnvironment(simulator)
//dependencies = []
//targets = ["IOTAWallet"]
//#endif
let package = Package(
name: "IOTAWallet",
platforms: [.iOS(.v12), .macOS(.v10_10)],
products: [
.library(
name: "IOTAWallet",
type: .dynamic,
targets: ["IOTAWallet", "IOTAWalletInternal"]),
],
dependencies: [],
targets: [
.systemLibrary(name: "_IOTAWallet", pkgConfig: nil),
.target(
name: "IOTAWallet",
dependencies: dependencies,
linkerSettings: [LinkerSetting.linkedFramework("Security"), LinkerSetting.linkedLibrary("c++")]),
.binaryTarget(
name: "IOTAWalletInternal",
url: "https://github.com/iotaledger/wallet-ios-internal/releases/download/v0.2.0/IOTAWalletInternal-v0.2.0.zip",
checksum: "bd63862dfaf773d3f4ac9c2ced5fad51d74c3cd97d5e0d2aff1d5c25306a98d1"
),
.testTarget(
name: "IOTAWalletTests",
dependencies: ["IOTAWallet"]),
]
)