mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-09 08:34:25 +02:00
feat: use streams to write the dex files
This commit is contained in:
parent
e94a706949
commit
64bae884dc
@ -201,7 +201,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
|
|
||||||
return PatcherResult(
|
return PatcherResult(
|
||||||
dexFiles.map {
|
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(),
|
metaInfo.doNotCompress.toList(),
|
||||||
resourceFile
|
resourceFile
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package app.revanced.patcher.util.dex
|
package app.revanced.patcher.util.dex
|
||||||
|
|
||||||
import org.jf.dexlib2.writer.io.MemoryDataStore
|
import java.io.InputStream
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for dex files.
|
* Wrapper for dex files.
|
||||||
* @param name The original name of the dex file
|
* @param name The original name of the dex file.
|
||||||
* @param memoryDataStore The data store for 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…
x
Reference in New Issue
Block a user