An open API service indexing awesome lists of open source software.

https://github.com/theluckycoder/kompress

Kotlin Zip Compression/Decompression Library based on Apache Compress
https://github.com/theluckycoder/kompress

android android-library kotlin kotlin-library unzip zip

Last synced: about 1 year ago
JSON representation

Kotlin Zip Compression/Decompression Library based on Apache Compress

Awesome Lists containing this project

README

          

# Kompress
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![](https://jitpack.io/v/TheLuckyCoder/Kompress.svg)](https://jitpack.io/#TheLuckyCoder/Kompress)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/vipulasri/Timeline-View/blob/master/LICENSE)

Kompress is a port of the [Apache Compress](https://github.com/apache/commons-compress) library to be usable on Android 4.1 and above.
Besides rewriting the project Kotlin and adding support for older Android Versions, this lightweight version only supports Zip files.

On top of that the parallel API has been rewritten to use Kotlin Coroutines.

## Usage

Add the following to dependency to `build.gradle`:

```gradle
dependencies {
implementation 'com.github.TheLuckyCoder:Kompress:v0.5.0'
}
```

Here are some [Examples](https://github.com/TheLuckyCoder/Kompress/blob/main/app/src/main/java/net/theluckycoder/kompresstest/test/ZipExample.kt) using the most basic APIs.

## License

```
Copyright 2021 Filea Răzvan Gheorghe

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```

This project is based on [Apache Compress](https://github.com/apache/commons-compress), licensed under [Apache License 2.0](https://github.com/apache/commons-compress/blob/master/LICENSE.txt).