Skip to content

sigmadeltasoftware/Zippity

Repository files navigation

Zippity

Download

Ultra-lightweight Kotlin-based Android library to zip or unzip. Nothing more, nothing less.

Installation

Simply add the project to your build.gradle. Replace 'x.x.x' by latest version which can be found at the top of the document.

implementation 'be.sigmadelta:zippitylib:x.x.x'

Usage

The API is all about keeping it stupid simple:

try {
    // Unzipping
    val archiveFile = File("/path/to/zip/file.zip")
    Zippity.unzip(archiveFile, File("/path/to/unzip/location"))
    
    // Zip a list of files
    val fileList = listOf(file0, file1, file2) // f.e. val file0 = File("/path/to/file0")
    Zippity.zip(fileList, File("/path/to/output.zip"))
    
    // Zip a directory
    val dirToZip = File("/path/to/directory/to/be/zipped")
    Zippity.zip(dirToZip, File("/path/to/other_output.zip"))
    } catch:
    // IOException, FileNotFoundException, IllegalArgumentException

Contributing

Contributions are very welcome and can be made using pull requests.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

About

Android minimalistic Zip library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages