Skip to content

Commit 7c16edf

Browse files
bruno-garciaHazATmarandanetodashedMimiDumpling
authored
hermes landing page (#1515)
* hermes landing page * Apply suggestions from code review Co-Authored-By: Manoel Aranda Neto <[email protected]> * Apply suggestions from code review Co-Authored-By: Alberto Leal <[email protected]> * Update src/collections/_documentation/clients/react-native/hermes.md Co-Authored-By: Daniel Griesser <[email protected]> * move to platforms * add snapshot * Update src/collections/_documentation/platforms/react-native/hermes.md Co-Authored-By: Tien "Mimi" Nguyen <[email protected]> * Update src/collections/_documentation/platforms/react-native/hermes.md Co-Authored-By: Tien "Mimi" Nguyen <[email protected]> * Update src/collections/_documentation/platforms/react-native/hermes.md Co-Authored-By: Arpad Borsos <[email protected]> * explain custom source maps in more detail Co-authored-by: Daniel Griesser <[email protected]> Co-authored-by: Manoel Aranda Neto <[email protected]> Co-authored-by: Alberto Leal <[email protected]> Co-authored-by: Tien "Mimi" Nguyen <[email protected]> Co-authored-by: Arpad Borsos <[email protected]>
1 parent 99df670 commit 7c16edf

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

__tests__/__snapshots__/documentation.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ Array [
374374
"platforms/react-native/cocoapods/index.html",
375375
"platforms/react-native/codepush/index.html",
376376
"platforms/react-native/expo/index.html",
377+
"platforms/react-native/hermes/index.html",
377378
"platforms/react-native/index.html",
378379
"platforms/react-native/manual-setup/index.html",
379380
"platforms/react-native/ram-bundles/index.html",
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: 'Hermes'
3+
---
4+
5+
Sentry added support for `react-native` builds that use the `hermes` engine, which required changes to the sentry SDK, `sentry-cli` as well as Sentry itself.
6+
7+
Sentry customers using the SaaS product (sentry.io) will need to update the SDK, and `sentry-cli`.
8+
The minimum required version for the SDK is `@sentry/react-native` [SDK version `1.3.3`](https://github.com/getsentry/sentry-react-native/releases/tag/1.3.3),
9+
and `@sentry/cli` [version `1.5.1`](https://github.com/getsentry/sentry-cli/releases/tag/1.51.1).
10+
11+
For Sentry open source, self-hosted users, the minimum version required is [f07352b](https://hub.docker.com/r/getsentry/sentry/tags?page=1&name=f07352b).
12+
13+
Other than making sure you have the minimum version of the SDK, Sentry itself is all you need besides the standard integration described in the [React Native Sentry documentation]({%- link _documentation/clients/react-native/index.md -%}).
14+
15+
## Custom SourceMaps
16+
17+
The combination of `@sentry/react-native` and `@sentry/cli` should integrate
18+
correctly into the `react-native` build pipeline to find and upload the correct source map.
19+
20+
However, care must be taken to upload the correct source map when manually bundling and building react-native apps.
21+
22+
Building Hermes bundles is a three-step process, each of which creates a different
23+
source map.
24+
25+
1. Bundling / minifying using `metro`: `index.android.bundle.packager.map`
26+
2. Compiling to bytecode using `hermes`: `index.android.bundle.compiler.map`
27+
3. Merging SourceMaps using `compose-source-maps`: `index.android.bundle.packager.map + index.android.bundle.compiler.map => index.android.bundle.map`
28+
29+
It is important to upload the third SourceMap (`index.android.bundle.map`)
30+
via `sentry-cli`.

src/collections/_documentation/platforms/react-native/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Since this SDK is unified, all function that are available for JavaScript are al
146146
- [Source Maps for Other Platforms]({%- link _documentation/platforms/react-native/sourcemaps.md -%})
147147
- [Setup With CocoaPods]({%- link _documentation/platforms/react-native/cocoapods.md -%})
148148
- [Using RAM Bundles]({%- link _documentation/platforms/react-native/ram-bundles.md -%})
149+
- [Hermes]({%- link _documentation/platforms/react-native/hermes.md -%})
149150
- [Manual Setup]({%- link _documentation/platforms/react-native/manual-setup.md -%})
150151
- [iOS]({%- link _documentation/platforms/react-native/manual-setup.md -%}#ios)
151152
- [Android]({%- link _documentation/platforms/react-native/manual-setup.md -%}#android)

0 commit comments

Comments
 (0)