Giter VIP home page Giter VIP logo

zippity's Introduction

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

zippity's People

Contributors

sigmadeltasoftware avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.