mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
feat: use streams to write the dex files
This commit is contained in:
parent
e94a706949
commit
64bae884dc
2 changed files with 5 additions and 5 deletions
|
@ -201,7 +201,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||
|
||||
return PatcherResult(
|
||||
dexFiles.map {
|
||||
app.revanced.patcher.util.dex.DexFile(it.key, it.value)
|
||||
app.revanced.patcher.util.dex.DexFile(it.key, it.value.readAt(0))
|
||||
},
|
||||
metaInfo.doNotCompress.toList(),
|
||||
resourceFile
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package app.revanced.patcher.util.dex
|
||||
|
||||
import org.jf.dexlib2.writer.io.MemoryDataStore
|
||||
import java.io.InputStream
|
||||
|
||||
/**
|
||||
* Wrapper for dex files.
|
||||
* @param name The original name of the dex file
|
||||
* @param memoryDataStore The data store for the dex file.
|
||||
* @param name The original name of the dex file.
|
||||
* @param dexFileInputStream The dex file as [InputStream].
|
||||
*/
|
||||
data class DexFile(val name: String, val memoryDataStore: MemoryDataStore)
|
||||
data class DexFile(val name: String, val dexFileInputStream: InputStream)
|
Loading…
Reference in a new issue