Skip to content

Commit b5e40fe

Browse files
committed
fix: Close streams to be able to delete cache folder
1 parent d30759b commit b5e40fe

File tree

1 file changed

+1
-0
lines changed
  • library/src/commonMain/kotlin/app/revanced/library

1 file changed

+1
-0
lines changed

library/src/commonMain/kotlin/app/revanced/library/ApkUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ object ApkUtils {
5454
ZFile.openReadWrite(apkFile, zFileOptions).use { targetApkZFile ->
5555
dexFiles.forEach { dexFile ->
5656
targetApkZFile.add(dexFile.name, dexFile.stream)
57+
dexFile.stream.close()
5758
}
5859

5960
resources?.let { resources ->

0 commit comments

Comments
 (0)