Skip to content

Commit

Permalink
Fixed issue when React native app on Android fails to restart after a…
Browse files Browse the repository at this point in the history
…n update, crashing

See #910 for details
  • Loading branch information
max-mironov committed Jul 4, 2017
1 parent 8265686 commit d44d03a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CodePush.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ async function checkForUpdate(deploymentKey = null) {
queryPackage = localPackage;
} else {
queryPackage = { appVersion: config.appVersion };
if (config.packageHash) {
queryPackage.packageHash = config.packageHash;
if (Platform.OS === "ios" && config.packageHash) {
queryPackage.packageHash = config.packageHash;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-code-push",
"version": "1000.0.0-beta",
"version": "2.1.1-beta",
"description": "React Native plugin for the CodePush service",
"main": "CodePush.js",
"typings": "typings/react-native-code-push.d.ts",
Expand Down

0 comments on commit d44d03a

Please sign in to comment.