-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
43 lines (40 loc) · 1.13 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
40
41
42
43
// swift-tools-version:6.0
import PackageDescription
extension Product.Library.LibraryType {
static var smart: Self {
#if os(Linux)
return .static
#else
return .dynamic
#endif
}
}
let package = Package(
name: "SwiftyMobileDevice",
platforms: [
.iOS("14.0"),
.macOS("11.0"),
],
products: [
.library(
name: "SwiftyMobileDevice",
type: .smart,
targets: ["SwiftyMobileDevice"]
),
],
dependencies: [
.package(url: "https://github.com/SuperchargeApp/SuperchargeCore", .upToNextMinor(from: "1.2.0")),
],
targets: [
.target(
name: "SwiftyMobileDevice",
dependencies: [
.product(name: "plist", package: "SuperchargeCore"),
.product(name: "libimobiledeviceGlue", package: "SuperchargeCore"),
.product(name: "usbmuxd", package: "SuperchargeCore"),
.product(name: "libimobiledevice", package: "SuperchargeCore"),
.product(name: "Superutils", package: "SuperchargeCore")
]
),
]
)