-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
53 lines (50 loc) · 1.59 KB
/
Package.swift
File metadata and controls
53 lines (50 loc) · 1.59 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
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "JPush",
platforms: [
.iOS(.v8)
],
products: [
.library(
name: "JPush",
targets: ["JPushWrapper"]
),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Wrapper target 用于链接系统框架和库
.target(
name: "JPushWrapper",
dependencies: [
"JPush"
],
path: "JPushWrapper",
linkerSettings: [
// System Frameworks
.linkedFramework("UIKit"),
.linkedFramework("CFNetwork"),
.linkedFramework("CoreFoundation"),
.linkedFramework("CoreTelephony"),
.linkedFramework("SystemConfiguration"),
.linkedFramework("CoreGraphics"),
.linkedFramework("Foundation"),
.linkedFramework("Security"),
.linkedFramework("WebKit"),
.linkedFramework("UserNotifications", .when(platforms: [.iOS])),
// System Libraries
.linkedLibrary("z"),
.linkedLibrary("resolv"),
]
),
// 二进制 xcframework 目标
.binaryTarget(
name: "JPush",
path: "jpush-ios-6.1.0.xcframework"
)
]
)