mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-18 16:30:40 +08:00
Compare commits
2 Commits
v5.11.0-be
...
v5.11.0-be
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7c8e75587b | ||
![]() |
84fee71df6 |
@@ -510,21 +510,20 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, long[], Void> {
|
||||
if (UpdateContext.DEBUG) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
File targetToClean = params[0].targetFile;
|
||||
switch (taskType) {
|
||||
case DownloadTaskParams.TASK_TYPE_PATCH_FULL:
|
||||
case DownloadTaskParams.TASK_TYPE_PATCH_FROM_APK:
|
||||
case DownloadTaskParams.TASK_TYPE_PATCH_FROM_PPK:
|
||||
try {
|
||||
removeDirectory(targetToClean);
|
||||
removeDirectory(params[0].unzipDirectory);
|
||||
} catch (IOException ioException) {
|
||||
ioException.printStackTrace();
|
||||
}
|
||||
break;
|
||||
case DownloadTaskParams.TASK_TYPE_PLAIN_DOWNLOAD:
|
||||
if (targetToClean.exists()) {
|
||||
targetToClean.delete();
|
||||
}
|
||||
// if (targetToClean.exists()) {
|
||||
params[0].targetFile.delete();
|
||||
// }
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "5.11.0-beta0",
|
||||
"version": "5.11.0-beta1",
|
||||
"description": "react-native hot update",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
|
Reference in New Issue
Block a user