forked from spruceid/sprucekit-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
52 lines (50 loc) · 1.6 KB
/
Package.swift
File metadata and controls
52 lines (50 loc) · 1.6 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
44
45
46
47
48
49
50
51
52
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "SpruceIDMobileSdk",
platforms: [
.iOS(.v14)
],
products: [
.library(
name: "SpruceIDMobileSdk",
targets: ["SpruceIDMobileSdk"]
),
.library(
name: "SpruceIDMobileSdkRs",
targets: ["SpruceIDMobileSdkRs"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-algorithms", from: "1.2.0")
],
targets: [
.binaryTarget(name: "RustFramework", path: "rust/MobileSdkRs/RustFramework.xcframework"),
.target(
name: "SpruceIDMobileSdkRs",
dependencies: [
.target(name: "RustFramework")
],
path: "rust/MobileSdkRs/Sources/MobileSdkRs",
swiftSettings: [
//.swiftLanguageMode(.v5) // required until https://github.com/mozilla/uniffi-rs/issues/2448 is closed
]
),
.target(
name: "SpruceIDMobileSdk",
dependencies: [
.target(name: "SpruceIDMobileSdkRs"),
.product(name: "Algorithms", package: "swift-algorithms"),
],
path: "./ios/MobileSdk/Sources/MobileSdk",
swiftSettings: [
//.swiftLanguageMode(.v5) // some of our code isn't concurrent-safe (e.g. OID4VCI.swift)
]
),
.testTarget(
name: "SpruceIDMobileSdkTests",
dependencies: ["SpruceIDMobileSdk"],
path: "./ios/MobileSdk/Tests/MobileSdkTests"
),
]
)