fix: revert using OutputStream.nullOutputStream

Older Android versions don't support this API
This commit is contained in:
oSumAtrIX 2023-06-12 05:31:53 +02:00
parent c95e6fa92f
commit f02a42610b
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -247,7 +247,12 @@ class Patcher(private val options: PatcherOptions) {
XmlPullStreamDecoder(
axmlParser, AndrolibResources().resXmlSerializer
).decodeManifest(
extInputFile.directory.getFileInput("AndroidManifest.xml"), OutputStream.nullOutputStream()
extInputFile.directory.getFileInput("AndroidManifest.xml"),
object : OutputStream() {
override fun write(b: Int) {
// do nothing
}
}
)
}
}