-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathPackage.swift
More file actions
34 lines (32 loc) · 1.03 KB
/
Copy pathPackage.swift
File metadata and controls
34 lines (32 loc) · 1.03 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
// swift-tools-version:5.10
import Foundation
import PackageDescription
private let useLocalRustXCFramework = true
let package = Package(
name: "ClearSigning",
platforms: [
.iOS(.v14)
],
products: [
.library(name: "ClearSigning", targets: ["ClearSigning"])
],
targets: [
useLocalRustXCFramework
? .binaryTarget(
name: "ClearSigningRust",
path: "target/ios/libclear_signing.xcframework"
)
: .binaryTarget(
name: "ClearSigningRust",
url: "https://github.com/llbartekll/clear-signing/releases/download/0.0.3/libclear_signing.xcframework.zip",
checksum: "110c9a60fee7b563a4644902508a28e246a2870f252369d8c3936b7c9ffe7031"
),
.target(
name: "ClearSigning",
dependencies: ["ClearSigningRust"],
path: "bindings/swift",
exclude: ["clearSigningFFI.h", "clearSigningFFI.modulemap"],
publicHeadersPath: "."
)
]
)