Viewing version 3.1.3. Open the latest package page.
archive
3.1.3Provides encoders and decoders for various archive and compression formats such as zip, tar, bzip2, gzip, and zlib.
Readme
archive
Overview
A Dart library to encode and decode various archive and compression formats.
The library has no reliance on dart:io, so it can be used for both server and
web applications.
The archive library currently supports the following decoders:
- Zip (Archive)
- Tar (Archive)
- ZLib [Inflate decompression]
- GZip [Inflate decompression]
- BZip2 [decompression]
- XZ [decompression]
And the following encoders:
- Zip (Archive)
- Tar (Archive)
- ZLib [Deflate compression]
- GZip [Deflate compression]
- BZip2 [compression]
Changelog
3.1.3
- Cleaned up LICENSE, moving other licenses to LICENSE-other.md.
3.1.2
- Added the ability to override the timestamp encoded in a Zip file.
3.1.1
- Fix zip encoder so that zip files created on Windows will open correctly on Linux.
3.1.0-dev
- Added
constconstructors toZLibDecoder,ZLibEncoder, andZLibDecoderBase.
3.0.0 - February 3, 2021
- Stable release supporting null safety.
3.0.0-nullsafety.0 - January 20, 2021
- Migrate to null safety.
2.0.13 - January 02, 2020
- Switch to dart strong mode; refactor code to resolve all dartanalyzer warnings.
2.0.12 - December 30, 2019
- Fix dartanalyzer warnings
2.0.11 - November 8, 2019
- Set the default permission for ArchiveFile to something more reasonable (0644 -rw-r--r--)
2.0.10 - June 11, 2019
- Fix for decoding empty zip files.
2.0.9 - May 16, 2019
- Add isSymbolicLink and nameOfLinkedFile to ArchiveFile.
- Fix for encoding empty files.
2.0.8
- Fix zip isFile
2.0.7
- Fix zip file attributes.
2.0.6
- Support GNU tar long file names
- Maintain unix file permissions in zip archives.
2.0.5
- Use dart:io ZLibCodec when run from dart:io.
2.0.4
- Fix InputStream when a Uint8ListView is used as input data.
2.0.3
- Use Utf8 for reading strings in archive archive files, for filenames and comments.
2.0.2
- Fixes for ZipFileEncoder.
2.0.1
- Remove the use of
partandpart ofin the main library. - Added ZipFileEncoder to encode files and directories using dart:io.
- Added createArchiveFromDirectory function to create an Archive object from a dart:io Directory.
2.0.0
- Moved version up for Dart 2 support.
- Fixed an issue with file compression flags when decoding zip archives.
- Fixed an issue with bzip2 decoding in production code.
1.0.33
- Support the latest version of
package:args.
1.0.30 - May 27, 2017
- Add archive_io sub-package for supporting file streaming rather than storing everything in memory. This is a work-in-progress and under development.
1.0.29 - May 25, 2017
- Fix issue with POSIX tar files.
- Upgrade dependency on
archiveto>=1.0.0 <2.0.0
1.0.20 - Jun2 21, 2015
- Improve performance decompressing large files in zip archives.
1.0.19 - February 23, 2014
- Disable CRC verification by default when decoding archives.
1.0.18 - October 09, 2014
- Add support for encoding uncompressed files in zip archives.
1.0.17 - April 25, 2014
- Fix a bug in InputStream.
1.0.16 - March 02, 2014
- Add stream support to Inflate decompression.
1.0.15 - February 16, 2014
- Improved performance when writing large blocks.
1.0.14 - February 12, 2014
- Misc updates and fixes.
1.0.13 - February 06, 2014
-
Added BZip2 encoder.
-
BREAKING CHANGE:
Filewas renamed toArchiveFile, to avoid conflicts withdart:io.
1.0.12 - February 04, 2014
- Added BZip2 decoder.
1.0.11 - February 02, 2014
- Changed
InputStreamto work with typed_data instead ofList<int>, should reduce memory and increase performance.
1.0.10 - January 19, 2013
-
Renamed
InputBufferandOutputBuffertoInputStreamandOutputStream, respectively. -
Added
readBitsmethod toInputStream.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'archive:3.1.3'pubspec.yaml
name: archive
version: 3.1.3
description: >-
Provides encoders and decoders for various archive and compression formats
such as zip, tar, bzip2, gzip, and zlib.
repository: https://github.com/brendan-duncan/archive
environment:
sdk: '>=2.12.0-0 <3.0.0'
dependencies:
crypto: ^3.0.0
path: ^1.8.0
dev_dependencies:
lints: ^1.0.0
test: ^1.17.0
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 6f3a35b8…3bdee8 |
| 1.0.2 | Cached · Upstream SHA-256 matched | Download | 0e14920d…578ff6 |
| 1.0.3 | Cached · Upstream SHA-256 matched | Download | 5b96be21…1013d4 |
| 1.0.4 | Cached · Upstream SHA-256 matched | Download | 1e6da3aa…01ebcb |
| 1.0.5 | Cached · Upstream SHA-256 matched | Download | b166e276…e14845 |
| 1.0.6 | Cached · Upstream SHA-256 matched | Download | 8f9dd3bd…b364f6 |
| 1.0.7 | Cached · Upstream SHA-256 matched | Download | d39b52d9…424369 |
| 1.0.8 | Cached · Upstream SHA-256 matched | Download | da45813c…46e292 |
| 1.0.9 | Cached · Upstream SHA-256 matched | Download | 804d2125…bfb426 |
| 1.0.10 | Cached · Upstream SHA-256 matched | Download | 28ab87e4…c8988f |
| 1.0.11 | Cached · Upstream SHA-256 matched | Download | 79dd20a7…e1e3ec |
| 1.0.12 | Cached · Upstream SHA-256 matched | Download | 9d779125…1aa177 |
| 1.0.13 | Cached · Upstream SHA-256 matched | Download | 134cacc8…6cc586 |
| 1.0.14 | Cached · Upstream SHA-256 matched | Download | 81789108…bd4027 |
| 1.0.15 | Cached · Upstream SHA-256 matched | Download | e27ef300…b6fb3b |
| 1.0.16 | Cached · Upstream SHA-256 matched | Download | 3c44950c…f7fc8f |
| 1.0.17 | Cached · Upstream SHA-256 matched | Download | b28b759b…075424 |
| 1.0.18 | Cached · Upstream SHA-256 matched | Download | e975718d…6cd398 |
| 1.0.19 | Cached · Upstream SHA-256 matched | Download | d5cb2450…759fbe |
| 1.0.20 | Cached · Upstream SHA-256 matched | Download | 0c9527a8…240347 |
| 1.0.21 | Cached · Upstream SHA-256 matched | Download | 408e05a5…bfff0c |
| 1.0.22 | Cached · Upstream SHA-256 matched | Download | cef274b8…352cd1 |
| 1.0.23 | Cached · Upstream SHA-256 matched | Download | 2630b5be…d8fd17 |
| 1.0.24 | Cached · Upstream SHA-256 matched | Download | 17fbda4b…1be44f |
| 1.0.25 | Cached · Upstream SHA-256 matched | Download | 104d93f4…625849 |
| 1.0.26 | Cached · Upstream SHA-256 matched | Download | 73c0d27e…d2b0dc |
| 1.0.27 | Cached · Upstream SHA-256 matched | Download | c0565425…fc3206 |
| 1.0.28 | Cached · Upstream SHA-256 matched | Download | 0b3bc7ee…b0e0e8 |
| 1.0.29 | Cached · Upstream SHA-256 matched | Download | 60a380c7…285ca9 |
| 1.0.31 | Cached · Upstream SHA-256 matched | Download | 8e65d0c4…026ff0 |
| 1.0.32 | Cached · Upstream SHA-256 matched | Download | c7398c92…fe717f |
| 1.0.33 | Cached · Upstream SHA-256 matched | Download | 3203b92e…a5b591 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | 58e81db2…0625c9 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | cfc92325…dd4ee0 |
| 2.0.2 | Cached · Upstream SHA-256 matched | Download | 9644d0f0…f26c6f |
| 2.0.3 | Cached · Upstream SHA-256 matched | Download | 4754fb4b…af7318 |
| 2.0.4 | Cached · Upstream SHA-256 matched | Download | 6d9a421f…0a1df3 |
| 2.0.5 | Cached · Upstream SHA-256 matched | Download | 2390d6cc…ab7f6b |
| 2.0.6 | Cached · Upstream SHA-256 matched | Download | c90da5ed…4b4555 |
| 2.0.7 | Cached · Upstream SHA-256 matched | Download | 5147763d…e6dd65 |
| 2.0.8 | Cached · Upstream SHA-256 matched | Download | 4f8bfea4…1d5951 |
| 2.0.9 | Cached · Upstream SHA-256 matched | Download | aeb771e0…c938e5 |
| 2.0.10 | Cached · Upstream SHA-256 matched | Download | 61d02a97…2e2f08 |
| 2.0.11 | Cached · Upstream SHA-256 matched | Download | 3cdeb244…ab83a4 |
| 2.0.12 | Cached · Upstream SHA-256 matched | Download | 6963bfd3…7f35ab |
| 2.0.13 | Cached · Upstream SHA-256 matched | Download | f06332ef…cf50ae |
| 3.0.0-nullsafety.0 | Cached · Upstream SHA-256 matched | Download | 162c5842…28efaa |
| 3.0.0 | Cached · Upstream SHA-256 matched | Download | e739f05a…d4dae9 |
| 3.1.1 | Cached · Upstream SHA-256 matched | Download | 5ec27c75…60b297 |
| 3.1.2 | Cached · Upstream SHA-256 matched | Download | a92e39b2…16ad16 |
| 3.1.3 | Cached · Upstream SHA-256 matched | Download | aacb8a4d…437963 |
| 3.1.4 | Cached · Upstream SHA-256 matched | Download | 96bf6152…b6d5d3 |
| 3.1.5 | Cached · Upstream SHA-256 matched | Download | b64a2605…b20ef9 |
| 3.1.6 | Cached · Upstream SHA-256 matched | Download | ae3e2b5d…aba792 |
| 3.1.7 | Cached · Upstream SHA-256 matched | Download | f9694ffc…f27271 |
| 3.1.8 | Cached · Upstream SHA-256 matched | Download | 781365ca…1ccdad |
| 3.1.9 | Cached · Upstream SHA-256 matched | Download | d1892491…3f359b |
| 3.1.10 | Cached · Upstream SHA-256 matched | Download | d59e0d1e…9aa417 |
| 3.1.11 | Cached · Upstream SHA-256 matched | Download | d65e8c59…28b98f |
| 3.2.0 | Cached · Upstream SHA-256 matched | Download | 29fa72e8…9b7940 |
| 3.2.1 | Cached · Upstream SHA-256 matched | Download | b4e685f9…23cb69 |
| 3.2.2 | Cached · Upstream SHA-256 matched | Download | cdecf5f4…016441 |
| 3.3.0 | Cached · Upstream SHA-256 matched | Download | eb33140e…af87fc |
| 3.3.1 | Cached · Upstream SHA-256 matched | Download | 793964be…d896ee |
| 3.3.2 | Cached · Upstream SHA-256 matched | Download | 80e5141f…c5fecb |
| 3.3.3 | Cached · Upstream SHA-256 matched | Download | 3ad98253…11253d |
| 3.3.4 | Cached · Upstream SHA-256 matched | Download | 76d919e0…095373 |
| 3.3.5 | Cached · Upstream SHA-256 matched | Download | ed7cc591…81c212 |
| 3.3.6 | Cached · Upstream SHA-256 matched | Download | d6347d54…51f85d |
| 3.3.7 | Cached · Upstream SHA-256 matched | Download | 0c8368c9…77ce3a |
| 3.3.8 | Cached · Upstream SHA-256 matched | Download | 49b1fad3…d6b28e |
| 3.3.9 | Cached · Upstream SHA-256 matched | Download | e0902a06…0cf01e |
| 3.4.0 | Cached · Upstream SHA-256 matched | Download | 1227dc3e…7ead3c |
| 3.4.1 | Cached · Upstream SHA-256 matched | Download | e44ad5bb…7b57ae |
| 3.4.2 | Cached · Upstream SHA-256 matched | Download | 20071638…9a8765 |
| 3.4.3 | Cached · Upstream SHA-256 matched | Download | d4dc1170…a38c2f |
| 3.4.4 | Cached · Upstream SHA-256 matched | Download | 06a96f12…db99d4 |
| 3.4.5 | Cached · Upstream SHA-256 matched | Download | ca12e6c9…3c69cb |
| 3.4.6 | Cached · Upstream SHA-256 matched | Download | 7e0d5206…987b03 |
| 3.4.7 | Cached · Upstream SHA-256 matched | Download | 27b24c1b…d48de1 |
| 3.4.8 | Cached · Upstream SHA-256 matched | Download | 0da817ea…c6dd73 |
| 3.4.9 | Cached · Upstream SHA-256 matched | Download | 7b875fd4…82596b |
| 3.4.10 | Cached · Upstream SHA-256 matched | Download | 22600aa1…9a432d |
| 3.5.0 | Cached · Upstream SHA-256 matched | Download | 0763b45f…d0f373 |
| 3.5.1 | Cached · Upstream SHA-256 matched | Download | ecf42738…e9b265 |
| 3.6.0 | Cached · Upstream SHA-256 matched | Download | 6bd38d33…ef5b4b |
| 3.6.1 | Cached · Upstream SHA-256 matched | Download | cb6a278e…0a1f7d |
| 4.0.0 | Cached · Upstream SHA-256 matched | Download | 477ffbd1…10bab8 |
| 4.0.1 | Cached · Upstream SHA-256 matched | Download | 08064924…9d1cb8 |
| 4.0.2 | Cached · Upstream SHA-256 matched | Download | 6199c74e…420b5a |
| 4.0.3 | Cached · Upstream SHA-256 matched | Download | 528579c7…49b967 |
| 4.0.4 | Cached · Upstream SHA-256 matched | Download | 0c64e928…4c9742 |
| 4.0.5 | Cached · Upstream SHA-256 matched | Download | 7dcbd0f8…481a12 |
| 4.0.6 | Cached · Upstream SHA-256 matched | Download | a7f37ff0…caf813 |
| 4.0.7 | Cached · Upstream SHA-256 matched | Download | 2fde1607…7fdbbd |
| 4.0.8 | Cached · Upstream SHA-256 matched | Download | 16a4a461…d34e64 |
| 4.0.9 | Cached · Upstream SHA-256 matched | Download | a96e8b39…8959ff |
| 4.1.0 | Cached · Upstream SHA-256 matched | Download | be169cf6…7b39f2 |
| 4.2.0 | Cached · Upstream SHA-256 matched | Download | ace891da…2c9f19 |
| 4.3.0 | Cached · Upstream SHA-256 matched | Download | 6c5bcd98…d517b4 |
| 4.4.0 | Cached · Upstream SHA-256 matched | Download | 3aa20c6b…57d279 |
| 4.5.0 | Cached · Upstream SHA-256 matched | Download | 58c8d17d…f9acb4 |
| 4.5.1 | Cached · Upstream SHA-256 matched | Download | f7731531…1aea11 |
| 4.5.2 | Cached · Upstream SHA-256 matched | Download | 0d58d1fa…bfbefe |
Dependencies
crypto "^3.0.0"
path "^1.8.0"