From 9730697d946f85bcaf539a0b125047326266c111 Mon Sep 17 00:00:00 2001 From: Djordje Dimitrijev Date: Thu, 25 Jul 2024 10:14:05 +0200 Subject: [PATCH] Revert code changes as it causes integrity check failure --- .../com/microsoft/codepush/react/CodePushUpdateUtils.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java index 0ac75e800..700efac68 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePushUpdateUtils.java @@ -98,10 +98,7 @@ private static String computeHash(InputStream dataStream) { } public static void copyNecessaryFilesFromCurrentPackage(String diffManifestFilePath, String currentPackageFolderPath, String newPackageFolderPath) throws IOException { - if (currentPackageFolderPath == null || !new File(currentPackageFolderPath).exists()) { - CodePushUtils.log("Unable to copy files from current package during diff update, because currentPackageFolderPath is invalid."); - return; - } + FileUtils.copyDirectoryContents(currentPackageFolderPath, newPackageFolderPath); JSONObject diffManifest = CodePushUtils.getJsonObjectFromFile(diffManifestFilePath); try { JSONArray deletedFiles = diffManifest.getJSONArray("deletedFiles");