MartinDeHaan/cordova-plugin-zip-hotfix


Copy of https://github.com/MobileChromeApps/cordova-plugin-zip/ with fixed directory structure for android

License: Other

Language: C


cordova-plugin-zip

A Cordova plugin to unzip files in Android and iOS.

Installation

cordova plugin add cordova-plugin-zip

Usage

zip.unzip(<source zip>, <destination dir>, <callback>, [<progressCallback>]);

Both source and destination arguments can be URLs obtained from the HTML File interface or absolute paths to files on the device.

The callback argument will be executed when the unzip is complete, or when an error occurs. It will be called with a single argument, which will be 0 on success, or -1 on failure.

The progressCallback argument is optional and will be executed whenever a new ZipEntry has been extracted. E.g.:

var progressCallback = function(progressEvent) {
    $( "#progressbar" ).progressbar("value", Math.round((progressEvent.loaded / progressEvent.total) * 100));
};

The values loaded and total are the number of compressed bytes processed and total. Total is the file size of the zip file.

Release Notes

3.1.0 (Feb 23, 2016)

  • Updated SSZipArchive (ios lib) to 1.1

3.0.0 (May 1, 2015)

  • Updated SSZipArchive (ios lib) to 0.2.1
  • Update file plugin dependency to use npm version (cordova-plugin-file)

2.1.0 (May 1, 2014)

  • Added progress events
  • Fix iOS path handling when given file: URLs as src/target

Project Statistics

Sourcerank 4
Repository Size 166 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 11
Tags 6
Created
Last updated
Last pushed

Top Contributors See all

agrieve Braden Shepherdson Michal Mocny Martin de Haan Andreas Dangel Malte Legenhausen Tim Lancina Ian Clelland schmitzdenis Felix Schoeler Eliak

Recent Tags See all

v3.1.0 February 23, 2016
v3.0.0 May 14, 2015
v2.1.1 April 29, 2015
v2.1.0 May 01, 2014
v2.0.0 February 24, 2014
v1.0.0 February 19, 2014

Something wrong with this page? Make a suggestion

Last synced: 2016-07-13 09:57:28 UTC

Login to resync this repository