From d689504d5b9292e9262a072bdeaf9789cb2ae04a Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Sat, 19 Dec 2015 17:31:09 -0800 Subject: [PATCH 1/2] Fix bug with diff updates causing failed rollbacks Fixes https://github.com/Microsoft/react-native-code-push/issues/119 --- CodePushPackage.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodePushPackage.m b/CodePushPackage.m index 4cb98dc..aaa2b28 100644 --- a/CodePushPackage.m +++ b/CodePushPackage.m @@ -434,7 +434,7 @@ NSString * const UnzippedFolderName = @"unzipped"; } } - [[NSFileManager defaultManager] moveItemAtPath:fullFilePath toPath:destFileName error:error]; + [[NSFileManager defaultManager] copyItemAtPath:fullFilePath toPath:destFileName error:error]; if (*error) { return; } @@ -513,4 +513,4 @@ NSString * const UnzippedFolderName = @"unzipped"; } } -@end \ No newline at end of file +@end From 0d709ac31a25c31a5d3cc4d156bf743aaab340bd Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Sat, 19 Dec 2015 17:32:15 -0800 Subject: [PATCH 2/2] Bump version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a4c7477..a937e37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-code-push", - "version": "1.5.1-beta", + "version": "1.5.2-beta", "description": "React Native plugin for the CodePush service", "main": "CodePush.js", "homepage": "https://microsoft.github.io/code-push", @@ -22,4 +22,4 @@ "devDependencies": { "react-native": "0.15.0" } -} \ No newline at end of file +}