-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
43 lines (41 loc) · 1.51 KB
/
Package.swift
File metadata and controls
43 lines (41 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "LNI",
platforms: [
.iOS(.v14),
.macOS(.v12)
],
products: [
.library(
name: "LNI",
targets: ["LNI", "lniFFI"]
),
],
targets: [
// Swift bindings generated by UniFFI
.target(
name: "LNI",
dependencies: ["lniFFI"],
path: "bindings/swift/Sources/LNI"
),
// Binary XCFramework containing the native library
//
// NOTE: The checksum below is a placeholder. When creating a new release:
// 1. Build the XCFramework: ./bindings/swift/build.sh --release --ios
// 2. Rename to lniFFI.xcframework
// 3. Create zip: zip -r lniFFI.xcframework.zip lniFFI.xcframework
// 4. Calculate checksum: swift package compute-checksum lniFFI.xcframework.zip
// 5. Upload the zip to the GitHub release
// 6. Update the URL version and checksum below
//
// For local development, replace this with:
// .binaryTarget(name: "lniFFI", path: "bindings/swift/lniFFI.xcframework")
.binaryTarget(
name: "lniFFI",
url: "https://github.com/lightning-node-interface/lni/releases/download/v0.2.0/lniFFI.xcframework.zip",
checksum: "cac08ee1e25a888df8952d530c4a798850cd84537aef394435f12c2d2f0890a3"
)
]
)