Skip to content

Commit d1cab78

Browse files
Revert code changes as it causes integrity check failure (#2730)
1 parent c55b66a commit d1cab78

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ private static String computeHash(InputStream dataStream) {
9898
}
9999

100100
public static void copyNecessaryFilesFromCurrentPackage(String diffManifestFilePath, String currentPackageFolderPath, String newPackageFolderPath) throws IOException {
101-
if (currentPackageFolderPath == null || !new File(currentPackageFolderPath).exists()) {
102-
CodePushUtils.log("Unable to copy files from current package during diff update, because currentPackageFolderPath is invalid.");
103-
return;
104-
}
101+
FileUtils.copyDirectoryContents(currentPackageFolderPath, newPackageFolderPath);
105102
JSONObject diffManifest = CodePushUtils.getJsonObjectFromFile(diffManifestFilePath);
106103
try {
107104
JSONArray deletedFiles = diffManifest.getJSONArray("deletedFiles");

0 commit comments

Comments
 (0)