File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
lib_bcu_plugin/src/main/java/com/ysj/lib/bytecodeutil/plugin Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,6 @@ abstract class AppendTask : DefaultTask() {
5050 logger.quiet(" >>> BCU append output ---> $outputDir " )
5151 logger.quiet(" >>> BCU append isIncremental ---> ${inputChanges.isIncremental} " )
5252 val startTime = System .currentTimeMillis()
53- // delete: "build/intermediates/project_dex_archive" can fix generate dex increment error
54- val projectDexArchive = File (File (project.buildDir, " intermediates" ), " project_dex_archive" )
55- if (! inputChanges.isIncremental) {
56- projectDexArchive.deleteRecursively()
57- outputDir
58- .walkBottomUp()
59- .filterNot { it.name.endsWith(" .jar" ) }
60- .forEach { it.delete() }
61- }
6253 val removedCount = Ref .IntRef ()
6354 val removedGroup = ArrayList <ArrayList <File >>(50 )
6455 val modifiedCount = Ref .IntRef ()
@@ -96,9 +87,6 @@ abstract class AppendTask : DefaultTask() {
9687 it.outputDir.set(outputDir)
9788 }
9889 }
99- if (removedGroup.isNotEmpty() || modifiedGroup.isNotEmpty()) {
100- projectDexArchive.deleteRecursively()
101- }
10290 // 等移除和修改执行完才能添加,否则可能产生文件冲突
10391 workQueue.await()
10492 addedGroup.forEach { files ->
You can’t perform that action at this time.
0 commit comments