# expo-postpublish-rollbar

> Upload sourcemaps to rollbar in your expo powered react native app.

Latest version **0.6.0** (published 2019-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-postpublish-rollbar
pnpm add expo-postpublish-rollbar
yarn add expo-postpublish-rollbar
bun add expo-postpublish-rollbar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2019-07-09 |
| First published | 2019-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Karl Berggren |
| Maintainers | jjabba |
| Keywords | rollbar, react-native, sourcemaps |

## Links

- npm: https://www.npmjs.com/package/expo-postpublish-rollbar
- Repository: https://github.com/jjabba/expo-postpublish-rollbar
- Homepage: https://github.com/jjabba/expo-postpublish-rollbar#readme
- Issues: https://github.com/jjabba/expo-postpublish-rollbar/issues
- npm.io page: https://npm.io/package/expo-postpublish-rollbar

## Dependencies (3)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.3
- [request](https://npm.io/package/request.md) ^2.88.0

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 0.6.0 (latest) — 2019-07-09
- 0.5.1 — 2019-04-18
- 0.5.0 — 2019-04-18

## README

# expo-postpublish-rollbar

This project allows you to upload sourcemaps to rollbar as your expo powered react native app is beining published.
It closely maps to how expo deals with delivering sourcemaps to their preferred error reporting service sentry.

## Installation

1. `yarn add expo-postpublish-rollbar` in your project.
2. Add the following to your `app.json` within the "expo" key.

```javascript
  "hooks": {
    "postPublish": [
      {
        "file": "expo-postpublish-rollbar",
        "config": {
          "serverItemAccessToken": "YOUR_ROLLBAR_TOKEN",
          "minifiedUrlTemplate": "http://reactnativehost/{{url}}"
        }
      }
    ]
  }
```

3. Note that the minifiedUrlTemplate option is optional. If used, it allows you to customize the `minified_url` parameter passed to rollbar on upload.

## Reporting errors
This project does not deal with the actual integraion of rollbar reporting. But in order for the sourcemaps to work effectively it's important that you use the same `version` string when reporting errors as the one generated and used by this postPublish upload hook:

The currently used format for ios and android is:

     # iOS
     ['ios', iosManifest.ios.bundleIdentifier, iosManifest.ios.buildNumber].join('-')

     # Android
     ['android', androidManifest.android.package, androidManifest.android.versionCode].join('-')

---
_Source: https://npm.io/package/expo-postpublish-rollbar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
