diff --git a/CHANGELOG.md b/CHANGELOG.md index fa8bc1803..f6c55f1a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ }) { ... } ``` (Issue [#292](https://github.com/realm/realm-dart/issues/292)) +* Add privacy manifest to apple binaries. (Issue [#1551](https://github.com/realm/realm-dart/issues/1551)) ### Fixed * Avoid: Attempt to execute code removed by Dart AOT compiler (TFA). (Issue [#1647](https://github.com/realm/realm-dart/issues/1647)) diff --git a/packages/realm/ios/Resources/PrivacyInfo.xcprivacy b/packages/realm/ios/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..2e4e91574 --- /dev/null +++ b/packages/realm/ios/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,31 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + C617.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + + + NSPrivacyAccessedAPITypeReasons + + E174.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + + + NSPrivacyTracking + + + diff --git a/packages/realm/ios/realm.podspec b/packages/realm/ios/realm.podspec index 089ef0a99..7c99d966b 100644 --- a/packages/realm/ios/realm.podspec +++ b/packages/realm/ios/realm.podspec @@ -33,7 +33,7 @@ Pod::Spec.new do |s| s.vendored_frameworks = 'realm_dart.xcframework' s.dependency 'Flutter' s.platform = :ios, '8.0' - s.compiler_flags = "-DBUNDLE_ID='\"#{bundleId}\"'" + s.compiler_flags = "-DBUNDLE_ID='\"#{bundleId}\"'" s.library = 'c++', 'z', 'compression' s.swift_version = '5.0' @@ -63,4 +63,5 @@ Pod::Spec.new do |s| :execution_position => :before_compile } ] + s.resource_bundles = { 'realm_privacy' => [ 'Resources/PrivacyInfo.xcprivacy' ] } end \ No newline at end of file diff --git a/packages/realm/macos/Resources/PrivacyInfo.xcprivacy b/packages/realm/macos/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 000000000..2e4e91574 --- /dev/null +++ b/packages/realm/macos/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,31 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + C617.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + + + NSPrivacyAccessedAPITypeReasons + + E174.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + + + NSPrivacyTracking + + + diff --git a/packages/realm/macos/realm.podspec b/packages/realm/macos/realm.podspec index a25b2c3e3..d27fe72f0 100644 --- a/packages/realm/macos/realm.podspec +++ b/packages/realm/macos/realm.podspec @@ -45,12 +45,12 @@ Pod::Spec.new do |s| s.license = { :file => '../LICENSE' } s.author = { 'Realm' => 'help@realm.io' } s.source = { :path => '.' } - s.source_files = 'Classes/**/*' + s.source_files = 'Classes/**/*' s.dependency 'FlutterMacOS' s.platform = :osx, '10.11' - s.compiler_flags = "-DBUNDLE_ID='\"#{bundleId}\"'" - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } + s.compiler_flags = "-DBUNDLE_ID='\"#{bundleId}\"'" + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.swift_version = '5.0' s.vendored_libraries = "#{realmLibName}" s.prepare_command = "touch #{realmPackageDir}/librealm_dart.dylib" #librealm_dart.dylib is needed before the build is started @@ -65,4 +65,5 @@ Pod::Spec.new do |s| :execution_position => :before_compile } ] + s.resource_bundles = { 'realm_privacy' => [ 'Resources/PrivacyInfo.xcprivacy' ] } end