Skip to content

Commit

Permalink
RUM-3291 Add Crash Reporting privacy manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed Mar 13, 2024
1 parent 6e5f79f commit 2847390
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Datadog/Datadog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,8 @@
D2A7841229A53B2F003B03BB /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61133BAC2423979B00786299 /* File.swift */; };
D2A7A8FF2BA1C24A00F46845 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D2A7A8FE2BA1C24A00F46845 /* PrivacyInfo.xcprivacy */; };
D2A7A9002BA1C24A00F46845 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D2A7A8FE2BA1C24A00F46845 /* PrivacyInfo.xcprivacy */; };
D2A7A9022BA1C4B100F46845 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D2A7A9012BA1C4B100F46845 /* PrivacyInfo.xcprivacy */; };
D2A7A9032BA1C4B100F46845 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = D2A7A9012BA1C4B100F46845 /* PrivacyInfo.xcprivacy */; };
D2B249942A4598FE00DD4F9F /* LoggerProtocol+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2B249932A4598FE00DD4F9F /* LoggerProtocol+Internal.swift */; };
D2B249952A4598FE00DD4F9F /* LoggerProtocol+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2B249932A4598FE00DD4F9F /* LoggerProtocol+Internal.swift */; };
D2B249972A45E10500DD4F9F /* LoggerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2B249962A45E10500DD4F9F /* LoggerTests.swift */; };
Expand Down Expand Up @@ -2660,6 +2662,7 @@
D2A7840129A534F9003B03BB /* DatadogLogsTests tvOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DatadogLogsTests tvOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
D2A7840229A536AD003B03BB /* PrintFunctionMock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrintFunctionMock.swift; sourceTree = "<group>"; };
D2A7A8FE2BA1C24A00F46845 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = ../Resources/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
D2A7A9012BA1C4B100F46845 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = ../Resources/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
D2B249932A4598FE00DD4F9F /* LoggerProtocol+Internal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "LoggerProtocol+Internal.swift"; sourceTree = "<group>"; };
D2B249962A45E10500DD4F9F /* LoggerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoggerTests.swift; sourceTree = "<group>"; };
D2B3F0432823EE8300C2B5EE /* DataBlockTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataBlockTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -4428,6 +4431,7 @@
6170DC1325C1864B003AED5C /* DatadogCrashReporting */ = {
isa = PBXGroup;
children = (
D2A7A9012BA1C4B100F46845 /* PrivacyInfo.xcprivacy */,
6161247825CA9CA6009901BE /* CrashReporting.swift */,
61DE333525C8278A008E3EC2 /* CrashReportingPlugin.swift */,
D293302B2A137DAD0029C9EA /* CrashReportingFeature.swift */,
Expand Down Expand Up @@ -7001,6 +7005,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D2A7A9022BA1C4B100F46845 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -7152,6 +7157,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D2A7A9032BA1C4B100F46845 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
4 changes: 4 additions & 0 deletions DatadogCrashReporting.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ Pod::Spec.new do |s|
s.source_files = "DatadogCrashReporting/Sources/**/*.swift"
s.dependency 'DatadogInternal', s.version.to_s
s.dependency 'PLCrashReporter', '~> 1.11.1'

s.resource_bundle = {
"DatadogPrivacyInfo" => "DatadogCrashReporting/Resources/PrivacyInfo.xcprivacy"
}
end
21 changes: 21 additions & 0 deletions DatadogCrashReporting/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCrashData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
4 changes: 4 additions & 0 deletions DatadogSDKCrashReporting.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ Pod::Spec.new do |s|
s.source_files = "DatadogCrashReporting/Sources/**/*.swift"
s.dependency 'DatadogInternal', s.version.to_s
s.dependency 'PLCrashReporter', '~> 1.11.1'

s.resource_bundle = {
"DatadogPrivacyInfo" => "DatadogCrashReporting/Resources/PrivacyInfo.xcprivacy"
}
end
6 changes: 5 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ let package = Package(
.target(name: "DatadogInternal"),
.product(name: "CrashReporter", package: "PLCrashReporter"),
],
path: "DatadogCrashReporting/Sources"
path: "DatadogCrashReporting",
sources: ["Sources"],
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
]
),
.testTarget(
name: "DatadogCrashReportingTests",
Expand Down

0 comments on commit 2847390

Please sign in to comment.