diff --git a/CHANGELOG.md b/CHANGELOG.md index 650e6b619..53fdb29ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- (react-native) Add privacy manifest resource bundle to podspec [#2149](https://github.com/bugsnag/bugsnag-js/pull/2149) + ### Changed - (plugin-react) Modified the polynomial regular expression to remove the ambiguity [#2135](https://github.com/bugsnag/bugsnag-js/pull/2135) diff --git a/packages/react-native/BugsnagReactNative.podspec b/packages/react-native/BugsnagReactNative.podspec index c8c660ab9..011c006fc 100644 --- a/packages/react-native/BugsnagReactNative.podspec +++ b/packages/react-native/BugsnagReactNative.podspec @@ -16,10 +16,13 @@ Pod::Spec.new do |s| s.source_files = "ios/BugsnagReactNative/**/*.{h,mm,m}", "ios/vendor/bugsnag-cocoa/**/*.{h,mm,m,cpp,c}", s.public_header_files = "ios/vendor/bugsnag-cocoa/{#{bugsnag_cocoa_public_header_files.join(',')}}" - s.header_dir = 'Bugsnag' + s.header_dir = "Bugsnag" s.requires_arc = true + s.resource_bundles = { + "Bugsnag" => ["ios/vendor/bugsnag-cocoa/Bugsnag/resources/PrivacyInfo.xcprivacy"], + } - if ENV['RCT_NEW_ARCH_ENABLED'] == "1" + if ENV["RCT_NEW_ARCH_ENABLED"] == "1" install_modules_dependencies(s) else s.dependency "React-Core"