From 393da0fd6785cf338013504f2aa7143aa44d421a Mon Sep 17 00:00:00 2001 From: dp221125 Date: Fri, 15 Mar 2024 11:37:54 +0900 Subject: [PATCH 1/2] Add PrivacyInfo.xcprivacy --- Package.swift | 3 ++- TrustKit.podspec | 1 + TrustKit/Framework/PrivacyInfo.xcprivacy | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 TrustKit/Framework/PrivacyInfo.xcprivacy diff --git a/Package.swift b/Package.swift index 79260778..77c18526 100644 --- a/Package.swift +++ b/Package.swift @@ -31,7 +31,8 @@ let package = Package( .target( name: "TrustKit", dependencies: [], - path: "TrustKit", + path: "TrustKit", + resources: [.process("framework/PrivacyInfo.xcprivacy")], publicHeadersPath: "public", cSettings: [.define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release))] ), diff --git a/TrustKit.podspec b/TrustKit.podspec index 6f75dffb..a96dc8b0 100644 --- a/TrustKit.podspec +++ b/TrustKit.podspec @@ -25,4 +25,5 @@ Pod::Spec.new do |s| ] s.frameworks = ['Foundation', 'Security'] s.requires_arc = true + s.resource_bundles = {'TrustKit' => ['TrustKit/Framework/PrivacyInfo.xcprivacy']} end diff --git a/TrustKit/Framework/PrivacyInfo.xcprivacy b/TrustKit/Framework/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..79bc9e28 --- /dev/null +++ b/TrustKit/Framework/PrivacyInfo.xcprivacy @@ -0,0 +1,17 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + From c85ade9ebe4636a22ad2664449a06591dc6055cc Mon Sep 17 00:00:00 2001 From: dp221125 Date: Mon, 18 Mar 2024 09:53:11 +0900 Subject: [PATCH 2/2] add NSPrivacyTracking --- TrustKit/Framework/PrivacyInfo.xcprivacy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TrustKit/Framework/PrivacyInfo.xcprivacy b/TrustKit/Framework/PrivacyInfo.xcprivacy index 79bc9e28..c4ad7a3d 100644 --- a/TrustKit/Framework/PrivacyInfo.xcprivacy +++ b/TrustKit/Framework/PrivacyInfo.xcprivacy @@ -2,6 +2,10 @@ + NSPrivacyTracking + + NSPrivacyTrackingDomains + NSPrivacyAccessedAPITypes