Commit Graph
1637 Commits
Author SHA1 Message Date
Timofey Solomko 112fa8bbb0 Date init from ntfs timestamp is no longer failable
The only reason for it to be was to propagate optionality of UInt64 argument. Instead we can if-let ntfs timestamp and call this initializer with non-optional argument. We also now force-unwrap ntfsReferenceDate, since it is likely to be a system problem if we cannot create definetely correct date from its components.
2018-03-25 23:42:53 +03:00
Timofey Solomko 019bbf0629 [7-Zip] Move conversion from UInt64 to Date from entry to file info 2018-03-25 23:33:57 +03:00
Timofey Solomko bc41feaea9 Revert "Disable STRIP_INSTALLED_PRODUCT xcode project setting"
Carthage released an update which fixes the problem with unintended stripping of debugging symbols, thus, we no longer need to modify project settings to workaround this problem.
2018-03-25 20:03:06 +03:00
Timofey Solomko 311fe5ae80 [7-Zip] Add property to SevenZipFolder orderedCompressionMethods
It lazily returns compression methods in the order used by folder.
2018-03-18 15:47:43 +03:00
Timofey Solomko 4959ec5fe0 [TAR] Add compressionMethod property to TarEntryInfo
Obviously, it is awlays equal to .copy because TAR format doesn't support any compression.
2018-03-18 01:03:14 +03:00
Timofey Solomko b123fff428 [7-Zip] Replace struct-ends ifs with guards 2018-03-18 00:58:40 +03:00
Timofey Solomko 895643b69e [7-Zip] Reduce code nesting in container 2018-03-18 00:57:27 +03:00
Timofey Solomko 72ca40ce91 Prepare for 4.2.2 release 2018-03-17 19:17:02 +03:00
Timofey Solomko a34e272f97 [docs] Fix typo in Container protocol 2018-03-17 15:38:46 +03:00
Timofey Solomko 309a07ed15 [docs] Slightly simplify notes about entries order of container functions 2018-03-17 15:37:41 +03:00
Timofey Solomko 2e3867afde [7-Zip] Some code and comments improvements to open and info functions 2018-03-17 15:34:12 +03:00
Timofey Solomko 42fdac0a79 [7-Zip] info(container:) no longer crash when SubstreamInfo doesn't have enough sizes or digests
In this cases it now sets them to nil, which is consistent with behavior of open(container:) function.
2018-03-17 15:32:07 +03:00
Timofey Solomko b301045d4a [7-Zip] Fix skipping entries in open(container:) when there is no SubstreamInfo
It was always intended to set data of entry to nil in this case, but for some reason it was never properly implemented.
2018-03-17 15:30:19 +03:00
Timofey Solomko 3a65484322 Prepare for 4.2.1 release 2018-03-08 12:48:59 +03:00
Timofey Solomko abcc985da8 Accept 7z minor version from 1 to 4 2018-03-08 12:35:16 +03:00
Timofey Solomko eafbd731d4 Suggest 4.2.0 version in README 2018-03-08 12:30:13 +03:00
Timofey Solomko fd876c0307 Merge branch 'release-4.2.0' into develop 2018-03-04 12:35:31 +03:00
Timofey Solomko d0a6263ea5 Prepare for 4.2.0 release 2018-03-04 12:34:32 +03:00
Timofey Solomko 08473e1aff Add missing documentation for unknownExtendedHeaderRecords 2018-03-04 12:09:31 +03:00
Timofey Solomko 02d4163295 Disable STRIP_INSTALLED_PRODUCT xcode project setting
This fixes missing symbol information for carthage archives. This is a temporary fix until carthage releases its own update which solves this issue.
2018-03-04 12:00:47 +03:00
Timofey Solomko 84478a3eb4 Prepare for second test release of 4.2.0 4.2.0-test.2 2018-03-03 20:51:26 +03:00
Timofey Solomko a186631202 Merge branch 'develop' into release-4.2.0 2018-03-03 20:37:01 +03:00
Timofey Solomko b679b0fa6f Don't swiftlint package manifest 2018-03-03 20:31:17 +03:00
Timofey Solomko cb9d181754 [BZip2] Don't create new Huffman trees if maximum amount of trees possible is already reached 2018-03-03 20:30:49 +03:00
Timofey Solomko f9684573cf Use "benchmark" instead of "performance testing" in text documents 2018-03-03 13:47:31 +03:00
Timofey Solomko 8fc390a680 [swcomp] Rename PerfTest to Benchmark 2018-03-03 13:43:57 +03:00
Timofey Solomko a1db77ae25 [TAR] Add a workaround for situation when prefix has trailing slash to prevent double slashes 2018-03-03 13:12:52 +03:00
Timofey Solomko f2e7c6c4b3 [swcomp] Print addtional properties for all types of entry infos (as well as unknown pax records) 2018-03-03 13:05:50 +03:00
Timofey Solomko a73f5ddcde [TAR] Add unknownExtendedHeaderRecords to TarEntryInfo 2018-03-03 12:34:16 +03:00
Timofey Solomko 5c2e4af0d6 [TAR] Use new extended header properties in TarEntryInfo 2018-03-03 12:00:31 +03:00
Timofey Solomko 068b83d62f [TAR] Add known extended header fields as properties to TarExtendedHeader 2018-03-03 01:14:51 +03:00
Timofey Solomko 4888f37f0f Revert addition of BBD-related public APIs to Zlib, LZMA and BZip2 2018-03-02 23:32:39 +03:00
Timofey Solomko ced314d797 [swcomp] Improve how we handle alternative options in container commands 2018-03-02 22:35:00 +03:00
Timofey Solomko f5a262c437 Improve package manifest style and use final version of BBD 1.1.0 2018-03-02 22:32:56 +03:00
Timofey Solomko f3c568386a [swcomp] Replace nine block size options for BZip2 command with a single one 2018-02-23 17:59:19 +03:00
Timofey Solomko 9f6c36b232 Disable for_where swiftlint rule 2018-02-23 17:50:46 +03:00
Timofey Solomko 68bd0dac3d Prepare for first test release of 4.2.0 4.2.0-test.1 2018-02-23 13:01:22 +03:00
Timofey Solomko b19382833b [Zlib] Add public unarchive(from:) function which uses BBD's ByteReader as its argument 2018-02-23 12:58:37 +03:00
Timofey Solomko ba037786b4 [LZMA] Add public decompress(from:) function which uses BBD's ByteReader as its argument 2018-02-23 12:58:24 +03:00
Timofey Solomko 8b4ff5c040 [BZip2] Make decompress(_ bitReader:) function public and add "from" label to its argument 2018-02-23 12:58:24 +03:00
Timofey Solomko 3d502071bb [ZIP] Use new BBD's converting inits when decompressing 2018-02-23 12:58:24 +03:00
Timofey Solomko 7864f830c5 Use BitByteData 1.1.0 test version 2018-02-23 12:58:20 +03:00
Timofey Solomko 01921b4824 Merge branch 'feature-info-zip-unix-extra-fields' into develop 2018-02-21 23:20:40 +03:00
Timofey Solomko b9797a05a8 [Tests] Add checks for recently added to ZIP owner/group IDs 2018-02-21 23:19:09 +03:00
Timofey Solomko f95b8116f2 [ZIP] Add public API for accessing uid and gid
These APIs are: ZipEntryInfo.ownerID and groupID (named for consistency with TarEntryInfo).
2018-02-21 23:14:44 +03:00
Timofey Solomko 146162132b [ZIP] Add internal support for Info-ZIP New unix extra field (0x7875) 2018-02-21 23:08:07 +03:00
Timofey Solomko 8315018de6 [ZIP] Add internal support for Info-ZIP unix extra field (0x7855) 2018-02-21 22:57:53 +03:00
Timofey Solomko e3006d05b6 [Tests] Add multiple additional checks for zip tests 2018-02-21 22:55:31 +03:00
Timofey Solomko 375b38ed06 Prevent BitByteData's bcsymbolmaps from archiving when deploying Carthage archive from CI 2018-02-21 22:41:37 +03:00
Timofey Solomko 447dd7f092 Fix some new CI problems 2018-02-21 22:34:45 +03:00