Skip to content

Commit

Permalink
Merge pull request #20 from hansemannn/refactor-ios
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann authored Mar 6, 2019
2 parents e44e31a + 3afc84a commit bd30196
Show file tree
Hide file tree
Showing 45 changed files with 4,718 additions and 5,385 deletions.
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
@Library('pipeline-library') _

buildModule {
// defaults:
//nodeVersion = '4.7.3' // Must have version set up on Jenkins master before it can be changed
//sdkVersion = '6.0.3.GA'
//androidAPILevel = '23' // if changed, must install on build nodes
sdkVersion = '7.5.1.GA'
}
File renamed without changes.
73 changes: 71 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,71 @@
ti.compression [![Build Status](https://travis-ci.org/appcelerator-modules/ti.compression.svg)](https://travis-ci.org/appcelerator-modules/ti.compression)
=======
# Ti.Compression Module

## Description

Lets you zip and unzip files.

## Getting Started

View the [Using Titanium Modules](http://docs.appcelerator.com/platform/latest/#!/guide/Using_Titanium_Modules) document for instructions on getting
started with using this module in your application.

## Accessing the Ti.Compression Module

To access this module from JavaScript, you would do the following:

```js
var Compression = require('ti.compression');
```

## Functions

### string zip(string archiveFile, string[] fileArray)

Compresses all of the files you pass in "fileArray" to the specified "archiveFile".

#### Arguments

* string archiveFile: The path to the archive file to create
* string[] fileArray: An array of files to compress

Returns the string "success" if the operation succeeded, or an error message if something went wrong.

### string unzip(string destinationFolder, string archiveFile, bool overwrite)

Extracts the files in the archive file into the destination folder, optionally overriding existing files.

#### Arguments

* string destinationFolder: The destination folder for the extracted files
* string archiveFile: The path to an existing compressed archive file
* bool overwrite: Indicates if existing files should be overwritten

Returns the string "success" if the operation succeeded, or an error message if something went wrong.

## Usage

To create an archive:

```js
var result = Ti.Compression.zip('test.zip', [ 'a.dat', 'b.dat', 'c.dat' ];
```
To extract an archive:
```js
var result = Ti.Compression.unzip(Ti.Filesystem.applicationDataDirectory + 'data', 'test.zip', true);
```
See example for more details.
## Author
Clint Tredway
## Feedback and Support
Please direct all questions, feedback, and concerns to [[email protected]](mailto:[email protected]?subject=iOS%20Compression%20Module).
## License
Copyright(c) 2010-present by Axway Appcelerator. All Rights Reserved. Please see the LICENSE file included in the distribution for further details.
8 changes: 0 additions & 8 deletions android/build.properties.example

This file was deleted.

13 changes: 0 additions & 13 deletions android/documentation/changelog.md

This file was deleted.

74 changes: 0 additions & 74 deletions android/documentation/index.md

This file was deleted.

1 change: 0 additions & 1 deletion android/hooks/README

This file was deleted.

35 changes: 0 additions & 35 deletions android/hooks/add.py

This file was deleted.

19 changes: 0 additions & 19 deletions android/hooks/install.py

This file was deleted.

34 changes: 0 additions & 34 deletions android/hooks/remove.py

This file was deleted.

18 changes: 0 additions & 18 deletions android/hooks/uninstall.py

This file was deleted.

2 changes: 1 addition & 1 deletion android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ architectures: arm64-v8a armeabi-v7a x86
description: Lets you zip and unzip files.
author: Dawson Toth
license: Apache License, Version 2.0
copyright: Copyright (c) 2010-2016 by Appcelerator, Inc.
copyright: Copyright (c) 2010-present by Appcelerator, Inc.

# these should not be edited
name: compression
Expand Down
Loading

0 comments on commit bd30196

Please sign in to comment.