-
Notifications
You must be signed in to change notification settings - Fork 114
Get binding generation & publishing ready for 0.1 release #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tnull
merged 11 commits into
lightningdevkit:main
from
tnull:2023-05-get-bindings-release-ready
Jun 21, 2023
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9e7ab1b
Remove commented-out code
tnull adc409b
Update package metadata
tnull c45c3a3
Drop `Node::onchain_balance` from public API
tnull 4188725
Rename `new_funding_address` to `new_onchain_address`
tnull 3253ecc
Check documentation building in CI
tnull c8c4448
Document and enforce MSRV in CI
tnull d3e909a
Make Kotlin tests more robust
tnull c99f4bd
Rename Swift modules to `LDKNode`/`LDKNodeFFI`
tnull 70c01cc
Update Package.swift and prepare desc for SwiftPM
tnull d95bb5b
Add scripts to create Swift xcframework archive and update Package.swift
tnull 7de04b7
Avoid nightly for binding generation where possible
tnull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.