Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PrivacyInfo.xcprivacy setting for cocoapods and spm #119

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AppDevKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ Pod::Spec.new do |s|
s.source_files = "AppDevPods/AppDevKit.h"
s.public_header_files = "AppDevPods/AppDevKit.h"
s.requires_arc = true
s.resource_bundles = {'AppDevKit' => ['PrivacyInfo.xcprivacy']}

end
4 changes: 3 additions & 1 deletion AppDevKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@
004703751C951D9300AFDBF0 /* AutoLayoutSupportTestView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AutoLayoutSupportTestView.xib; sourceTree = "<group>"; };
005BF0C71DA104A4007119BD /* ViewTestUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewTestUtil.h; sourceTree = "<group>"; };
005BF0C81DA104A4007119BD /* ViewTestUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewTestUtil.m; sourceTree = "<group>"; };
0061C3D62B24B22800F56B31 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
007D0F911C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewAutoLayoutCombineViewController.h; sourceTree = "<group>"; };
007D0F921C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewAutoLayoutCombineViewController.m; sourceTree = "<group>"; };
007D0F931C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ViewAutoLayoutCombineViewController.xib; sourceTree = "<group>"; };
Expand All @@ -280,7 +281,7 @@
00C074DB1CA662A2004AF305 /* MovieDescCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MovieDescCell.h; sourceTree = "<group>"; };
00C074DC1CA662A2004AF305 /* MovieDescCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MovieDescCell.m; sourceTree = "<group>"; };
00C074DD1CA662A2004AF305 /* MovieDescCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MovieDescCell.xib; sourceTree = "<group>"; };
00D0D58D27B1243800146C28 /* AppDevKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = AppDevKit; sourceTree = "<group>"; };
00D0D58D27B1243800146C28 /* AppDevKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = AppDevKit; sourceTree = "<group>"; };
00F3337A1B12C9B80004164C /* ControllerTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ControllerTestUtils.h; sourceTree = "<group>"; };
00F3337B1B12C9B80004164C /* ControllerTestUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ControllerTestUtils.m; sourceTree = "<group>"; };
00F3337C1B12C9B80004164C /* ImageTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageTestUtils.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -506,6 +507,7 @@
001D98F41C17F3EA0097623E /* AppDevImageKit */,
001D98FD1C17F3EA0097623E /* AppDevListViewKit */,
3C2D70AC1E557DF000667727 /* AppDevCameraKit */,
0061C3D62B24B22800F56B31 /* PrivacyInfo.xcprivacy */,
);
name = AppDevKitPods;
path = AppDevPods;
Expand Down
14 changes: 14 additions & 0 deletions AppDevPods/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
</dict>
</plist>
13 changes: 11 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,32 @@ let package = Package(
.target(
name: "AppDevKit",
dependencies: ["AppDevCommonKit", "AppDevUIKit", "AppDevAnimateKit", "AppDevImageKit", "AppDevListViewKit", "AppDevCameraKit"],
path: "AppDevPods/All"
path: "AppDevPods/All",
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.target(
name: "AppDevCommonKit",
path: "AppDevPods/AppDevCommonKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: "AppDevUIKit",
path: "AppDevPods/AppDevUIKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: "AppDevAnimateKit",
path: "AppDevPods/AppDevAnimateKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: "AppDevImageKit",
dependencies: ["AppDevCommonKit"],
path: "AppDevPods/AppDevImageKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../")
Expand All @@ -73,6 +78,7 @@ let package = Package(
name: "AppDevListViewKit",
dependencies: ["AppDevUIKit", "AppDevCommonKit"],
path: "AppDevPods/AppDevListViewKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../")
Expand All @@ -81,12 +87,15 @@ let package = Package(
.target(
name: "AppDevCameraKit",
path: "AppDevPods/AppDevCameraKit",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.testTarget(
name: "AppDevKitTests",
dependencies: ["AppDevKit"],
path: "AppDevKitTests")
path: "AppDevKitTests",
resources: [.copy("PrivacyInfo.xcprivacy")]
)
]
)