Skip to content

Commit d9fd8cd

Browse files
committed
fix(core.transform-kit): Transform启动前清空debug用的临时目录
1 parent 7aa65f7 commit d9fd8cd

File tree

1 file changed

+1
-0
lines changed
  • projects/sdk/core/transform-kit/src/main/kotlin/com/tencent/shadow/core/transform_kit

1 file changed

+1
-0
lines changed

projects/sdk/core/transform-kit/src/main/kotlin/com/tencent/shadow/core/transform_kit/AbstractTransform.kt

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ abstract class AbstractTransform(
4141

4242
private fun cleanDebugClassFileDir() {
4343
val transformTempDir = File(project.buildDir, "transform-temp")
44+
transformTempDir.deleteRecursively()
4445
transformTempDir.mkdirs()
4546
mDebugClassJar = File.createTempFile("transform-temp", ".jar", transformTempDir)
4647
mDebugClassJarZOS = ZipOutputStream(FileOutputStream(mDebugClassJar))

0 commit comments

Comments
 (0)