Skip to content

ysfchn/ZipFile-AI2

Repository files navigation

📦 ZipFile-AI2 Extension

Java's ZipFile implementation for App Inventor 2!

🧩 Blocks

Block Description
Opens a new zip archive from storage.
Reads the content of one of file in the lastly opened archive.
Raises when one of methods resulted with error.

method - Name of the method that error raised in.
message - Error message.
Raises after ZipFile has opened successfully.

name - Name of the file.
entries - All entry names as list.
comment - Returns the comment of the archive.
entryCount - Count of the entries.
Raises after ZipEntry has opened successfully.

name - Name of the entry.
isDirectory - Returns true if entry is a directory, otherwise false.
size - Returns the uncompressed size of the entry data.
checksum - Returns the CRC-32 checksum of the uncompressed entry data.
content - Content of the entry.

🔨 Building

You will need:

  • Java 1.8 (either OpenJDK or Oracle)
  • Ant 1.10 or higher

Then execute ant extensions in the root of the repository.

🏅 License

Source code is licensed under MIT license. You must include the license notice in all copies or substantial uses of the work.