diff --git a/Package@swift-5.3.swift b/Package@swift-5.3.swift index 0c4bf4d24..5d5bac30d 100644 --- a/Package@swift-5.3.swift +++ b/Package@swift-5.3.swift @@ -12,6 +12,9 @@ pkg.products = [ let pmk: Target = .target(name: "PromiseKit") pmk.path = "Sources" +pmk.resources = [ + .process("Resources/PrivacyInfo.xcprivacy") +] pmk.exclude = [ "AnyPromise.swift", "AnyPromise.m", diff --git a/PromiseKit.podspec b/PromiseKit.podspec index f3b0d0895..a0c54aa20 100644 --- a/PromiseKit.podspec +++ b/PromiseKit.podspec @@ -34,6 +34,10 @@ Pod::Spec.new do |s| 'OTHER_SWIFT_FLAGS' => '-DPMKCocoaPods', } + s.resource_bundles = { + 'SwifterSwift_Privacy' => 'Sources/Resources/PrivacyInfo.xcprivacy' + } + s.subspec 'Accounts' do |ss| ss.ios.source_files = ss.osx.source_files = 'Extensions/Accounts/Sources/**/*' ss.exclude_files = 'Extensions/Accounts/Sources/*.plist' diff --git a/PromiseKit.xcodeproj/project.pbxproj b/PromiseKit.xcodeproj/project.pbxproj index ecb672bbb..3869f1499 100644 --- a/PromiseKit.xcodeproj/project.pbxproj +++ b/PromiseKit.xcodeproj/project.pbxproj @@ -231,6 +231,7 @@ 9E4170F8287D88C800A3B4B5 /* Async.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Async.swift; path = Sources/Async.swift; sourceTree = ""; }; 9E4170FA287D8DBD00A3B4B5 /* AsyncTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AsyncTests.swift; sourceTree = ""; }; 9E66231526FE5A8C00FA25CB /* RaceTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RaceTests.m; sourceTree = ""; }; + 9E8028F72BDCEDBC0081E2D1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 9EC774262991495C00803027 /* Combine.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Combine.swift; path = Sources/Combine.swift; sourceTree = ""; }; 9EC774282991497900803027 /* CombineTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CombineTests.swift; sourceTree = ""; }; C013F7372048E3B6006B57B1 /* MockNodeEnvironment.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MockNodeEnvironment.swift; path = "Tests/JS-A+/MockNodeEnvironment.swift"; sourceTree = ""; }; @@ -458,6 +459,7 @@ 63B18AEB1F2D205C00B79E37 /* CustomStringConvertible.swift */, 63D9B2F020338D5D0075C00B /* Deprecations.swift */, 085B96BE21A9B37C00E5E22F /* LogEvent.swift */, + 9E8028F82BDCEDBC0081E2D1 /* Resources */, ); name = Sources.swift; sourceTree = ""; @@ -497,6 +499,15 @@ name = Features; sourceTree = ""; }; + 9E8028F82BDCEDBC0081E2D1 /* Resources */ = { + isa = PBXGroup; + children = ( + 9E8028F72BDCEDBC0081E2D1 /* PrivacyInfo.xcprivacy */, + ); + name = Resources; + path = Sources/Resources; + sourceTree = ""; + }; C0244E6B2047ACAF00ACB4AC /* JS/A+ */ = { isa = PBXGroup; children = ( diff --git a/Sources/Resources/PrivacyInfo.xcprivacy b/Sources/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..cfbe279c7 --- /dev/null +++ b/Sources/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,8 @@ + + + + + NSPrivacyTracking + + +