From 3d635afa55bbc33b4f9ccf78ccdd816b96a724be Mon Sep 17 00:00:00 2001 From: Jeff Lin Date: Tue, 2 Jan 2024 00:30:18 +0800 Subject: [PATCH 1/2] Add PrivacyInfo.xcprivacy --- AppDevKit.xcodeproj/project.pbxproj | 4 +++- AppDevPods/PrivacyInfo.xcprivacy | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 AppDevPods/PrivacyInfo.xcprivacy diff --git a/AppDevKit.xcodeproj/project.pbxproj b/AppDevKit.xcodeproj/project.pbxproj index 5aba73b..4c565af 100644 --- a/AppDevKit.xcodeproj/project.pbxproj +++ b/AppDevKit.xcodeproj/project.pbxproj @@ -260,6 +260,7 @@ 004703751C951D9300AFDBF0 /* AutoLayoutSupportTestView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AutoLayoutSupportTestView.xib; sourceTree = ""; }; 005BF0C71DA104A4007119BD /* ViewTestUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewTestUtil.h; sourceTree = ""; }; 005BF0C81DA104A4007119BD /* ViewTestUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewTestUtil.m; sourceTree = ""; }; + 0061C3D62B24B22800F56B31 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 007D0F911C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewAutoLayoutCombineViewController.h; sourceTree = ""; }; 007D0F921C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewAutoLayoutCombineViewController.m; sourceTree = ""; }; 007D0F931C101B51002FD0B1 /* ViewAutoLayoutCombineViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ViewAutoLayoutCombineViewController.xib; sourceTree = ""; }; @@ -280,7 +281,7 @@ 00C074DB1CA662A2004AF305 /* MovieDescCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MovieDescCell.h; sourceTree = ""; }; 00C074DC1CA662A2004AF305 /* MovieDescCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MovieDescCell.m; sourceTree = ""; }; 00C074DD1CA662A2004AF305 /* MovieDescCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MovieDescCell.xib; sourceTree = ""; }; - 00D0D58D27B1243800146C28 /* AppDevKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = AppDevKit; sourceTree = ""; }; + 00D0D58D27B1243800146C28 /* AppDevKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = AppDevKit; sourceTree = ""; }; 00F3337A1B12C9B80004164C /* ControllerTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ControllerTestUtils.h; sourceTree = ""; }; 00F3337B1B12C9B80004164C /* ControllerTestUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ControllerTestUtils.m; sourceTree = ""; }; 00F3337C1B12C9B80004164C /* ImageTestUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageTestUtils.h; sourceTree = ""; }; @@ -506,6 +507,7 @@ 001D98F41C17F3EA0097623E /* AppDevImageKit */, 001D98FD1C17F3EA0097623E /* AppDevListViewKit */, 3C2D70AC1E557DF000667727 /* AppDevCameraKit */, + 0061C3D62B24B22800F56B31 /* PrivacyInfo.xcprivacy */, ); name = AppDevKitPods; path = AppDevPods; diff --git a/AppDevPods/PrivacyInfo.xcprivacy b/AppDevPods/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..e08a130 --- /dev/null +++ b/AppDevPods/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + From 10b3ad88117ef00eb698c1496d2ed43348830f84 Mon Sep 17 00:00:00 2001 From: Jeff Lin Date: Sun, 10 Dec 2023 11:42:05 +0800 Subject: [PATCH 2/2] add PrivacyInfo.xcprivacy setting for cocoapods and spm --- AppDevKit.podspec | 1 + Package.swift | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/AppDevKit.podspec b/AppDevKit.podspec index bf11404..6965b9b 100644 --- a/AppDevKit.podspec +++ b/AppDevKit.podspec @@ -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 diff --git a/Package.swift b/Package.swift index 6fd8041..d1d3b41 100644 --- a/Package.swift +++ b/Package.swift @@ -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("../") @@ -73,6 +78,7 @@ let package = Package( name: "AppDevListViewKit", dependencies: ["AppDevUIKit", "AppDevCommonKit"], path: "AppDevPods/AppDevListViewKit", + resources: [.copy("PrivacyInfo.xcprivacy")], publicHeadersPath: ".", cSettings: [ .headerSearchPath("../") @@ -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")] + ) ] )