diff --git a/packages/react-native/BugsnagReactNative.podspec b/packages/react-native/BugsnagReactNative.podspec index 13f16170e8..c8c660ab9b 100644 --- a/packages/react-native/BugsnagReactNative.podspec +++ b/packages/react-native/BugsnagReactNative.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.author = { "Bugsnag" => "platforms@bugsnag.com" } s.platform = :ios, "9.0" s.source = { :git => "https://github.com/bugsnag/bugsnag-js.git", :tag => "v#{s.version}" } - s.source_files = "ios/BugsnagReactNative/**/*.{h,m}", + 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' diff --git a/packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.h b/packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.h index 9f8195f449..e3c6a2930d 100644 --- a/packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.h +++ b/packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.h @@ -5,6 +5,8 @@ #ifdef RCT_NEW_ARCH_ENABLED #import + +#import "BugsnagReactNativeEmitter.h" #endif @class BugsnagConfiguration; diff --git a/packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.m b/packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.mm similarity index 100% rename from packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.m rename to packages/react-native/ios/BugsnagReactNative/BugsnagReactNative.mm diff --git a/test/react-native/features/fixtures/rn0.72/Gemfile b/test/react-native/features/fixtures/rn0.72/Gemfile index 1fa2c2e1ab..b550fb64d2 100644 --- a/test/react-native/features/fixtures/rn0.72/Gemfile +++ b/test/react-native/features/fixtures/rn0.72/Gemfile @@ -3,4 +3,7 @@ source 'https://rubygems.org' # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version ruby ">= 2.6.10" -gem 'cocoapods', '~> 1.12' +# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper +# bound in the template on Cocoapods with next React Native release. +gem 'cocoapods', '>= 1.13', '< 1.15' +gem 'activesupport', '>= 6.1.7.3', '< 7.1.0' diff --git a/test/react-native/features/fixtures/rn0.72/package.json b/test/react-native/features/fixtures/rn0.72/package.json index 76e12e3ac2..ba7e0655c0 100644 --- a/test/react-native/features/fixtures/rn0.72/package.json +++ b/test/react-native/features/fixtures/rn0.72/package.json @@ -11,21 +11,21 @@ }, "dependencies": { "react": "18.2.0", - "react-native": "0.72.3" + "react-native": "0.72.12" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/eslint-config": "^0.72.2", - "@react-native/metro-config": "^0.72.9", + "@react-native/metro-config": "^0.72.12", "@tsconfig/react-native": "^3.0.0", "@types/react": "^18.0.24", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0", "jest": "^29.2.1", - "metro-react-native-babel-preset": "0.76.7", + "metro-react-native-babel-preset": "^0.76.9", "prettier": "^2.4.1", "react-test-renderer": "18.2.0", "typescript": "4.8.4"