2584 Commits
Author SHA1 Message Date
Timofey Solomko 133d2325fc Another iteration of 7zip implementation
Extracted 7zProperty into a separate file; converted all structs to classes (to eliminates cows); replaced switches with ifs to ensure correct order of structures; overall completed implementation of structures (except fileinfo properties and packed header); codec renamed to coder.
2017-07-25 17:35:03 +03:00
Timofey Solomko 2f75d9b53b Fix szMbd typo 2017-07-25 14:09:56 +03:00
Timofey Solomko 0b3d8523bd Numerous changes to 7z code
Added correct verion of DWP.multiByteDecode for 7-zip; added detection of packed headers, as well as reading of their streaminfos; added SevenZipProperty struct which used as ArchiveProperties in header and as Properties in FilesInfo (for now, until parsing of these properties is added).
2017-07-25 13:58:25 +03:00
Timofey Solomko adf55c3d64 Revert "Extract multiByteDecode for use in 7z"
This reverts commit e390e582b1.
2017-07-25 13:42:20 +03:00
Timofey Solomko 8e88fd3167 Add two more 7z tests 2017-07-25 13:39:42 +03:00
Timofey Solomko 097aaf7b24 Complete 7zip structures implementations
Though some questions, problems and opportunities for improvements are remaining.
2017-07-25 00:35:57 +03:00
Timofey Solomko f76c2b575a More 7z progress 2017-07-18 23:28:17 +03:00
Timofey Solomko 507db69ddb Add a lot of 7z related files for structures 2017-07-18 21:06:37 +03:00
Timofey Solomko e390e582b1 Extract multiByteDecode for use in 7z 2017-07-18 21:06:22 +03:00
Timofey Solomko dbb876dec4 Add some structures and code for 7z 2017-07-18 20:25:42 +03:00
Timofey Solomko b5c0032f38 First steps in 7z development 2017-07-18 18:50:27 +03:00
Timofey Solomko 6aa4071aab Make ZipTests shorter 2017-07-18 18:50:09 +03:00
Timofey Solomko 4b3870e0a8 Trying creating travis jobs for swift on linux 2017-07-16 22:33:18 +03:00
Timofey Solomko 5e92700574 Merge branch 'release-3.2.0' into develop 2017-07-16 11:10:51 +03:00
Timofey Solomko 5b48cd25ed Merge branch 'release-3.2.0' v3.2.0 2017-07-16 11:09:23 +03:00
Timofey Solomko 5219240cb7 Prepare for 3.2.0 2017-07-16 11:07:58 +03:00
Timofey Solomko ffe8be6d37 Set correct offset to the beginning of end of CD record 2017-07-16 10:59:49 +03:00
Timofey Solomko dbfdcb5c58 Zip cdEntry.fileName is now let again 2017-07-16 10:53:07 +03:00
Timofey Solomko 4f64d9cde8 Mention creationDate in comments of tarentry entryattributes 2017-07-16 10:34:56 +03:00
Timofey Solomko 83849ce616 Swiftlint autocorrect 2017-07-16 00:16:42 +03:00
Timofey Solomko 61c3db34cc Fix linux compatibility issues in Zip
Swift on Linux requires explicitly include CoreFoundation; there are some problems with CFStringEncodings enum and you have to use raw constants; CFStringEncoding is different type than raw constant of encoding number.
2017-07-16 00:13:54 +03:00
Timofey Solomko 070af415f6 Add tar creation time to entryAttributes 2017-07-15 22:10:23 +03:00
Timofey Solomko dff203944f Fix podspec errors 2017-07-15 22:10:00 +03:00
Timofey Solomko 0b611edbea Fix problem with repeated access to zip entry's data 2017-07-15 22:08:33 +03:00
Timofey Solomko 32394d66c0 Prepare for test release v3.2.0-test 2017-07-15 21:09:17 +03:00
Timofey Solomko 81ba512994 Remove SWCompression/Common 2017-07-15 21:07:50 +03:00
Timofey Solomko e2bc619832 Support creation time in TarEntry 2017-07-15 20:59:10 +03:00
Timofey Solomko f91908689b Use entryAttributes in ZipEntry.isDirectory 2017-07-15 20:57:12 +03:00
Timofey Solomko 6e2ddefbb5 Move tar long names parsing from entry to container 2017-07-15 20:47:57 +03:00
Timofey Solomko f8a2297f63 Add tests for tars with long names inside 2017-07-15 20:29:30 +03:00
Timofey Solomko 7ba077aab7 Extract some common code for ZIP 2017-07-15 20:03:25 +03:00
Timofey Solomko fad0e5c83a Add support for ZIP standard cp437 encoding
This encoding is used by ZIP standard. We fallback to UTF-8 encoding if CP437 encoding is unavailable on the platform or it is detected that the text is actually in UTF-8 encoding. The latter is needed because files created by Info-ZIP with UTF-8 names doesn't actually have bit flag which is required (again, according to standard) for UTF-8.
2017-07-14 18:11:00 +03:00
Timofey Solomko 4220537d0e Perform local header loading in unicode zip test 2017-07-14 18:03:45 +03:00
Timofey Solomko 81e1d1cee0 Write checksum tables in hex 2017-07-14 15:23:15 +03:00
Timofey Solomko c769dc6782 Remove extra submodule update in travis 2017-07-14 15:22:38 +03:00
Timofey Solomko bf08b82aa3 Fix travis config problem 2017-07-14 00:30:57 +03:00
Timofey Solomko e78f67aa0b Use overflow operators 2017-07-13 23:22:39 +03:00
Timofey Solomko 228e499287 Use bitReader in ZIP only when necessary 2017-07-13 23:18:15 +03:00
Timofey Solomko d72b9f0f79 Add section to readme about new submodule 2017-07-13 23:08:47 +03:00
Timofey Solomko 3a80dca94f Adopt travis configuration for a new submodule 2017-07-13 22:56:14 +03:00
Timofey Solomko 41a15a16fa Ignore two additional xcode files 2017-07-13 22:55:57 +03:00
Timofey Solomko 09a31e64d2 Add submodule directory 2017-07-13 22:50:28 +03:00
Timofey Solomko ce1f3de740 Add Test Files submodule 2017-07-13 22:47:50 +03:00
Timofey Solomko d6134bc082 Remove gitattributes 2017-07-13 22:43:11 +03:00
Timofey Solomko a847f0933d Remove test files 2017-07-13 22:42:20 +03:00
Timofey Solomko 8b8fc3f3c8 Fix problem with decompressing bzip2 in zip files
This problem appeared because bzip2 uses "straight" bit order instead of reversed.
2017-07-09 13:55:20 +03:00
Timofey Solomko 73e739135e Add function to BitReader which returns another BitReader with opposite bitOrder
It will be used in Zip bzip2 decompression.
2017-07-09 13:54:30 +03:00
Timofey Solomko 8deb07122f Add getting data for zip64 test 2017-07-09 13:53:47 +03:00
Timofey Solomko 499e8b18eb Add long_tests part for zip test with SWCompression source code
During this part it checks if it is possible to successfullt get data for each of 211 entries.
2017-07-09 13:51:54 +03:00
Timofey Solomko a9ab327583 Add test of zip file with BZip2 compression 2017-07-09 13:50:44 +03:00