Skip to content

Commit da582a4

Browse files
committed
Move and update Package.swift
1 parent 484ee69 commit da582a4

File tree

2 files changed

+35
-37
lines changed

2 files changed

+35
-37
lines changed

Package.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
)

bindings/swift/Package.swift

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

0 commit comments

Comments
 (0)