forked from facebook/facebook-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
163 lines (142 loc) · 5.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
// @lint-ignore-every LICENSELINT
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
import PackageDescription
let package = Package(
name: "Facebook",
platforms: [
.iOS(.v10),
.tvOS(.v10)
],
products: [
// The Kernel of the SDK. Must be included as a runtime dependency.
.library(
name: "FacebookBasics",
targets: ["FBSDKCoreKit_Basics"]
),
/*
The Core SDK library that provides two importable modules:
- FacebookCore which includes the most current interface and
will contain interfaces for new features written in Swift
- FBSDKCoreKit which contains legacy Objective-C interfaces
that will be used to maintain backwards compatibility with
types that have been converted to Swift.
This will not contain interfaces for new features written in Swift.
*/
.library(
name: "FacebookCore",
targets: ["FacebookCore", "FBSDKCoreKit"]
),
// The Facebook Login SDK
.library(
name: "FacebookLogin",
targets: ["FacebookLogin"]
),
// The Facebook Share SDK
.library(
name: "FacebookShare",
targets: ["FBSDKShareKit", "FacebookShare"]
),
// The Facebook Gaming Services SDK
.library(
name: "FacebookGamingServices",
targets: ["FacebookGamingServices", "FBSDKGamingServicesKit"]
),
// The Facebook AEM Kit
.library(
name: "FacebookAEM",
targets: ["FBAEMKit", "FacebookAEM"]
)
],
targets: [
// The kernel of the SDK
.binaryTarget(
name: "FBSDKCoreKit_Basics",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FBSDKCoreKit_Basics-Static_XCFramework.zip",
checksum: "5b4a5eef74b849b18415275fe50d285e61a20afdf83cb40ab70ea3ac3a451ebf"
),
/*
The legacy Objective-C implementation that will be converted to Swift.
This will not contain interfaces for new features written in Swift.
*/
.binaryTarget(
name: "FBAEMKit",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FBAEMKit-Static_XCFramework.zip",
checksum: "9d973f21d19f2bebc4930740f9f037d887dac99b2e8ffb75a3293ddcd7132043"
),
// The main AEM module
.target(
name: "FacebookAEM",
dependencies: ["FBAEMKit"]
),
/*
The legacy Objective-C implementation that will be converted to Swift.
This will not contain interfaces for new features written in Swift.
*/
.binaryTarget(
name: "FBSDKCoreKit",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FBSDKCoreKit-Static_XCFramework.zip",
checksum: "fa00f5376ad989d75559da001aa94c1e4bc5115c4ac882d31a66600aad76e772"
),
// The main Core SDK module
.target(
name: "FacebookCore",
dependencies: ["FBAEMKit", "FBSDKCoreKit_Basics", "FBSDKCoreKit"],
linkerSettings: [
.linkedLibrary("c++"),
.linkedLibrary("z"),
.linkedFramework("Accelerate")
]
),
/*
The legacy Objective-C implementation that will be converted to Swift.
This will not contain interfaces for new features written in Swift.
*/
.binaryTarget(
name: "FBSDKLoginKit",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FBSDKLoginKit-Static_XCFramework.zip",
checksum: "27de971ebf8bac22066a27f44a442e6c082968cd3892658d95d7bc3bf50e3b74"
),
// The main Login SDK module
.target(
name: "FacebookLogin",
dependencies: ["FacebookCore", "FBSDKLoginKit"]
),
/*
The legacy Objective-C implementation that will be converted to Swift.
This will not contain interfaces for new features written in Swift.
*/
.binaryTarget(
name: "FBSDKShareKit",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FBSDKShareKit-Static_XCFramework.zip",
checksum: "9971023970ca2a2653e30cf88c0775b3f62c7f417debdf2d6c7cd370342fa638"
),
// The main Share SDK module
.target(
name: "FacebookShare",
dependencies: ["FacebookCore", "FBSDKShareKit"]
),
// The main Facebook Gaming Services module
.binaryTarget(
name: "FacebookGamingServices",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FacebookGamingServices-Static_XCFramework.zip",
checksum: "55587186f8e3e66ad90c872811c9905ac77723f31e3323775456ba7d7288defd"
),
/*
Wrappers for backwards compatibility ObjC interfaces.
*/
.binaryTarget(
name: "FBSDKGamingServicesKit",
url: "https://github.com/facebook/facebook-ios-sdk/releases/download/v12.0.2/FBSDKGamingServicesKit-Static_XCFramework.zip",
checksum: "9078d869c616e201a65c015ac271882829ac499609bde59e35c971159eeccb93"
),
],
cxxLanguageStandard: CXXLanguageStandard.cxx11
)