Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions samples/react-native-macos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..",
Expand Down