Skip to content

Commit

Permalink
Fix #1332 (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov authored May 11, 2024
1 parent a3b4668 commit 4c31ef1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions PromiseKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
11 changes: 11 additions & 0 deletions PromiseKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
9E4170F8287D88C800A3B4B5 /* Async.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Async.swift; path = Sources/Async.swift; sourceTree = "<group>"; };
9E4170FA287D8DBD00A3B4B5 /* AsyncTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AsyncTests.swift; sourceTree = "<group>"; };
9E66231526FE5A8C00FA25CB /* RaceTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RaceTests.m; sourceTree = "<group>"; };
9E8028F72BDCEDBC0081E2D1 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
9EC774262991495C00803027 /* Combine.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Combine.swift; path = Sources/Combine.swift; sourceTree = "<group>"; };
9EC774282991497900803027 /* CombineTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CombineTests.swift; sourceTree = "<group>"; };
C013F7372048E3B6006B57B1 /* MockNodeEnvironment.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MockNodeEnvironment.swift; path = "Tests/JS-A+/MockNodeEnvironment.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -458,6 +459,7 @@
63B18AEB1F2D205C00B79E37 /* CustomStringConvertible.swift */,
63D9B2F020338D5D0075C00B /* Deprecations.swift */,
085B96BE21A9B37C00E5E22F /* LogEvent.swift */,
9E8028F82BDCEDBC0081E2D1 /* Resources */,
);
name = Sources.swift;
sourceTree = "<group>";
Expand Down Expand Up @@ -497,6 +499,15 @@
name = Features;
sourceTree = "<group>";
};
9E8028F82BDCEDBC0081E2D1 /* Resources */ = {
isa = PBXGroup;
children = (
9E8028F72BDCEDBC0081E2D1 /* PrivacyInfo.xcprivacy */,
);
name = Resources;
path = Sources/Resources;
sourceTree = "<group>";
};
C0244E6B2047ACAF00ACB4AC /* JS/A+ */ = {
isa = PBXGroup;
children = (
Expand Down
8 changes: 8 additions & 0 deletions Sources/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>

0 comments on commit 4c31ef1

Please sign in to comment.