mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-04 05:51:31 +00:00
use zlib's full gzip support
simpler code and seems to be generally faster
This commit is contained in:
@ -75,9 +75,9 @@ public struct ApkIndexUpdater {
|
||||
do {
|
||||
var file: any InputStream = try FileInputStream(indexURL)
|
||||
//var file: any InputStream = try MemoryInputStream(buffer: try Data(contentsOf: indexURL))
|
||||
tars.append(try GZip.read(inStream: &file))
|
||||
tars.append(try GZip.read(inStream: &file))
|
||||
|
||||
var gzip = GZipReader()
|
||||
tars.append(try gzip.read(inStream: &file))
|
||||
tars.append(try gzip.read(inStream: &file))
|
||||
} catch {
|
||||
fatalError(error.localizedDescription)
|
||||
}
|
||||
|
Reference in New Issue
Block a user