diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef88631ab6..7cfeebdde2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -88,7 +88,42 @@ yarn react-native run-android yarn pod-install-production yarn react-native run-ios --mode=Release -yarn react-native run-android --mode=release +yarn react-native run-android --mode=Release +``` + +## Running the macOS sample + +Head to the macOS sample root directory: + +```sh +cd samples/react-native-macos/ +yarn +bundle install +yarn pod-install-legacy +``` + +You can now build and run the project from command line: +```sh +yarn react-native run-macos +``` + +or by openning the `samples/react-native-macos/macos/sentry-react-native-sample.xcworkspace`. + +_Note that the new architecture is not supported for the macOS sample at this point._ + +### Optional + +You can optionally start the Metro bundler if you want to control where it runs: + +```sh +yarn start --reset-cache +``` + +Run the emulators: + +```sh +yarn react-native run-ios +yarn react-native run-android ``` ## Develop with sentry-cocoa diff --git a/samples/react-native-macos/package.json b/samples/react-native-macos/package.json index 4bf42956b4..c140e9269e 100644 --- a/samples/react-native-macos/package.json +++ b/samples/react-native-macos/package.json @@ -7,8 +7,6 @@ "lint": "npx eslint . --ext .js,.jsx,.ts,.tsx", "fix": "npx eslint . --ext .js,.jsx,.ts,.tsx --fix", "type-check": "tsc --noEmit", - "pod-install": "cd macos; RCT_NEW_ARCH_ENABLED=1 bundle exec pod install; cd ..", - "pod-install-production": "cd macos; PRODUCTION=1 RCT_NEW_ARCH_ENABLED=1 bundle exec pod install; cd ..", "pod-install-legacy": "cd macos; bundle exec pod install; cd ..", "pod-install-legacy-production": "cd macos; PRODUCTION=1 bundle exec pod install; cd ..", "clean-macos": "cd macos; rm -rf Podfile.lock Pods build; cd ..",