Skip to content

Commit ba1a28b

Browse files
authored
add privacy manifest (#209)
* add privacy manifest * add privacy manifest to package files * fix privacyinfo pathing * move privacy info to top level
1 parent 67b3290 commit ba1a28b

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ let package = Package(
2323
],
2424
sources: [
2525
"SplunkRum",
26+
],
27+
resources: [
28+
.copy("PrivacyInfo.xcprivacy")
2629
]
2730
)
2831
]

PrivacyInfo.xcprivacy

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>NSPrivacyCollectedDataTypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyCollectedDataType</key>
9+
<string>NSPrivacyCollectedDataTypePerformanceData</string>
10+
<key>NSPrivacyCollectedDataTypeLinked</key>
11+
<false/>
12+
<key>NSPrivacyCollectedDataTypeTracking</key>
13+
<false/>
14+
<key>NSPrivacyCollectedDataTypePurposes</key>
15+
<array>
16+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
17+
</array>
18+
</dict>
19+
</array>
20+
</dict>
21+
</plist>

SplunkOtel.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ DESC
3131
# Make sure the deployment target matches with Package.swift
3232
s.ios.deployment_target = '11.0'
3333
s.source_files = 'SplunkRumWorkspace/SplunkRum/SplunkRum/**/*.swift'
34-
end
34+
s.resource_bundles = {'SplunkRum' => ['PrivacyInfo.xcprivacy']}
35+
end

SplunkRumWorkspace/SplunkRum/SplunkRum.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -139,6 +139,7 @@
139139
E2AFDA052847C529000F53BF /* SpanFromDiskExporterTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2AFDA042847C529000F53BF /* SpanFromDiskExporterTest.swift */; };
140140
E2AFDA072847C678000F53BF /* DiskExportCommon.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2AFDA062847C678000F53BF /* DiskExportCommon.swift */; };
141141
E2AFDA092847DAC8000F53BF /* DiskExportPipelineTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2AFDA082847DAC8000F53BF /* DiskExportPipelineTest.swift */; };
142+
E2E93B8A2BDFD23B007D1EEC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = E2E93B892BDFD23B007D1EEC /* PrivacyInfo.xcprivacy */; };
142143
/* End PBXBuildFile section */
143144

144145
/* Begin PBXContainerItemProxy section */
@@ -305,6 +306,7 @@
305306
E2AFDA042847C529000F53BF /* SpanFromDiskExporterTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpanFromDiskExporterTest.swift; sourceTree = "<group>"; };
306307
E2AFDA062847C678000F53BF /* DiskExportCommon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiskExportCommon.swift; sourceTree = "<group>"; };
307308
E2AFDA082847DAC8000F53BF /* DiskExportPipelineTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiskExportPipelineTest.swift; sourceTree = "<group>"; };
309+
E2E93B892BDFD23B007D1EEC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = ../../PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
308310
/* End PBXFileReference section */
309311

310312
/* Begin PBXFrameworksBuildPhase section */
@@ -340,6 +342,7 @@
340342
86260EBA25CDC1DE009F3CB1 = {
341343
isa = PBXGroup;
342344
children = (
345+
E2E93B892BDFD23B007D1EEC /* PrivacyInfo.xcprivacy */,
343346
86260EC625CDC1DE009F3CB1 /* SplunkRum */,
344347
86260ED125CDC1DE009F3CB1 /* SplunkRumTests */,
345348
E2AFD9F128473F7A000F53BF /* SplunkRumDiskExportTests */,
@@ -851,6 +854,7 @@
851854
isa = PBXResourcesBuildPhase;
852855
buildActionMask = 2147483647;
853856
files = (
857+
E2E93B8A2BDFD23B007D1EEC /* PrivacyInfo.xcprivacy in Resources */,
854858
);
855859
runOnlyForDeploymentPostprocessing = 0;
856860
};

0 commit comments

Comments
 (0)