Skip to content

Commit 10b3ad8

Browse files
author
Jeff Lin
committed
add PrivacyInfo.xcprivacy setting for cocoapods and spm
1 parent 3d635af commit 10b3ad8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

AppDevKit.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ Pod::Spec.new do |s|
4848
s.source_files = "AppDevPods/AppDevKit.h"
4949
s.public_header_files = "AppDevPods/AppDevKit.h"
5050
s.requires_arc = true
51+
s.resource_bundles = {'AppDevKit' => ['PrivacyInfo.xcprivacy']}
5152

5253
end

Package.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,32 @@ let package = Package(
4343
.target(
4444
name: "AppDevKit",
4545
dependencies: ["AppDevCommonKit", "AppDevUIKit", "AppDevAnimateKit", "AppDevImageKit", "AppDevListViewKit", "AppDevCameraKit"],
46-
path: "AppDevPods/All"
46+
path: "AppDevPods/All",
47+
resources: [.copy("PrivacyInfo.xcprivacy")]
4748
),
4849
.target(
4950
name: "AppDevCommonKit",
5051
path: "AppDevPods/AppDevCommonKit",
52+
resources: [.copy("PrivacyInfo.xcprivacy")],
5153
publicHeadersPath: "."
5254
),
5355
.target(
5456
name: "AppDevUIKit",
5557
path: "AppDevPods/AppDevUIKit",
58+
resources: [.copy("PrivacyInfo.xcprivacy")],
5659
publicHeadersPath: "."
5760
),
5861
.target(
5962
name: "AppDevAnimateKit",
6063
path: "AppDevPods/AppDevAnimateKit",
64+
resources: [.copy("PrivacyInfo.xcprivacy")],
6165
publicHeadersPath: "."
6266
),
6367
.target(
6468
name: "AppDevImageKit",
6569
dependencies: ["AppDevCommonKit"],
6670
path: "AppDevPods/AppDevImageKit",
71+
resources: [.copy("PrivacyInfo.xcprivacy")],
6772
publicHeadersPath: ".",
6873
cSettings: [
6974
.headerSearchPath("../")
@@ -73,6 +78,7 @@ let package = Package(
7378
name: "AppDevListViewKit",
7479
dependencies: ["AppDevUIKit", "AppDevCommonKit"],
7580
path: "AppDevPods/AppDevListViewKit",
81+
resources: [.copy("PrivacyInfo.xcprivacy")],
7682
publicHeadersPath: ".",
7783
cSettings: [
7884
.headerSearchPath("../")
@@ -81,12 +87,15 @@ let package = Package(
8187
.target(
8288
name: "AppDevCameraKit",
8389
path: "AppDevPods/AppDevCameraKit",
90+
resources: [.copy("PrivacyInfo.xcprivacy")],
8491
publicHeadersPath: "."
8592
),
8693
.testTarget(
8794
name: "AppDevKitTests",
8895
dependencies: ["AppDevKit"],
89-
path: "AppDevKitTests")
96+
path: "AppDevKitTests",
97+
resources: [.copy("PrivacyInfo.xcprivacy")]
98+
)
9099
]
91100
)
92101

0 commit comments

Comments
 (0)