From 2392de5f3140183bef4f858e3195335141f098bf Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Tue, 4 Jun 2024 11:56:30 +0100 Subject: [PATCH] chore: :heavy_plus_sign: add resource_bundles podspec entry bring podspec inline with bugsnag-cocoa by adding the resource_bundles entry to include the privacy manifest resource --- CHANGELOG.md | 4 ++++ packages/react-native/BugsnagReactNative.podspec | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 650e6b619f..53fdb29ff9 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 c8c660ab9b..011c006fc1 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"