From 9fea251a193a0ed03a1608c0ca6b29265a23c597 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Wed, 17 Apr 2024 11:36:39 +0200 Subject: [PATCH] RJS-2757: Add Apple Privacy Manifest (#6605) * Add Apple Privacy Manifest --- CHANGELOG.md | 1 + packages/realm/PrivacyInfo.xcprivacy | 23 +++++++++++++++++++++++ packages/realm/RealmJS.podspec | 1 + packages/realm/package.json | 5 +++-- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 packages/realm/PrivacyInfo.xcprivacy diff --git a/CHANGELOG.md b/CHANGELOG.md index ddd9b6daf1..c95ee3f5b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ > This version communicates with Atlas Device Services through a different URL (https://services.cloud.mongodb.com). While we consider this an internal detail of the SDK, you might need to update rules in firewalls or other configuration that you've used to limit connections made by your app. ### Enhancements +* Added [iOS Privacy Manifest](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files?language=objc). ([#6547](https://github.com/realm/realm-js/issues/6547) * Updated bundled OpenSSL version to 3.2.0. ([realm/realm-core#7303](https://github.com/realm/realm-core/pull/7303)) * Improved performance of object notifiers with complex schemas by ~20%. ([realm/realm-core#7424](https://github.com/realm/realm-core/pull/7424)) * Improved performance with very large number of notifiers by ~75%. ([realm/realm-core#7424](https://github.com/realm/realm-core/pull/7424)) diff --git a/packages/realm/PrivacyInfo.xcprivacy b/packages/realm/PrivacyInfo.xcprivacy new file mode 100644 index 0000000000..56c9b2f6e8 --- /dev/null +++ b/packages/realm/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + C617.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + + + NSPrivacyTracking + + + diff --git a/packages/realm/RealmJS.podspec b/packages/realm/RealmJS.podspec index c12bf2ba16..f0dbd38ee4 100644 --- a/packages/realm/RealmJS.podspec +++ b/packages/realm/RealmJS.podspec @@ -43,6 +43,7 @@ Pod::Spec.new do |s| s.source_files = 'react-native/ios/RealmReact/*.mm' s.public_header_files = 'react-native/ios/RealmReact/*.h' + s.resource_bundles = { 'RealmJS' => ['PrivacyInfo.xcprivacy'] } s.frameworks = uses_frameworks ? ['React'] : [] diff --git a/packages/realm/package.json b/packages/realm/package.json index 1afe27bcdd..bfab49021e 100644 --- a/packages/realm/package.json +++ b/packages/realm/package.json @@ -70,7 +70,8 @@ "scripts/submit-analytics.mjs", "react-native.config.js", "RealmJS.podspec", - "binding.gyp" + "binding.gyp", + "PrivacyInfo.xcprivacy" ], "scripts": { "test": "wireit", @@ -377,4 +378,4 @@ 6 ] } -} \ No newline at end of file +}