From 91b37e190dc5c1d350ff97e0d715e083fd6955ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81da=CC=81m=20Gazda?= Date: Mon, 29 Apr 2024 20:30:48 +0200 Subject: [PATCH 1/3] Add PrivacyInfo.xcprivacy to podspec --- PINCache.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/PINCache.podspec b/PINCache.podspec index a8f95f39..f8afb20a 100644 --- a/PINCache.podspec +++ b/PINCache.podspec @@ -5,6 +5,7 @@ Pod::Spec.new do |s| s.summary = 'Fast, thread safe, parallel object cache for iOS and OS X.' s.authors = { 'Garrett Moon' => 'garrett@pinterest.com', 'Justin Ouellette' => 'jstn@tumblr.com' } s.source = { :git => 'https://github.com/pinterest/PINCache.git', :tag => "#{s.version}" } + s.resource_bundles = {'PINCache' => ['PrivacyInfo.xcprivacy']} s.license = { :type => 'Apache 2.0', :file => 'LICENSE.txt' } s.requires_arc = true s.frameworks = 'Foundation' From 0c63fef0a9cb40be6c388b98a0569954559fb863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81da=CC=81m=20Gazda?= Date: Mon, 29 Apr 2024 23:30:04 +0200 Subject: [PATCH 2/3] move resource bundle into subscpecs --- PINCache.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PINCache.podspec b/PINCache.podspec index f8afb20a..bb13a080 100644 --- a/PINCache.podspec +++ b/PINCache.podspec @@ -5,7 +5,6 @@ Pod::Spec.new do |s| s.summary = 'Fast, thread safe, parallel object cache for iOS and OS X.' s.authors = { 'Garrett Moon' => 'garrett@pinterest.com', 'Justin Ouellette' => 'jstn@tumblr.com' } s.source = { :git => 'https://github.com/pinterest/PINCache.git', :tag => "#{s.version}" } - s.resource_bundles = {'PINCache' => ['PrivacyInfo.xcprivacy']} s.license = { :type => 'Apache 2.0', :file => 'LICENSE.txt' } s.requires_arc = true s.frameworks = 'Foundation' @@ -23,11 +22,13 @@ EOS s.prefix_header_contents = pch_PIN s.subspec 'Core' do |sp| sp.source_files = 'Source/*.{h,m}' + sp.resource_bundles = {'PINCache' => ['PrivacyInfo.xcprivacy']} sp.dependency 'PINOperation', '~> 1.2.1' end s.subspec 'Arc-exception-safe' do |sp| sp.dependency 'PINCache/Core' sp.source_files = 'Source/PINDiskCache.m' + sp.resource_bundles = {'PINCache' => ['PrivacyInfo.xcprivacy']} sp.compiler_flags = '-fobjc-arc-exceptions' end end From dd9cce024862910e6802c0a517d61cb071a39628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81da=CC=81m=20Gazda?= Date: Tue, 30 Apr 2024 00:18:02 +0200 Subject: [PATCH 3/3] remove privacyinfo from arc-exc-safe subspec --- PINCache.podspec | 1 - 1 file changed, 1 deletion(-) diff --git a/PINCache.podspec b/PINCache.podspec index bb13a080..4effd0e3 100644 --- a/PINCache.podspec +++ b/PINCache.podspec @@ -28,7 +28,6 @@ EOS s.subspec 'Arc-exception-safe' do |sp| sp.dependency 'PINCache/Core' sp.source_files = 'Source/PINDiskCache.m' - sp.resource_bundles = {'PINCache' => ['PrivacyInfo.xcprivacy']} sp.compiler_flags = '-fobjc-arc-exceptions' end end