8 Commits
v1.6 ... v1.6.2

Author SHA1 Message Date
Joshua Hudson
76ca4b3293 pod version bump 2016-09-28 09:17:16 -07:00
Joshua Hudson
2ad2d02a81 Merge pull request #290 from ZipArchive/revert-281-dev-fileoption
Revert "Extended to allow passing in directory or file to unzip to"
2016-09-27 20:39:50 -07:00
Joshua Hudson
ab77a21ffc Revert "Extended to allow passing in directory or file to unzip to" 2016-09-27 20:38:52 -07:00
Joshua Hudson
96577a06c8 Update Readme
Clarify Swift3 vs Swift 2.3 support
2016-09-21 08:53:11 -07:00
Joshua Hudson
39b3500120 Bump Podspec 2016-09-14 12:11:37 -07:00
Joshua Hudson
f4c0147086 Merge pull request #285 from priya87/master
Bug fix: feof() creates infinite loop.
2016-09-14 10:34:28 -07:00
Joshua Hudson
9dae2eca4a Update README.md 2016-09-14 10:33:38 -07:00
priya TIROUNARAYANANE
650c6fb0ab Bug fix: feof() creates infinite loop. 2016-09-14 10:05:00 +02:00
5 changed files with 12 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
PODS:
- SSZipArchive (1.6)
- SSZipArchive (1.6.2)
DEPENDENCIES:
- SSZipArchive (from `..`)
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: ".."
SPEC CHECKSUMS:
SSZipArchive: e3560652173f5fe708a835632e63e38b9000bdb7
SSZipArchive: 428eb1ac8d37dd133404d30f422b23958c1f9acc
PODFILE CHECKSUM: ae5fb993e5dc339b15e10067d1e60549fa585f32
COCOAPODS: 1.1.0.rc.1
COCOAPODS: 1.1.0.rc.2

View File

@@ -14,6 +14,8 @@ ZipArchive is a simple utility class for zipping and unzipping files on iOS and
## Installation and Setup
*The main release branch is configured to support Objective C and Swift 3. There is a 'swift23' branch which is the latest branch but marked to compile for Swift 2.3.*
### CocoaPods
`pod install SSZipArchive`
@@ -40,9 +42,7 @@ SSZipArchive requires ARC.
[SSZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];
```
### Swift (Swift 3 Only)
(For Swift 2.3 and below support please use continue to use version 1.4 or 1.5)
### Swift
```swift
// Create

View File

@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SSZipArchive'
s.version = '1.6'
s.version = '1.6.2'
s.summary = 'Utility class for zipping and unzipping files on iOS, tvOS, watchOS, and Mac.'
s.description = 'SSZipArchive is a simple utility class for zipping and unzipping files on iOS, tvOS, watchOS, and Mac.'
s.homepage = 'https://github.com/ZipArchive/ZipArchive'

View File

@@ -272,16 +272,7 @@
strPath = [strPath stringByReplacingOccurrencesOfString:@"\\" withString:@"/"];
}
NSString *fullPath;
BOOL isDir = NO;
if([[NSFileManager defaultManager]
fileExistsAtPath:destination isDirectory:&isDir] && isDir){
fullPath = [destination stringByAppendingPathComponent:strPath];
}
else {
fullPath = destination;
}
NSString *fullPath = [destination stringByAppendingPathComponent:strPath];
NSError *err = nil;
NSDictionary *directoryAttr;
if (preserveAttributes) {
@@ -720,7 +711,7 @@
zipOpenNewFileInZip3(_zip, afileName, &zipInfo, NULL, 0, NULL, 0, NULL, Z_DEFLATED, Z_DEFAULT_COMPRESSION, 0, -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, [password UTF8String], 0);
unsigned int len = 0;
while (!feof(input))
while(!feof(input) && !ferror(input))
{
len = (unsigned int) fread(buffer, 1, CHUNK, input);
zipWriteInFileInZip(_zip, buffer, len);

View File

@@ -1,5 +1,5 @@
PODS:
- SSZipArchive (1.6)
- SSZipArchive (1.6.2)
DEPENDENCIES:
- SSZipArchive (from `..`)
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: ".."
SPEC CHECKSUMS:
SSZipArchive: e3560652173f5fe708a835632e63e38b9000bdb7
SSZipArchive: 428eb1ac8d37dd133404d30f422b23958c1f9acc
PODFILE CHECKSUM: 8d38f966bef0580b1feb382672c12ef6a674ea58
COCOAPODS: 1.1.0.rc.1
COCOAPODS: 1.1.0.rc.2