From be101d52da8cd9c0515d2f063b876ae5a39f557e Mon Sep 17 00:00:00 2001 From: Sergio Durban Date: Tue, 19 Mar 2024 11:14:54 +0100 Subject: [PATCH] SPM/Cocoapods support for privacy manifest --- Amplitude.podspec | 8 ++++---- Package.swift | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Amplitude.podspec b/Amplitude.podspec index 08c6f6d8..ee495220 100644 --- a/Amplitude.podspec +++ b/Amplitude.podspec @@ -15,19 +15,19 @@ Pod::Spec.new do |s| s.ios.deployment_target = '10.0' s.ios.source_files = 'Sources/Amplitude/**/*.{h,m}' - s.ios.resources = 'Sources/Resources/*.{der}' + s.ios.resources = 'Sources/Resources/*.{der}', 'Sources/PrivacyInfo.xcprivacy' s.tvos.deployment_target = '9.0' s.tvos.source_files = 'Sources/Amplitude/**/*.{h,m}' - s.tvos.resources = 'Sources/Resources/*.{der}' + s.tvos.resources = 'Sources/Resources/*.{der}', 'Sources/PrivacyInfo.xcprivacy' s.osx.deployment_target = '10.10' s.osx.source_files = 'Sources/Amplitude/**/*.{h,m}' - s.osx.resources = 'Sources/Resources/*.{der}' + s.osx.resources = 'Sources/Resources/*.{der}', 'Sources/PrivacyInfo.xcprivacy' s.watchos.deployment_target = '3.0' s.watchos.source_files = 'Sources/Amplitude/**/*.{h,m}' - s.watchos.resources = 'Sources/Resources/*.{der}' + s.watchos.resources = 'Sources/Resources/*.{der}', 'Sources/PrivacyInfo.xcprivacy' s.dependency 'AnalyticsConnector', '~> 1.0.0' diff --git a/Package.swift b/Package.swift index 0a3cfee4..27f5c730 100644 --- a/Package.swift +++ b/Package.swift @@ -26,6 +26,7 @@ let package = Package( path: "Sources", resources: [ .process("Resources"), + .copy("PrivacyInfo.xcprivacy") ], publicHeadersPath: "Amplitude/Public"), ]