Skip to content

Commit 1a9b366

Browse files
authored
Merge pull request #119 from kenobilyh/231209privManiFest
Add PrivacyInfo.xcprivacy setting for cocoapods and spm
2 parents b07a2f5 + 10b3ad8 commit 1a9b366

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
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

AppDevKit.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
004703751C951D9300AFDBF0 /* AutoLayoutSupportTestView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AutoLayoutSupportTestView.xib; sourceTree = "<group>"; };
261261
005BF0C71DA104A4007119BD /* ViewTestUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewTestUtil.h; sourceTree = "<group>"; };
262262
005BF0C81DA104A4007119BD /* ViewTestUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewTestUtil.m; sourceTree = "<group>"; };
263+
0061C3D62B24B22800F56B31 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
263264
007D0F911C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewAutoLayoutCombineViewController.h; sourceTree = "<group>"; };
264265
007D0F921C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewAutoLayoutCombineViewController.m; sourceTree = "<group>"; };
265266
007D0F931C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ViewAutoLayoutCombineViewController.xib; sourceTree = "<group>"; };
@@ -280,7 +281,7 @@
280281
00C074DB1CA662A2004AF305 /* MovieDescCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MovieDescCell.h; sourceTree = "<group>"; };
281282
00C074DC1CA662A2004AF305 /* MovieDescCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MovieDescCell.m; sourceTree = "<group>"; };
282283
00C074DD1CA662A2004AF305 /* MovieDescCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MovieDescCell.xib; sourceTree = "<group>"; };
283-
00D0D58D27B1243800146C28 /* AppDevKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = AppDevKit; sourceTree = "<group>"; };
284+
00D0D58D27B1243800146C28 /* AppDevKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = AppDevKit; sourceTree = "<group>"; };
284285
00F3337A1B12C9B80004164C /* ControllerTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ControllerTestUtils.h; sourceTree = "<group>"; };
285286
00F3337B1B12C9B80004164C /* ControllerTestUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ControllerTestUtils.m; sourceTree = "<group>"; };
286287
00F3337C1B12C9B80004164C /* ImageTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageTestUtils.h; sourceTree = "<group>"; };
@@ -506,6 +507,7 @@
506507
001D98F41C17F3EA0097623E /* AppDevImageKit */,
507508
001D98FD1C17F3EA0097623E /* AppDevListViewKit */,
508509
3C2D70AC1E557DF000667727 /* AppDevCameraKit */,
510+
0061C3D62B24B22800F56B31 /* PrivacyInfo.xcprivacy */,
509511
);
510512
name = AppDevKitPods;
511513
path = AppDevPods;

AppDevPods/PrivacyInfo.xcprivacy

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTracking</key>
6+
<false/>
7+
<key>NSPrivacyTrackingDomains</key>
8+
<array/>
9+
<key>NSPrivacyCollectedDataTypes</key>
10+
<array/>
11+
<key>NSPrivacyAccessedAPITypes</key>
12+
<array/>
13+
</dict>
14+
</plist>

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)