-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
29 lines (28 loc) · 1.05 KB
/
Copy pathPackage.swift
File metadata and controls
29 lines (28 loc) · 1.05 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
// swift-tools-version:5.9
import PackageDescription
/// Swift Package manifest for the iOS security engine.
///
/// This exists so the engine can be unit-tested with `swift test` on an ordinary
/// macOS machine — no simulator, no Xcode project, no jailbroken device. The
/// engine sources are deliberately Foundation-only and reach the platform through
/// injected probes, which is what makes that possible.
///
/// The real probe implementations live in `ios/Probes` and are **not** part of
/// this package: they use UIKit and iOS-specific syscalls. CocoaPods compiles
/// both directories into the shipped pod, so the engine and its probes end up in
/// one module there.
let package = Package(
name: "RNSecurityEngine",
platforms: [.macOS(.v13), .iOS(.v15)],
products: [
.library(name: "RNSecurityEngine", targets: ["RNSecurityEngine"])
],
targets: [
.target(name: "RNSecurityEngine", path: "ios/Engine"),
.testTarget(
name: "RNSecurityEngineTests",
dependencies: ["RNSecurityEngine"],
path: "ios/EngineTests"
),
]
)