Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saru2020/SARUnArchiveANY
A very useful library for Unarchiving the .zip, .rar, .7z files for iOS. Block based integration of UnrarKit + SSZipArchive + LzmaSDKObjC (7z).
https://github.com/saru2020/SARUnArchiveANY
apple ios library objective-c unarchive
Last synced: about 1 month ago
JSON representation
A very useful library for Unarchiving the .zip, .rar, .7z files for iOS. Block based integration of UnrarKit + SSZipArchive + LzmaSDKObjC (7z).
- Host: GitHub
- URL: https://github.com/saru2020/SARUnArchiveANY
- Owner: saru2020
- License: other
- Created: 2013-04-30T22:50:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T12:28:16.000Z (over 5 years ago)
- Last Synced: 2024-07-12T23:50:52.919Z (5 months ago)
- Topics: apple, ios, library, objective-c, unarchive
- Language: Objective-C
- Homepage:
- Size: 6.12 MB
- Stars: 308
- Watchers: 17
- Forks: 51
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: License.txt
Awesome Lists containing this project
- Awesome-iOS - SARUnArchiveANY - A very useful library for Unarchiving the .zip, .rar, .7z files for iOS. (Data/File Archive & Unarchive)
README
SARUnArchiveANY
===============A very useful library for Unarchiving the .zip, .rar, .7z files for iOS.
Simply An Integration of the following libraries :
* UnrarKit
* SSZipArchive
* LzmaSDKObjC (7z)
Pros:
* Integration of the most popular archiving libraries, no need for integrating each library separately.
* Completely Block-based syntax. No Delegation pattern, hence avoiding a lot of clunky codes.
* UnArchive Password protected files.
* Example project illustrates on how to display your app in "Open in" action sheet list,
when tapped on any of the archive file of the supported format (zip, rar, 7z) in any apps installed on
the device/simulator.
* Example illustrates on how to make the app support for iTunes File Sharing.
Cons:
* Have tested this only with smaller files. Might not suit well for files with larger
sizes ( May be files > 500MB's ).Installation :
Add the following to your CocoaPods Podfilepod 'SARUnArchiveANY'
or clone as a git submodule,
or any way you'd prefer to play with ;)
Usage :
SARUnArchiveANY *unarchive = [[SARUnArchiveANY alloc]initWithPath:filePath];
unarchive.destinationPath = destPath;//(Optional). If it is not given, then the file is unarchived in the same location of its archive file.
unarchive.completionBlock = ^(NSArray *filePaths){
NSLog(@"For Archive : %@",filePath);
for (NSString *filename in filePaths) {
NSLog(@"File: %@", filename);
}
};
unarchive.failureBlock = ^(){
};
[unarchive decompress];
## 👨🏻💻 Author
[1.1]: http://i.imgur.com/tXSoThF.png
[1]: http://www.twitter.com/saruhere* Saravanan [![alt text][1.1]][1]