Commit Graph

538 Commits

Author SHA1 Message Date
junweifu
9b322dec67 Don't crash on low memory devices
It will be OOM when running file-transfer tests on baseline Android Memory class
which is 16M (It happens to be the java heap limit of those devices).

 This closes #166
2016-11-07 11:05:28 -08:00
Alexander Sorokin
addf885c74 CB-12100 (ios) Fixed test plugin install at platform add on cordova@6.3.1 2016-11-01 19:15:32 +03:00
Alexander Sorokin
ac5233d349 CB-11959 Fixed the jshint issues 2016-10-31 11:08:34 +03:00
Alexander Sorokin
ebf280b531 CB-11959 Increased the array length for ios and winstore even more 2016-10-05 18:08:29 +03:00
Alexander Sorokin
709fd057f2 CB-11959 Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server 2016-10-05 15:26:56 +03:00
Shazron Abdullah
ed88cfc118 CB-11917 - Remove pull request template checklist item: "iCLA has been submitted…"
This closes #158
2016-10-04 21:38:03 -07:00
Alexander Sorokin
e68f766639 CB-11926 Tests can use local server 2016-10-04 22:40:39 +03:00
Steve Gill
1cfc66ce0d CB-11832 Incremented plugin version. 2016-09-09 16:08:04 -07:00
Steve Gill
60b2cd324e CB-11832 Updated version and RELEASENOTES.md for release 1.6.0 2016-09-08 23:38:54 -07:00
Vladimir Kotikov
4bda9f546b CB-11795 Add 'protective' entry to cordovaDependencies
The entry is required to protect end-users from fetching edge versions of the plugin by incompatible version of cordova. This also assumes that we will not introduce any regressions in compatibility w/ cordova in minor and patch releases. On every major release we will need to add similar entry with _next_ major version.

 This closes #157
2016-09-08 11:51:42 +03:00
Adam Nemitoff
2b6b6d9333 CB-9022 Fix exception thrown by call to remapApi on main thread
When reamapApi was being called for device file it was performing IO on
the WebCore thread and throwing an IllegalState exception.  This seems
to have only been a problem when local URL corresponded to a video file.

Moved calls to remapApi for device URLs within new thread context so
that IO is performed on background thread.

This is the same fix as 3ccf9f8 but for `download` operation

This closes #124
2016-08-23 11:07:50 +03:00
Simon MacDonald
13d5cfe4dc Plugin uses Android Log class and not Cordova LOG class 2016-08-22 16:27:02 -04:00
Vladimir Kotikov
3ccf9f8462 CB-9022 Resolve source URI on background thread
We should call remapUri on background thread otherwise it
throws IllegalStateException when trying to remap  'cdvfile://localhost/content/...' URIs via ContentFilesystem
2016-08-18 16:34:18 +03:00
Ben Marshall
9dc41bd4e9 CB-11316 windows: Added content-type for files
- added Content-Type header for each file in the multipart upload

 This closes #149
2016-08-17 17:24:00 +03:00
Vladimir Kotikov
41fa11b50f Close invalid PRs
This closes #153
2016-08-16 14:56:00 +03:00
Vladimir Kotikov
855def11c3 CB-11497 Use cordova-vm for testing 304 errors 2016-07-07 14:39:30 +03:00
Vladimir Kotikov
134dde5f90 Add badges for paramedic builds on Jenkins 2016-06-10 11:59:13 +03:00
Conrado Costa
7f76831b72 documentation with a wrong log message in fileTransfer.download function
This closes #148
2016-06-06 10:31:08 -07:00
Mikejo5001
82c5af9b5d added link to sample 2016-05-24 22:08:23 +03:00
Nikhil Khandelwal
c475060acb Add pull request template. 2016-05-23 13:53:59 -07:00
daserge
9347606dd3 CB-10974 Cordova file transfer Content-Length header problem
Fixed iOS logic to not to include Content-Length when chunkedMode=true
Fixed Android logic preventing chunkedMode to be enabled for http uploads
Added tests for chunkedMode
Documented chunkedMode not supported on Windows
Documented Uploading of an empty file is not supported for chunkedMode=true and multipart=false for iOS, pended the corresponding test
2016-05-17 12:24:27 +03:00
Nikhil Khandelwal
6ad92c92ab Add fenced code blocks to help code formatting 2016-05-09 10:22:48 -07:00
Steve Gill
07d419d5b4 CB-11165 removed peer dependency 2016-04-27 16:18:52 -07:00
Mikejo5001
eb8052711f CB-11003: Adding sample section to documentation.
This closes #136
2016-04-25 17:05:24 -07:00
Dmitry Blotsky
128c388d57 CB-10996 Adding front matter to README.md 2016-04-22 19:35:50 -07:00
Steve Gill
fd7b28f193 CB-11091 Incremented plugin version. 2016-04-15 13:45:27 -07:00
Steve Gill
a4031db700 Updated version and RELEASENOTES.md for release 1.5.1 2016-04-15 13:08:27 -07:00
Richard Knoll
b66cb2ec6a CB-10536: Removing flaky test assertions about abort callback latency
This closes #137
2016-04-05 12:05:55 -07:00
Sarangan Rajamanickam
c48fc02d7e Removing the expectation in spec.34 for the transfer method to be called. 2016-03-30 13:15:47 -07:00
daserge
2b8c1a6101 CB-10978 Fix file-transfer.tests JSHint issues 2016-03-29 08:57:57 +03:00
Sarangan Rajamanickam
ca6593703e CB-10782: Occasional failure in file transfer tests causing mobilespec crash
This closes #132
2016-03-28 15:18:48 -07:00
Raghav Katyal
584754869b CB-10771: Fixing failure when empty string passed as a value for option parameter in upload function 2016-03-28 15:08:58 -07:00
Raghav Katyal
3d2d312484 Minor changes to Readme 2016-03-01 14:46:52 -08:00
daserge
418e904a98 CB-10636 Add JSHint for plugins 2016-02-29 11:59:58 +03:00
t1st3
afbeab405f chore: edit package.json license to match SPDX id
See [NPM package.json spec for licenses](https://docs.npmjs.com/files/package.json#license) and [SPDX license IDs](https://spdx.org/licenses/)

X-ref: https://github.com/apache/cordova-plugin-device/pull/48
2016-02-07 14:35:55 +01:00
Steve Gill
6ae9af436c CB-10368 Incremented plugin version. 2016-01-15 16:58:32 -08:00
Steve Gill
3540af439e CB-10368 Updated version and RELEASENOTES.md for release 1.5.0 2016-01-15 16:35:05 -08:00
daserge
333dd7ec1a CB-10208 Fix file-transfer multipart form data upload format on Windows 2015-12-17 12:57:25 +03:00
daserge
182b0c5ebe CB-9837 Add data URI support to file-transfer upload on iOS
Adds iOS and Windows implementation; mention in the docs
Adds corresponding tests
Increases spec.35 timeout for Windows Phone 8.1 case as it contains 2 download operations
2015-12-14 16:58:18 +03:00
daserge
a9470ff1cc CB-9600 FileUploadOptions params not posted on iOS
Documents supported params key/value type
2015-12-07 12:53:03 +03:00
daserge
866349eb84 CB-9840 Fallback file-transfer uploadResponse encoding to latin1 in case not encoded with UTF-8 on iOS
Adds correspoding tests for download and upload response

Github: close #71
2015-12-04 15:04:40 +03:00
FF Xu
e14b7e5391 CB-9840 Fallback file-transfer upload/download response encoding to latin1 in case not encoded with UTF-8 on iOS 2015-12-04 13:26:33 +03:00
daserge
a762f3fe58 CB-8641 (Windows Phone 8.1) Some file-transfer plugin tests occasionally fail in mobilespec
Increases timeout for Windows case for spec.10, spec.21 (abort right away), spec.15 (unknown host)
Documents the latency quirk caused by BackgroundDownloader usage
[Windows] Mark an upload aborted to be cancelled right away as it did not have enough time to be created when abort was called in filetransfer.spec.21 (so that unexpected httpWin fired)
Extended test buffer to avoid unexpectedCallbacks.httpWin on Windows & local test server (filetransfer.spec.21)
2015-12-04 09:57:37 +03:00
Dmitry Blotsky
0913325be5 Adding linting and fixing linter warnings. Reducing timeouts to 7 seconds. 2015-12-02 19:20:44 -08:00
Steve Gill
b11415da28 CB-10100 updated file dependency to not grab new majors 2015-11-30 18:10:47 -08:00
Steve Gill
079f70bf37 CB-10035 Incremented plugin version. 2015-11-30 17:57:07 -08:00
daserge
73223a7d45 CB-7006 Empty file is created on file transfer if server response is 304
Adds a corresponding test.
Fixes the Windows proxy to not to delete the existing file in case of a download error (including 304) - a temporary file is deleted instead.
2015-11-30 19:27:25 +03:00
daserge
416be7633b CB-10098 filetransfer.spec.33 is faulty 2015-11-30 14:43:25 +03:00
daserge
fe81475829 CB-9969 Filetransfer upload error deletes original file
Adds back the iOS check
2015-11-30 11:03:10 +03:00
daserge
6e960b2ffd CB-9969 Filetransfer upload error deletes original file
Reverts iOS changes
2015-11-27 10:53:34 +03:00