Skip to content
プロジェクト

saru2020/SARUnArchiveANY

GitHubで見る

概要

A very useful library for Unarchiving the .zip, .rar, .7z files for iOS. Block based integration of UnrarKit + SSZipArchive + LzmaSDKObjC (7z).

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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 Podfile

pod '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

  • Saravanan alt text

Buy me a coffee/beer

関連プロジェクトを探す

読み込み中…