File tree Expand file tree Collapse file tree 2 files changed +43
-17
lines changed Expand file tree Collapse file tree 2 files changed +43
-17
lines changed Original file line number Diff line number Diff line change
1
+ // swift-tools-version:5.5
2
+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3
+
4
+ import PackageDescription
5
+
6
+ let tag = " 0.1-alpha.1 "
7
+ let checksum = " d91403566498f01cdaaafc07a9360ef661151e64075c6d83bbce4c9b5bfa7cee "
8
+ let url = " https://github.com/lightningdevkit/ldk-node/releases/download/ \( tag) /LDKNodeFFI.xcframework.zip "
9
+
10
+ let package = Package (
11
+ name: " ldk-node " ,
12
+ platforms: [
13
+ . iOS( . v15) ,
14
+ . macOS( . v12) ,
15
+ ] ,
16
+ products: [
17
+ // Products define the executables and libraries a package produces, and make them visible to other packages.
18
+ . library(
19
+ name: " LDKNode " ,
20
+ targets: [ " LDKNodeFFI " , " LDKNode " ] ) ,
21
+ ] ,
22
+ targets: [
23
+ . target(
24
+ name: " LDKNode " ,
25
+ dependencies: [ " LDKNodeFFI " ] ,
26
+ path: " ./bindings/swift/Sources " ,
27
+ swiftSettings: [ . unsafeFlags( [ " -suppress-warnings " ] ) ]
28
+ ) ,
29
+ . binaryTarget(
30
+ name: " LDKNodeFFI " ,
31
+ url: url,
32
+ checksum: checksum
33
+ )
34
+ ]
35
+ )
Original file line number Diff line number Diff line change 1
1
// swift-tools-version:5.5
2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
-
4
3
import PackageDescription
5
4
6
5
let package = Package (
7
6
name: " ldk-node " ,
8
7
platforms: [
8
+ . iOS( . v15) ,
9
9
. macOS( . v12) ,
10
- . iOS( . v15)
11
10
] ,
12
11
products: [
13
12
// Products define the executables and libraries a package produces, and make them visible to other packages.
14
13
. library(
15
14
name: " LDKNode " ,
16
15
targets: [ " LDKNodeFFI " , " LDKNode " ] ) ,
17
16
] ,
18
- dependencies: [
19
- // Dependencies declare other packages that this package depends on.
20
- // .package(url: /* package url */, from: "1.0.0"),
21
- ] ,
22
17
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 this package depends on.
25
- // .binaryTarget(
26
- // name: "LDKNodeFFI",
27
- // url: "https://github.com/lightningdevkit/ldk-node/releases/download/0.3.0/LDKNodeFFI.xcframework.zip",
28
- // checksum: "<TBD>"),
29
- . binaryTarget( name: " LDKNodeFFI " , path: " ./LDKNodeFFI.xcframework " ) ,
30
18
. target(
31
19
name: " LDKNode " ,
32
- dependencies: [ " LDKNodeFFI " ] ) ,
33
- // .testTarget(
34
- // name: "LightningDevKitNodeTests",
35
- // dependencies: ["LightningDevKitNode"]),
20
+ dependencies: [ " LDKNodeFFI " ] ,
21
+ swiftSettings: [ . unsafeFlags( [ " -suppress-warnings " ] ) ]
22
+ ) ,
23
+ . binaryTarget(
24
+ name: " LDKNodeFFI " ,
25
+ path: " ./LDKNodeFFI.xcframework "
26
+ )
36
27
]
37
28
)
You can’t perform that action at this time.
0 commit comments