Commit Graph

455 Commits

Author SHA1 Message Date
Douglas Bumby
a90b2a9611 Merge fixes 2015-04-06 13:42:48 -04:00
Douglas Bumby
7e44caef39 Merge pull request #130 from soffes/revert-129-master
Revert "Add support for archives in folders"
2015-04-06 13:35:51 -04:00
Douglas Bumby
0c9aaee02b Revert "Add support for archives in folders" 2015-04-06 13:35:21 -04:00
Douglas Bumby
bd02992224 Merge pull request #129 from Binauric/master
Add support for archives in folders
2015-04-06 13:22:46 -04:00
Lars Immisch
9426653711 Add support for archives in folders 2015-03-27 10:53:38 +01:00
Riley Testut
33c7884202 Added option to keep parent directory when compressing directory contents 2014-12-21 18:02:19 -06:00
David Robles
67403e8a28 Update pod spec. 2014-11-05 15:40:12 -08:00
David Robles
74ce9fc2c7 Update Pod spec. 2014-11-05 15:34:55 -08:00
Bohdan Hernandez
553c4be486 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning
  Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning

Conflicts:
	SSZipArchive/minizip/ioapi.c
2014-11-05 20:51:56 +00:00
Sam Soffes
9f93d0c1b7 Merge pull request #120 from nicked/master
Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warnings
2014-10-31 08:23:04 -07:00
nicked
55437a8b8e Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning 2014-10-31 11:09:31 +01:00
nicked
d68c99b890 Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning 2014-10-31 11:08:04 +01:00
Bohdan Hernandez
e1bfb6e8ed Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Change the CalendarUnit for iOS 8.0
2014-10-29 13:22:06 +00:00
Sam Soffes
874ebd8651 Merge pull request #119 from liufan321/master
Change CalendarUnits for iOS 8.0
2014-10-26 21:48:47 -07:00
Fan Liu
a8f065f2a1 Change the CalendarUnit for iOS 8.0 2014-10-26 03:50:58 +08:00
Bohdan Hernandez
b89dfcf4fd Merge branch 'master' of https://github.com/soffes/ssziparchive
# By Adam Yanalunas (2) and Landon Fuller (1)
# Via Adam Yanalunas
* 'master' of https://github.com/soffes/ssziparchive:
  Updated podspec for v0.3.2
  Relative symlink fixture for new symlink detection in #91
  Replace symlink heuristic with a well-defined test.
2014-09-22 00:45:08 +01:00
LIU Dongyuan / 柳东原
b688b9859a Update Readme.markdown
createZipFileAtPath:withFilesAtPaths: creates an invalid zip for directory
2014-09-20 13:21:42 -07:00
Lukas Mollidor
54875c8192 Report file size as unsigned long long to delegate 2014-09-12 19:11:46 +02:00
Lukas Mollidor
df0d5536e8 Fix warning on shadowed variable when creating zip file 2014-09-12 18:44:36 +02:00
Adam Yanalunas
60f577ab9a Updated podspec for v0.3.2 2014-09-08 11:39:44 -07:00
Adam Yanalunas
60312c173b Merge pull request #111 from soffes/test/relative_path_fixture
Relative symlink fixture for new symlink detection in #91
2014-09-08 11:26:13 -07:00
Adam Yanalunas
c363747a15 Merge pull request #91 from landonf/master
Fix symlink detection
2014-09-08 11:26:01 -07:00
Adam Yanalunas
e29efca7bf Relative symlink fixture for new symlink detection in #91 2014-09-05 13:19:30 -07:00
Taber Buhl
024241a3e0 Update SSZipArchive.podspec
trying alternative source_files syntax
2014-08-01 17:22:06 -04:00
Bohdan Hernandez
47c50d0482 Adds progress and completion handlers. 2014-07-29 18:54:28 +01:00
Zacharyl Landau
2385ac9241 Add a delegate for cancelling unzips
This adds a zipArchiveShouldUnzipFileAtIndex, which is called before
each call to zipArchiveWillUnzipFileAtIndex, allowing a delegate to
cancel the unzip progress.
2014-07-16 11:28:25 -07:00
Bohdan Hernandez
b91fe135e2 Removes some compile warnings. 2014-05-12 09:52:50 +01:00
Bohdan Hernandez
57b6018ca0 Merge branch 'master' of https://github.com/soffes/ssziparchive
# By Andreas Dangel (2) and others
# Via Erickson Pacioles (1) and Sam Soffes (1)
* 'master' of https://github.com/soffes/ssziparchive:
  Fixed warnings from Xcode Analyzer
  Fix warnings on 64-bit
  Add a unit test for zipArchiveProgressEvent.
  Add a progress event while unzipping. The progress is determined by the compressed file size and zip entries.
2014-04-28 10:46:50 +01:00
Sam Soffes
89b32b9328 Merge pull request #99 from mr-fahrenheit/master
Fixed warnings from Xcode Analyzer
2014-04-06 09:25:57 -04:00
Mr. Fahrenheit
1b2ec1a9ec Fixed warnings from Xcode Analyzer 2014-04-06 19:42:33 +08:00
Sam Soffes
b4c9bde3fb Fix warnings on 64-bit 2014-03-22 08:01:08 -07:00
Andreas Dangel
4fca963b62 Add a unit test for zipArchiveProgressEvent. 2014-03-22 03:56:37 +01:00
Andreas Dangel
281571d99f Add a progress event while unzipping.
The progress is determined by the compressed file size and zip entries.
2014-03-14 21:22:20 -04:00
Vincent Tourraine
47afe71fa2 Fix implicit conversion warning
```
SSZipArchive/minizip/ioapi.c:195:33: Implicit conversion loses integer precision: 'ZPOS64_T' (aka 'unsigned long long') to 'long'
```
2014-03-03 11:38:04 +01:00
Bohdan Hernandez
de0ffe7478 Support for adding folders and subfolders to ZIP packages. 2014-02-09 02:48:44 +00:00
Andreas Linde
e422866c97 Fix clang analyzer warning appearing in line 1534
Removing the clang analyzer silencer in these lines fixed another clang analyzer warning that appeared in line 1534.
In addition these lines do not cause a static analyzer warning in latest Xcode any longer.
Tested with Xcode 5.0.2
2014-01-17 12:47:36 +01:00
Landon Fuller
653caaa9b2 Replace symlink heuristic with a well-defined test.
As per the PKWARE ZIP File Format Specification (6.3.2), this
patch tests the file 'version made by' field for the UNIX (3)
constant, and then interprets the external file attributes accordingly,
assuming an st_mode field in the high 16 bits.
2014-01-16 11:53:45 -05:00
Sam Soffes
d3c40f0e95 Happy New Year 🎉 2014-01-01 11:00:26 -08:00
Sam Soffes
ebc0b248ef Merge pull request #86 from dennda/master
Issue #85: Keep relative symbolic links relative.
2013-11-08 11:52:25 -08:00
Christopher Denter
f89c159b2a Issue #85: Add test for relative symlink preservation patch.
This test adds a fixture RelativeSymlinks.zip with the following
structure:

    RelativeSymbolicLink
    ├── symlinkedFile
    ├── symlinkedFolder
    └── symlinks
       ├── fileSymlink -> ../symlinkedFile
       └── folderSymlink -> ../symlinkedFolder

The test checks if both `fileSymlink` and `folderSymlink` still point to
the respective files in the parent directory after the fixture has been
unzipped.
2013-11-08 20:34:17 +01:00
Christopher Denter
a5de5b6bef Issue #85: Keep relative symbolic links relative.
Before, the library resolved symbolic links that are relative
into absolute paths, using the current working directory of the process
that's doing the unzipping, which to me seems pretty wrong.
This was due to using -[NSURL fileURLWithPath:], which transforms
relative URLs to absolute URLs automatically.

I don't see much of a reason to use NSFileManager here, so I made that
use symlink() directly. Alternatively, one could also use -[NSURL
URLWithString:].

This keeps relative symlinks relative after unzipping.
2013-11-08 19:04:42 +01:00
Sam Soffes
bf95dc2fd4 Fix 2013-09-11 08:56:12 -07:00
Sam Soffes
c2b33b42d0 There we go 2013-09-11 08:43:46 -07:00
Sam Soffes
b91252282e Simplify project structure 2013-09-10 00:03:11 -07:00
Sam Soffes
1fefbc022f Add shares scheme 2013-09-09 23:50:07 -07:00
Sam Soffes
273fc1b36e Fix minizip path 2013-09-09 09:04:04 -07:00
Sam Soffes
164ae9bfd3 Move minizip up 2013-09-09 09:00:52 -07:00
Sam Soffes
6ca6e0c28f Version 0.3.0 2013-09-07 08:52:49 -07:00
Sam Soffes
07cfb62107 Update readme 2013-09-07 08:38:55 -07:00
Sam Soffes
364be2ed4f Restructure project and move to XCTest 2013-09-07 08:33:47 -07:00