B4i Library iArchiver - Zip / Unzip

Can you add an asynchronous method? I have large files to unzip and my app becomes unresponsive while unzipping.
 
Yes. v1.01 is attached to the first post. It includes two new methods: AsyncZipFolder and AsyncUnzip.

Code:
Dim av As Archiver
av.AsyncUnzip(File.DirDocuments, "1.zip", File.DirTemp, "", "av")

Sub av_UnzipDone (Success As Boolean)
   Log(Success)
   Log(File.ListFiles(File.DirTemp))
End Sub
Sub av_ZipDone (Success As Boolean)
   Log(Success)
   Log(File.Size(File.DirDocuments, "1.zip"))
End Sub
 
This small library allows you to zip folders and unzip zip files.

It is based on this open source project: https://github.com/soffes/ssziparchive


Library installation

The zip file contains three files with the following extensions: .xml, .a and .h.
You need to copy the xml file to the internal libraries folder on the Windows computer.
If you are using a local Mac builder then you need to copy the .a and .h files to the Mac Libs folder.
Sorry, I'm sure this is a dumb question but I don't understand where to put the xml file - I get an error if I put it in the B4 Additional Libraries folder.

Also can it be used for both B4A and B4j

Regards
 
This is a B4i (iOS) Library.

As Erel said:
"You need to copy the xml file to the internal libraries folder on the Windows computer"

Not additional ;)

-----------
Eumel
 
You can use this library for B4A and B4J: [Lib] Archiver
Thanks Erel for clearing that up, that's what I understood from your original post. Sorry about my ignorance of Windows, but I still don't understand what the internal libraries folder in Windows is
 
Back
Top