-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from tnull/2023-05-get-bindings-release-ready
Get binding generation & publishing ready for 0.1 release
- Loading branch information
Showing
29 changed files
with
316 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// swift-tools-version:5.5 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let tag = "0.1-alpha.1" | ||
let checksum = "d91403566498f01cdaaafc07a9360ef661151e64075c6d83bbce4c9b5bfa7cee" | ||
let url = "https://github.com/lightningdevkit/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip" | ||
|
||
let package = Package( | ||
name: "ldk-node", | ||
platforms: [ | ||
.iOS(.v15), | ||
.macOS(.v12), | ||
], | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "LDKNode", | ||
targets: ["LDKNodeFFI", "LDKNode"]), | ||
], | ||
targets: [ | ||
.target( | ||
name: "LDKNode", | ||
dependencies: ["LDKNodeFFI"], | ||
path: "./bindings/swift/Sources", | ||
swiftSettings: [.unsafeFlags(["-suppress-warnings"])] | ||
), | ||
.binaryTarget( | ||
name: "LDKNodeFFI", | ||
url: url, | ||
checksum: checksum | ||
) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ afterEvaluate { | |
pom { | ||
name.set("ldk-node-android") | ||
description.set( | ||
"LDK Node, a ready-to-go node implementation built using LDK." | ||
"LDK Node, a ready-to-go Lightning node library built using LDK and BDK." | ||
) | ||
url.set("https://lightningdevkit.org") | ||
licenses { | ||
|
@@ -85,12 +85,7 @@ afterEvaluate { | |
developer { | ||
id.set("tnull") | ||
name.set("Elias Rohrer") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("jurvis") | ||
name.set("Jurvis Tan") | ||
email.set("[email protected]") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
|
@@ -111,23 +106,3 @@ signing { | |
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign(publishing.publications) | ||
} | ||
|
||
//tasks.named<Test>("test") { | ||
// // Use JUnit Platform for unit tests. | ||
// useJUnitPlatform() | ||
// | ||
// testLogging { | ||
// events(PASSED, SKIPPED, FAILED, STANDARD_OUT, STANDARD_ERROR) | ||
// exceptionFormat = FULL | ||
// showExceptions = true | ||
// showCauses = true | ||
// showStackTraces = true | ||
// showStandardStreams = true | ||
// } | ||
//} | ||
|
||
//// This task dependency ensures that we build the bindings | ||
//// binaries before running the tests | ||
//tasks.withType<KotlinCompile> { | ||
// dependsOn("buildAndroidLib") | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ afterEvaluate { | |
pom { | ||
name.set("ldk-node-jvm") | ||
description.set( | ||
"LDK Node, a ready-to-go node implementation built using LDK." | ||
"LDK Node, a ready-to-go Lightning node library built using LDK and BDK." | ||
) | ||
url.set("https://lightningdevkit.org") | ||
licenses { | ||
|
@@ -80,15 +80,12 @@ afterEvaluate { | |
} | ||
} | ||
developers { | ||
developer { | ||
id.set("tnull") | ||
name.set("Elias Rohrer") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("jurvis") | ||
name.set("Jurvis Tan") | ||
email.set("[email protected]") | ||
developers { | ||
developer { | ||
id.set("tnull") | ||
name.set("Elias Rohrer") | ||
email.set("[email protected]") | ||
} | ||
} | ||
} | ||
scm { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....framework/Headers/ldk_nodeFFI-umbrella.h → ...I.framework/Headers/LDKNodeFFI-umbrella.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This is the "umbrella header" for our combined Rust code library. | ||
// It needs to import all of the individual headers. | ||
|
||
#import "ldk_nodeFFI.h" | ||
#import "LDKNodeFFI.h" |
6 changes: 6 additions & 0 deletions
6
...ings/swift/LDKNodeFFI.xcframework/ios-arm64/LDKNodeFFI.framework/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module LDKNodeFFI { | ||
umbrella header "LDKNodeFFI-umbrella.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
Oops, something went wrong.