Viewing version 3.1.3. Open the latest package page.

archive

3.1.3

Provides encoders and decoders for various archive and compression formats such as zip, tar, bzip2, gzip, and zlib.

Download archive

Readme

archive

Build Status

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 const constructors to ZLibDecoder, ZLibEncoder, and ZLibDecoderBase.

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 part and part of in 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 archive to >=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: File was renamed to ArchiveFile, to avoid conflicts with dart:io.

1.0.12 - February 04, 2014

  • Added BZip2 decoder.

1.0.11 - February 02, 2014

  • Changed InputStream to work with typed_data instead of List<int>, should reduce memory and increase performance.

1.0.10 - January 19, 2013

  • Renamed InputBuffer and OutputBuffer to InputStream and OutputStream, respectively.

  • Added readBits method to InputStream.

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

VersionPublishedArchiveSHA-256
1.0.0Cached · Upstream SHA-256 matchedDownload6f3a35b8…3bdee8
1.0.2Cached · Upstream SHA-256 matchedDownload0e14920d…578ff6
1.0.3Cached · Upstream SHA-256 matchedDownload5b96be21…1013d4
1.0.4Cached · Upstream SHA-256 matchedDownload1e6da3aa…01ebcb
1.0.5Cached · Upstream SHA-256 matchedDownloadb166e276…e14845
1.0.6Cached · Upstream SHA-256 matchedDownload8f9dd3bd…b364f6
1.0.7Cached · Upstream SHA-256 matchedDownloadd39b52d9…424369
1.0.8Cached · Upstream SHA-256 matchedDownloadda45813c…46e292
1.0.9Cached · Upstream SHA-256 matchedDownload804d2125…bfb426
1.0.10Cached · Upstream SHA-256 matchedDownload28ab87e4…c8988f
1.0.11Cached · Upstream SHA-256 matchedDownload79dd20a7…e1e3ec
1.0.12Cached · Upstream SHA-256 matchedDownload9d779125…1aa177
1.0.13Cached · Upstream SHA-256 matchedDownload134cacc8…6cc586
1.0.14Cached · Upstream SHA-256 matchedDownload81789108…bd4027
1.0.15Cached · Upstream SHA-256 matchedDownloade27ef300…b6fb3b
1.0.16Cached · Upstream SHA-256 matchedDownload3c44950c…f7fc8f
1.0.17Cached · Upstream SHA-256 matchedDownloadb28b759b…075424
1.0.18Cached · Upstream SHA-256 matchedDownloade975718d…6cd398
1.0.19Cached · Upstream SHA-256 matchedDownloadd5cb2450…759fbe
1.0.20Cached · Upstream SHA-256 matchedDownload0c9527a8…240347
1.0.21Cached · Upstream SHA-256 matchedDownload408e05a5…bfff0c
1.0.22Cached · Upstream SHA-256 matchedDownloadcef274b8…352cd1
1.0.23Cached · Upstream SHA-256 matchedDownload2630b5be…d8fd17
1.0.24Cached · Upstream SHA-256 matchedDownload17fbda4b…1be44f
1.0.25Cached · Upstream SHA-256 matchedDownload104d93f4…625849
1.0.26Cached · Upstream SHA-256 matchedDownload73c0d27e…d2b0dc
1.0.27Cached · Upstream SHA-256 matchedDownloadc0565425…fc3206
1.0.28Cached · Upstream SHA-256 matchedDownload0b3bc7ee…b0e0e8
1.0.29Cached · Upstream SHA-256 matchedDownload60a380c7…285ca9
1.0.31Cached · Upstream SHA-256 matchedDownload8e65d0c4…026ff0
1.0.32Cached · Upstream SHA-256 matchedDownloadc7398c92…fe717f
1.0.33Cached · Upstream SHA-256 matchedDownload3203b92e…a5b591
2.0.0Cached · Upstream SHA-256 matchedDownload58e81db2…0625c9
2.0.1Cached · Upstream SHA-256 matchedDownloadcfc92325…dd4ee0
2.0.2Cached · Upstream SHA-256 matchedDownload9644d0f0…f26c6f
2.0.3Cached · Upstream SHA-256 matchedDownload4754fb4b…af7318
2.0.4Cached · Upstream SHA-256 matchedDownload6d9a421f…0a1df3
2.0.5Cached · Upstream SHA-256 matchedDownload2390d6cc…ab7f6b
2.0.6Cached · Upstream SHA-256 matchedDownloadc90da5ed…4b4555
2.0.7Cached · Upstream SHA-256 matchedDownload5147763d…e6dd65
2.0.8Cached · Upstream SHA-256 matchedDownload4f8bfea4…1d5951
2.0.9Cached · Upstream SHA-256 matchedDownloadaeb771e0…c938e5
2.0.10Cached · Upstream SHA-256 matchedDownload61d02a97…2e2f08
2.0.11Cached · Upstream SHA-256 matchedDownload3cdeb244…ab83a4
2.0.12Cached · Upstream SHA-256 matchedDownload6963bfd3…7f35ab
2.0.13Cached · Upstream SHA-256 matchedDownloadf06332ef…cf50ae
3.0.0-nullsafety.0Cached · Upstream SHA-256 matchedDownload162c5842…28efaa
3.0.0Cached · Upstream SHA-256 matchedDownloade739f05a…d4dae9
3.1.1Cached · Upstream SHA-256 matchedDownload5ec27c75…60b297
3.1.2Cached · Upstream SHA-256 matchedDownloada92e39b2…16ad16
3.1.3Cached · Upstream SHA-256 matchedDownloadaacb8a4d…437963
3.1.4Cached · Upstream SHA-256 matchedDownload96bf6152…b6d5d3
3.1.5Cached · Upstream SHA-256 matchedDownloadb64a2605…b20ef9
3.1.6Cached · Upstream SHA-256 matchedDownloadae3e2b5d…aba792
3.1.7Cached · Upstream SHA-256 matchedDownloadf9694ffc…f27271
3.1.8Cached · Upstream SHA-256 matchedDownload781365ca…1ccdad
3.1.9Cached · Upstream SHA-256 matchedDownloadd1892491…3f359b
3.1.10Cached · Upstream SHA-256 matchedDownloadd59e0d1e…9aa417
3.1.11Cached · Upstream SHA-256 matchedDownloadd65e8c59…28b98f
3.2.0Cached · Upstream SHA-256 matchedDownload29fa72e8…9b7940
3.2.1Cached · Upstream SHA-256 matchedDownloadb4e685f9…23cb69
3.2.2Cached · Upstream SHA-256 matchedDownloadcdecf5f4…016441
3.3.0Cached · Upstream SHA-256 matchedDownloadeb33140e…af87fc
3.3.1Cached · Upstream SHA-256 matchedDownload793964be…d896ee
3.3.2Cached · Upstream SHA-256 matchedDownload80e5141f…c5fecb
3.3.3Cached · Upstream SHA-256 matchedDownload3ad98253…11253d
3.3.4Cached · Upstream SHA-256 matchedDownload76d919e0…095373
3.3.5Cached · Upstream SHA-256 matchedDownloaded7cc591…81c212
3.3.6Cached · Upstream SHA-256 matchedDownloadd6347d54…51f85d
3.3.7Cached · Upstream SHA-256 matchedDownload0c8368c9…77ce3a
3.3.8Cached · Upstream SHA-256 matchedDownload49b1fad3…d6b28e
3.3.9Cached · Upstream SHA-256 matchedDownloade0902a06…0cf01e
3.4.0Cached · Upstream SHA-256 matchedDownload1227dc3e…7ead3c
3.4.1Cached · Upstream SHA-256 matchedDownloade44ad5bb…7b57ae
3.4.2Cached · Upstream SHA-256 matchedDownload20071638…9a8765
3.4.3Cached · Upstream SHA-256 matchedDownloadd4dc1170…a38c2f
3.4.4Cached · Upstream SHA-256 matchedDownload06a96f12…db99d4
3.4.5Cached · Upstream SHA-256 matchedDownloadca12e6c9…3c69cb
3.4.6Cached · Upstream SHA-256 matchedDownload7e0d5206…987b03
3.4.7Cached · Upstream SHA-256 matchedDownload27b24c1b…d48de1
3.4.8Cached · Upstream SHA-256 matchedDownload0da817ea…c6dd73
3.4.9Cached · Upstream SHA-256 matchedDownload7b875fd4…82596b
3.4.10Cached · Upstream SHA-256 matchedDownload22600aa1…9a432d
3.5.0Cached · Upstream SHA-256 matchedDownload0763b45f…d0f373
3.5.1Cached · Upstream SHA-256 matchedDownloadecf42738…e9b265
3.6.0Cached · Upstream SHA-256 matchedDownload6bd38d33…ef5b4b
3.6.1Cached · Upstream SHA-256 matchedDownloadcb6a278e…0a1f7d
4.0.0Cached · Upstream SHA-256 matchedDownload477ffbd1…10bab8
4.0.1Cached · Upstream SHA-256 matchedDownload08064924…9d1cb8
4.0.2Cached · Upstream SHA-256 matchedDownload6199c74e…420b5a
4.0.3Cached · Upstream SHA-256 matchedDownload528579c7…49b967
4.0.4Cached · Upstream SHA-256 matchedDownload0c64e928…4c9742
4.0.5Cached · Upstream SHA-256 matchedDownload7dcbd0f8…481a12
4.0.6Cached · Upstream SHA-256 matchedDownloada7f37ff0…caf813
4.0.7Cached · Upstream SHA-256 matchedDownload2fde1607…7fdbbd
4.0.8Cached · Upstream SHA-256 matchedDownload16a4a461…d34e64
4.0.9Cached · Upstream SHA-256 matchedDownloada96e8b39…8959ff
4.1.0Cached · Upstream SHA-256 matchedDownloadbe169cf6…7b39f2
4.2.0Cached · Upstream SHA-256 matchedDownloadace891da…2c9f19
4.3.0Cached · Upstream SHA-256 matchedDownload6c5bcd98…d517b4
4.4.0Cached · Upstream SHA-256 matchedDownload3aa20c6b…57d279
4.5.0Cached · Upstream SHA-256 matchedDownload58c8d17d…f9acb4
4.5.1Cached · Upstream SHA-256 matchedDownloadf7731531…1aea11
4.5.2Cached · Upstream SHA-256 matchedDownload0d58d1fa…bfbefe

Dependencies

crypto "^3.0.0"

path "^1.8.0"