Skip to content

Commit 159f8e4

Browse files
author
tangyinsheng
committed
Merge branch 'dev_1_9_14_25_2' into dev
# Conflicts: # build.gradle
2 parents bcc4d8f + 3f90c4c commit 159f8e4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ext {
3636
javaVersion = JavaVersion.VERSION_1_8
3737

3838
GROUP = 'com.tencent.tinker'
39-
VERSION_NAME = '1.9.14.26-dev'
39+
VERSION_NAME = '1.9.14.25.2'
4040

4141
POM_DESCRIPTION = 'Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstalling apk.'
4242
POM_URL = 'https://github.com/Tencent/tinker'

tinker-android/tinker-android-loader/src/main/java/com/tencent/tinker/loader/TinkerLoader.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
9292

9393
//tinker/patch.info
9494
File patchInfoFile = SharePatchFileUtil.getPatchInfoFile(patchDirectoryPath);
95-
9695
//check patch info file whether exist
9796
if (!patchInfoFile.exists()) {
9897
ShareTinkerLog.w(TAG, "tryLoadPatchFiles:patch info not exist:" + patchInfoFile.getAbsolutePath());
@@ -102,7 +101,6 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
102101
//old = 641e634c5b8f1649c75caf73794acbdf
103102
//new = 2c150d8560334966952678930ba67fa8
104103
File patchInfoLockFile = SharePatchFileUtil.getPatchInfoLockFile(patchDirectoryPath);
105-
106104
patchInfo = SharePatchInfo.readAndCheckPropertyWithLock(patchInfoFile, patchInfoLockFile);
107105
if (patchInfo == null) {
108106
ShareIntentUtil.setIntentReturnCode(resultIntent, ShareConstants.ERROR_LOAD_PATCH_INFO_CORRUPTED);
@@ -173,7 +171,7 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
173171

174172
String patchVersionDirFullPath = patchDirectoryPath + "/" + patchName;
175173
ShareTinkerInternals.killProcessExceptMain(app);
176-
SharePatchFileUtil.deleteDir(patchVersionDirFullPath);
174+
SharePatchFileUtil.deleteDirAsync(patchVersionDirFullPath);
177175
}
178176
} else {
179177
patchInfo.versionToRemove = "";
@@ -244,7 +242,6 @@ private void tryLoadPatchFilesInternal(TinkerApplication app, Intent resultInten
244242
}
245243

246244
ShareSecurityCheck securityCheck = new ShareSecurityCheck(app);
247-
248245
int returnCode = ShareTinkerInternals.checkTinkerPackage(app, tinkerFlag, patchVersionFile, securityCheck);
249246
if (returnCode != ShareConstants.ERROR_PACKAGE_CHECK_OK) {
250247
ShareTinkerLog.w(TAG, "tryLoadPatchFiles:checkTinkerPackage");

0 commit comments

Comments
 (0)