Skip to content

Commit

Permalink
fixbug: 当忽略assets中的全部资源时,防止忽略tinker添加测试资源. (Tencent#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
coofee authored and shwenzhang committed Dec 8, 2016
1 parent d2375ff commit 78f7deb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ public void onAllPatchesEnd() throws IOException, TinkerPatchException {
throw new TinkerPatchException("resource must contain AndroidManifest.xml pattern");
}

addAssetsFileForTestResource();

//check gradle build
if (config.mUsingGradle) {
final boolean ignoreWarning = config.mIgnoreWarning;
Expand Down Expand Up @@ -274,6 +272,9 @@ public void onAllPatchesEnd() throws IOException, TinkerPatchException {
removeIgnoreChangeFile(addedSet);
removeIgnoreChangeFile(largeModifiedSet);

// last add test res in assets for user cannot ignore it;
addAssetsFileForTestResource();

File tempResZip = new File(config.mOutFolder + File.separator + TEMP_RES_ZIP);
final File tempResFiles = config.mTempResultDir;

Expand Down

0 comments on commit 78f7deb

Please sign in to comment.