diff --git a/Package.swift b/Package.swift index b5d63d5d..f6c7aeeb 100644 --- a/Package.swift +++ b/Package.swift @@ -18,12 +18,14 @@ let package = Package( targets: [ .target( name: "SwiftyDropbox", - path: "Source/SwiftyDropbox" + path: "Source/SwiftyDropbox", + resources: [.process("PrivacyInfo.xcprivacy")] ), .target( name: "SwiftyDropboxObjC", dependencies: ["SwiftyDropbox"], - path: "Source/SwiftyDropboxObjC" + path: "Source/SwiftyDropboxObjC", + resources: [.process("PrivacyInfo.xcprivacy")] ), .testTarget( name: "SwiftyDropboxUnitTests", diff --git a/Source/SwiftyDropbox/PrivacyInfo.xcprivacy b/Source/SwiftyDropbox/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1ba4cb28 --- /dev/null +++ b/Source/SwiftyDropbox/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/Source/SwiftyDropboxObjC/PrivacyInfo.xcprivacy b/Source/SwiftyDropboxObjC/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1ba4cb28 --- /dev/null +++ b/Source/SwiftyDropboxObjC/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/SwiftyDropbox.podspec b/SwiftyDropbox.podspec index 0a4c0426..588fbe1d 100644 --- a/SwiftyDropbox.podspec +++ b/SwiftyDropbox.podspec @@ -11,6 +11,10 @@ Pod::Spec.new do |s| s.osx.source_files = 'Source/SwiftyDropbox/Platform/SwiftyDropbox_macOS/**/*.{swift,h,m}' s.ios.source_files = 'Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/**/*.{swift,h,m}' + s.resource_bundles = { + 'SwiftyDropboxPrivacyInfo' => ['Source/SwiftyDropbox/PrivacyInfo.xcprivacy'], + } + s.requires_arc = true s.swift_version = '5.6' diff --git a/SwiftyDropboxObjC.podspec b/SwiftyDropboxObjC.podspec index 84c49f26..77c4f74a 100644 --- a/SwiftyDropboxObjC.podspec +++ b/SwiftyDropboxObjC.podspec @@ -11,6 +11,10 @@ Pod::Spec.new do |s| s.osx.source_files = 'Source/SwiftyDropboxObjC/Platform/SwiftyDropbox_macOS/**/*.{swift,h,m}' s.ios.source_files = 'Source/SwiftyDropboxObjC/Platform/SwiftyDropbox_iOS/**/*.{swift,h,m}' + s.resource_bundles = { + 'SwiftyDropboxObjCPrivacyInfo' => ['Source/SwiftyDropboxObjC/PrivacyInfo.xcprivacy'], + } + s.requires_arc = true s.swift_version = '5.6'