Skip to content

Commit 5dbb6cc

Browse files
committed
[Update] Add PrivacyInfo.xcprivacy
1 parent 02d2276 commit 5dbb6cc

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ let package = Package(
2222
targets: [
2323
.target(
2424
name: "APIWrapper",
25-
path: "Sources/Core"),
25+
path: "Sources/Core",
26+
resources: [.copy("PrivacyInfo.xcprivacy")]),
2627
.target(
2728
name: "AFAPIWrapper",
2829
dependencies: ["APIWrapper", "Alamofire"],

RaAPIWrapper.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Pod::Spec.new do |s|
3434

3535
s.subspec "Core" do |cs|
3636
cs.source_files = 'Sources/Core/**/*'
37+
38+
cs.resource_bundles = { 'RaAPIWrapper' => ['Sources/Core/PrivacyInfo.xcprivacy'] }
3739
end
3840

3941
s.subspec "AF" do |cs|

Sources/Core/PrivacyInfo.xcprivacy

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
</array>
8+
<key>NSPrivacyTracking</key>
9+
<false/>
10+
<key>NSPrivacyTrackingDomains</key>
11+
<array>
12+
</array>
13+
<key>NSPrivacyCollectedDataTypes</key>
14+
<array>
15+
</array>
16+
</dict>
17+
</plist>

0 commit comments

Comments
 (0)