From 18439fb31d3aa948e59fc4b8059e11d8b8cb608d Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Mon, 22 Apr 2024 19:24:49 -0300 Subject: [PATCH] Added Privacy Manifest to `RollbarNotifier` (#344) --- CHANGELOG.md | 4 + Package.swift | 3 +- Rollbar.podspec | 1 + RollbarNotifier.podspec | 1 + RollbarNotifier/Package.swift | 3 +- .../RollbarNotifier/PrivacyInfo.xcprivacy | 94 +++++++++++++++++++ 6 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 RollbarNotifier/Sources/RollbarNotifier/PrivacyInfo.xcprivacy diff --git a/CHANGELOG.md b/CHANGELOG.md index 47554959..76e846b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Release Notes +### 3.3.0 + +- Added Privacy Manifest to fulfill the new SDK privacy requirements from Apple. + ### 3.2.1 - Fixed extra data not being correctly set in the outgoing payload when sending custom Swift errors. diff --git a/Package.swift b/Package.swift index 96886569..f7372c97 100644 --- a/Package.swift +++ b/Package.swift @@ -52,7 +52,8 @@ let package = Package( "RollbarCrash", "RollbarReport" ], - path: "RollbarNotifier/Sources/RollbarNotifier" + path: "RollbarNotifier/Sources/RollbarNotifier", + resources: [.copy("PrivacyInfo.xcprivacy")] ), .target( name: "RollbarDeploys", diff --git a/Rollbar.podspec b/Rollbar.podspec index 93969d05..faa49295 100644 --- a/Rollbar.podspec +++ b/Rollbar.podspec @@ -45,6 +45,7 @@ Pod::Spec.new do |s| s.public_header_files = "RollbarNotifier/Sources/RollbarCrash/include/*.h", "RollbarNotifier/Sources/RollbarNotifier/include/*.h" + s.resource_bundles = { "RollbarNotifier" => "RollbarNotifier/Sources/RollbarNotifier/PrivacyInfo.xcprivacy" } s.module_map = "RollbarNotifier/Sources/RollbarCrash/include/module.modulemap", "RollbarNotifier/Sources/RollbarNotifier/include/module.modulemap" diff --git a/RollbarNotifier.podspec b/RollbarNotifier.podspec index f000874f..677b86c9 100644 --- a/RollbarNotifier.podspec +++ b/RollbarNotifier.podspec @@ -25,6 +25,7 @@ Pod::Spec.new do |s| s.module_name = "RollbarNotifier" s.source_files = "#{s.name}/Sources/#{s.name}/**/*.{h,m}" s.public_header_files = "#{s.name}/Sources/#{s.name}/include/*.h" + s.resource_bundles = { "RollbarNotifier" => "RollbarNotifier/Sources/RollbarNotifier/PrivacyInfo.xcprivacy" } s.module_map = "#{s.name}/Sources/#{s.name}/include/module.modulemap" s.framework = "Foundation" diff --git a/RollbarNotifier/Package.swift b/RollbarNotifier/Package.swift index 52b9eb43..6c07b8ce 100644 --- a/RollbarNotifier/Package.swift +++ b/RollbarNotifier/Package.swift @@ -52,7 +52,8 @@ let package = Package( "RollbarCrash", "RollbarReport" ], - path: "Sources/RollbarNotifier" + path: "Sources/RollbarNotifier", + resources: [.copy("PrivacyInfo.xcprivacy")] ), .testTarget( name: "RollbarReportTests", diff --git a/RollbarNotifier/Sources/RollbarNotifier/PrivacyInfo.xcprivacy b/RollbarNotifier/Sources/RollbarNotifier/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..e3a60113 --- /dev/null +++ b/RollbarNotifier/Sources/RollbarNotifier/PrivacyInfo.xcprivacy @@ -0,0 +1,94 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeDeviceID + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeCrashData + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePerformanceData + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeOtherDiagnosticData + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + 7D9E.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + +