https://github.com/Edison0716/ZipUtil
Compress and decompress files
https://github.com/Edison0716/ZipUtil
7zip rar zip
Last synced: about 1 year ago
JSON representation
Compress and decompress files
- Host: GitHub
- URL: https://github.com/Edison0716/ZipUtil
- Owner: Edison0716
- Created: 2018-08-03T10:06:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T10:25:56.000Z (almost 8 years ago)
- Last Synced: 2024-10-24T16:51:01.687Z (over 1 year ago)
- Topics: 7zip, rar, zip
- Language: Kotlin
- Homepage:
- Size: 1.26 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZipUtil
1、解压缩.zip
2、解压缩.rar (待完成)
3、解压缩.7z (待完成)
# 使用方法
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Jack1995:ZipUtil:1.0.0'
}
ArchiverManager.getInstance(this.application).doUnArchiver(source, destPath, "***压缩密码***", object : IArchiverCallback {
override fun onStartArchiver() {
//解压缩开始
Toast.makeText(this@MainActivity, "解压缩开始", Toast.LENGTH_SHORT).show()
}
override fun onProgressArchiver(current: Int, total: Int) {
//进度回调
//current 当前正在压缩第几个文件
//total 总计压缩文件个数
Log.d("onZipProgress", current.toString())
}
override fun onEndArchiver() {
//解压缩完成
Toast.makeText(this@MainActivity, "解压缩完成", Toast.LENGTH_SHORT).show()
}
})
```
## 日志
2018-08-03
完成对 .zip 文件的压缩