Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
49 lines (48 loc) · 1.93 KB
/
Copy pathPackage.swift
File metadata and controls
49 lines (48 loc) · 1.93 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
// swift-tools-version: 6.0
import PackageDescription
// Swift Package Manager support for React Native's SwiftPM autolinking
// (react-native >= 0.87). CocoaPods users are unaffected; see the podspec.
// The two React Native packages are resolved by the autolinker relative to
// build/generated/autolinking/libs/ReactNativeSafeAreaContext in the app.
let package = Package(
name: "ReactNativeSafeAreaContext",
platforms: [.iOS(.v15)],
products: [
.library(name: "ReactNativeSafeAreaContext", targets: ["ReactNativeSafeAreaContext"]),
],
dependencies: [
.package(name: "ReactNative", path: "../../../../xcframeworks"),
.package(name: "React-GeneratedCode", path: "../../../ios"),
],
targets: [
.target(
name: "ReactNativeSafeAreaContext",
dependencies: [
.product(name: "ReactHeaders", package: "ReactNative"),
.product(name: "ReactNativeHeaders", package: "ReactNative"),
.product(name: "ReactNativeDependenciesHeaders", package: "ReactNative"),
.product(name: "ReactAppHeaders", package: "React-GeneratedCode"),
],
path: ".",
exclude: ["ios/RNSafeAreaContext.xcodeproj"],
sources: ["ios", "common/cpp"],
publicHeadersPath: "ios",
cSettings: [
.headerSearchPath("common/cpp"),
.headerSearchPath("ios"),
],
cxxSettings: [
.headerSearchPath("common/cpp"),
.headerSearchPath("ios"),
.define("DEBUG", .when(configuration: .debug)),
.define("NDEBUG", .when(configuration: .release)),
],
linkerSettings: [
.linkedFramework("UIKit"),
.linkedFramework("Foundation"),
.linkedFramework("CoreGraphics"),
]
),
],
cxxLanguageStandard: .cxx20
)