Skip to content

Commit

Permalink
feat(react-native): move BugsnagReactNative from obj-c to obj-c++
Browse files Browse the repository at this point in the history
* bump RN 0.72 test fixture from 0.72.3 to 0.72.12

* feat: move BugsnagReactNative from obj-c to obj-c++
  • Loading branch information
yousif-bugsnag authored Apr 8, 2024
1 parent eea3950 commit d055400
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/BugsnagReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.author = { "Bugsnag" => "[email protected]" }
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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#ifdef RCT_NEW_ARCH_ENABLED
#import <BugsnagReactNativeSpec/BugsnagReactNativeSpec.h>

#import "BugsnagReactNativeEmitter.h"
#endif

@class BugsnagConfiguration;
Expand Down
5 changes: 4 additions & 1 deletion test/react-native/features/fixtures/rn0.72/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
6 changes: 3 additions & 3 deletions test/react-native/features/fixtures/rn0.72/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d055400

Please sign in to comment.