forked from hyperledger/anoncreds-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
39 lines (38 loc) · 1.2 KB
/
Package.swift
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
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "AnoncredsSwift",
platforms: [
.iOS(.v13),
.macOS(.v12)
],
products: [
.library(
name: "AnoncredsSwift",
type: .dynamic,
targets: ["AnoncredsSwift"]
),
],
targets: [
.target(
name: "AnoncredsSwift",
dependencies: ["anoncreds_wrapperFFI"],
path: "uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift"
),
.target(
name: "anoncreds_wrapperFFI",
dependencies: ["libanoncreds"],
path: "uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/C"),
// LOCAL
// .binaryTarget(
// name: "libanoncreds",
// path: "./uniffi/output-frameworks/anoncreds-swift/libanoncreds.xcframework.zip"
// )
// RELEASE
.binaryTarget(
name: "libanoncreds",
url: "https://github.com/input-output-hk/anoncreds-rs/releases/download/0.4.1/libanoncreds.xcframework.zip",
checksum: "85a67c56a4c6480975c631c122091381c3bfe74d3b3102f77da2cb0d71841873"
)
]
)