mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-11 13:56:17 +00:00
Wrap dex file stream with use block
This commit is contained in:
@@ -53,7 +53,7 @@ object ApkUtils {
|
||||
fun PatcherResult.applyTo(apkFile: File) {
|
||||
ZFile.openReadWrite(apkFile, zFileOptions).use { targetApkZFile ->
|
||||
dexFiles.forEach { dexFile ->
|
||||
targetApkZFile.add(dexFile.name, dexFile.file.inputStream())
|
||||
dexFile.stream.use { targetApkZFile.add(dexFile.name, it) }
|
||||
}
|
||||
|
||||
resources?.let { resources ->
|
||||
|
||||
Reference in New Issue
Block a user