Skip to content

Commit

Permalink
docs: change codepush command (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzeyu authored and HazAT committed May 23, 2018
1 parent f2d120f commit 60cf325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/codepush.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ If you want to use sentry together with CodePush you have to send us the CodePus

.. sourcecode:: javascript

import CodePush from "react-native-code-push";
import codePush from "react-native-code-push";

CodePush.getUpdateMetadata().then((update) => {
codePush.getUpdateMetadata().then((update) => {
if (update) {
Sentry.setVersion(update.appVersion + '-codepush:' + update.label);
}
Expand All @@ -20,7 +20,7 @@ Make sure that you call this function otherwise Sentry is not able to symbolicat

After updating your CodePush release you have to upload the new assets to Sentry::

$ code-push release-react YourApp ios --outputDir build
$ appcenter codepush release-react YourApp ios --outputDir build
$ export SENTRY_PROPERTIES=./ios/sentry.properties
$ sentry-cli react-native codepush YourApp ios ./build

Expand Down

0 comments on commit 60cf325

Please sign in to comment.