Tags: pixelglow/ZipZap
Tags
Fix crash when block fails without error (fix #129) * The NSUnderlyingErrorKey value would be nil in the userInfo dictionary initialization, causing the crash. To fix, generate a ZZBlockFailedWithoutError error to substitute for the missing underlying error. * Update unit tests. * Update podspec to 8.1.1.
Add fine-grained filename encoding * Add entry encoding property based on the EFS flag of the general purpose bit flags. * Add entry fileNameWithEncoding: methods to force a particular entry-level encoding for the file name. * Remove archive-level encoding for file name. * Default encoding is now CP-437, as per the Zip file format specification. This is a breaking change since previous default encoding was UTF-8. * Update unit tests. * Update podspec to 8.1.
Improve archive init API * No more separate mutable archive subclass (ref #24). * Initializers and factory methods may now return nil, along with error information. * Initializers now take an options dictionary, which allows for expansion. For now, you can set ZZOpenOptionsEncodingKey for string encoding and ZZOpenOptionsCreateIfMissingKey to create the archive file if it is missing. * Drop the public load: method, as initializers and updateEntries: do any necessary loading. It’s fairly cheap to create a new archive object to reload changed contents, and we no longer lazily load contents and entries. * The redesign prevents creating erroneous objects e.g. file not found may be a legitimate problem, and prevents swallowing of read errors during lazy loading. * Update podspec to version 8.0.
PreviousNext