Skip to content

Commit c99f4bd

Browse files
committed
Rename Swift modules to LDKNode/LDKNodeFFI
1 parent d3e909a commit c99f4bd

File tree

13 files changed

+45
-42
lines changed

13 files changed

+45
-42
lines changed

bindings/swift/ldk_nodeFFI.xcframework/Info.plist renamed to bindings/swift/LDKNodeFFI.xcframework/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<key>LibraryIdentifier</key>
99
<string>macos-arm64_x86_64</string>
1010
<key>LibraryPath</key>
11-
<string>ldk_nodeFFI.framework</string>
11+
<string>LDKNodeFFI.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
@@ -21,7 +21,7 @@
2121
<key>LibraryIdentifier</key>
2222
<string>ios-arm64_x86_64-simulator</string>
2323
<key>LibraryPath</key>
24-
<string>ldk_nodeFFI.framework</string>
24+
<string>LDKNodeFFI.framework</string>
2525
<key>SupportedArchitectures</key>
2626
<array>
2727
<string>arm64</string>
@@ -36,7 +36,7 @@
3636
<key>LibraryIdentifier</key>
3737
<string>ios-arm64</string>
3838
<key>LibraryPath</key>
39-
<string>ldk_nodeFFI.framework</string>
39+
<string>LDKNodeFFI.framework</string>
4040
<key>SupportedArchitectures</key>
4141
<array>
4242
<string>arm64</string>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// This is the "umbrella header" for our combined Rust code library.
22
// It needs to import all of the individual headers.
33

4-
#import "ldk_nodeFFI.h"
4+
#import "LDKNodeFFI.h"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module LDKNodeFFI {
2+
umbrella header "LDKNodeFFI-umbrella.h"
3+
4+
export *
5+
module * { export * }
6+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// This is the "umbrella header" for our combined Rust code library.
22
// It needs to import all of the individual headers.
33

4-
#import "ldk_nodeFFI.h"
4+
#import "LDKNodeFFI.h"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module LDKNodeFFI {
2+
umbrella header "LDKNodeFFI-umbrella.h"
3+
4+
export *
5+
module * { export * }
6+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// This is the "umbrella header" for our combined Rust code library.
22
// It needs to import all of the individual headers.
33

4-
#import "ldk_nodeFFI.h"
4+
#import "LDKNodeFFI.h"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module LDKNodeFFI {
2+
umbrella header "LDKNodeFFI-umbrella.h"
3+
4+
export *
5+
module * { export * }
6+
}

bindings/swift/Package.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let package = Package(
1212
products: [
1313
// Products define the executables and libraries a package produces, and make them visible to other packages.
1414
.library(
15-
name: "LightningDevKitNode",
16-
targets: ["ldk_nodeFFI", "LightningDevKitNode"]),
15+
name: "LDKNode",
16+
targets: ["LDKNodeFFI", "LDKNode"]),
1717
],
1818
dependencies: [
1919
// Dependencies declare other packages that this package depends on.
@@ -23,13 +23,13 @@ let package = Package(
2323
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2424
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2525
// .binaryTarget(
26-
// name: "ldk_nodeFFI",
27-
// url: "https://github.com/lightningdevkit/ldk-node/releases/download/0.3.0/ldk_nodeFFI.xcframework.zip",
26+
// name: "LDKNodeFFI",
27+
// url: "https://github.com/lightningdevkit/ldk-node/releases/download/0.3.0/LDKNodeFFI.xcframework.zip",
2828
// checksum: "<TBD>"),
29-
.binaryTarget(name: "ldk_nodeFFI", path: "./ldk_nodeFFI.xcframework"),
29+
.binaryTarget(name: "LDKNodeFFI", path: "./LDKNodeFFI.xcframework"),
3030
.target(
31-
name: "LightningDevKitNode",
32-
dependencies: ["ldk_nodeFFI"]),
31+
name: "LDKNode",
32+
dependencies: ["LDKNodeFFI"]),
3333
// .testTarget(
3434
// name: "LightningDevKitNodeTests",
3535
// dependencies: ["LightningDevKitNode"]),

bindings/swift/ldk_nodeFFI.xcframework/ios-arm64/ldk_nodeFFI.framework/Modules/module.modulemap

Lines changed: 0 additions & 6 deletions
This file was deleted.

bindings/swift/ldk_nodeFFI.xcframework/ios-arm64_x86_64-simulator/ldk_nodeFFI.framework/Modules/module.modulemap

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)