Skip to content

Commit 87688f4

Browse files
authored
Merge pull request #661 from gdutxiaoxu/fix_incremental_build_class_not_found
fix incremental build - zip file is empty
2 parents 6491b3e + dc61e80 commit 87688f4

File tree

1 file changed

+8
-0
lines changed
  • matrix/matrix-android/matrix-gradle-plugin/src/main/kotlin/com/tencent/matrix/plugin/trace

1 file changed

+8
-0
lines changed

matrix/matrix-android/matrix-gradle-plugin/src/main/kotlin/com/tencent/matrix/plugin/trace/MatrixTrace.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,17 @@ class MatrixTrace(
292292

293293
if (isIncremental) {
294294
val outChangedFiles = HashMap<File, Status>()
295+
295296
for ((changedFileInput, status) in mapOfChangedFiles) {
296297
val changedFileInputFullPath = changedFileInput.absolutePath
298+
299+
// mapOfChangedFiles is contains all. each collectDirectoryInputTask should handle itself, should not handle other file
300+
if (!changedFileInputFullPath.contains(inputFullPath)) {
301+
continue
302+
}
303+
297304
val changedFileOutput = File(changedFileInputFullPath.replace(inputFullPath, outputFullPath))
305+
298306
if (status == Status.ADDED || status == Status.CHANGED) {
299307
resultOfDirInputToOut[changedFileInput] = changedFileOutput
300308
} else if (status == Status.REMOVED) {

0 commit comments

Comments
 (0)