-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from tidev/androidLevel
feat(android): compression level
- Loading branch information
Showing
14 changed files
with
273 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,15 +56,34 @@ To extract an archive: | |
var result = Ti.Compression.unzip(Ti.Filesystem.applicationDataDirectory + 'data', 'test.zip', true); | ||
``` | ||
See example for more details. | ||
## Author | ||
## zip Parameter | ||
Clint Tredway | ||
Android: | ||
* filename:String, files:Array, options: Object [compression: Compression.BEST_SPEED | Compression.DEFAULT_COMPRESSION | Compression.NO_COMPRESSION] | ||
iOS: | ||
* filename:String, files:Array | ||
## Create demo files | ||
Create demo files | ||
## Feedback and Support | ||
good compression (no content) | ||
```bash | ||
truncate -s 5M file1.dat | ||
``` | ||
Bad compression (random content) | ||
```bash | ||
dd if=/dev/urandom of=file1 bs=5M count=1 | ||
``` | ||
Please direct all questions, feedback, and concerns to [[email protected]](mailto:[email protected]?subject=iOS%20Compression%20Module). | ||
## Author | ||
Clint Tredway | ||
## License | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
dependencies { | ||
// Add the module's library dependencies here. | ||
// See: https://developer.android.com/studio/build/dependencies | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.