You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/12/08 00:56:54 UTC

[01/11] cordova-plugin-file-transfer git commit: CB-11832 Incremented plugin version.

Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/1.6.x 60b2cd324 -> aee45754a


CB-11832 Incremented plugin version.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/1cfc66ce
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/1cfc66ce
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/1cfc66ce

Branch: refs/heads/1.6.x
Commit: 1cfc66ce0dd0f4c96d180b4d9c904510a44c9fb6
Parents: 60b2cd3
Author: Steve Gill <st...@gmail.com>
Authored: Fri Sep 9 16:08:04 2016 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Sep 9 16:08:04 2016 -0700

----------------------------------------------------------------------
 package.json     | 2 +-
 plugin.xml       | 2 +-
 tests/plugin.xml | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/1cfc66ce/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index efe9f6d..6c24249 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-file-transfer",
-  "version": "1.6.0",
+  "version": "1.6.1-dev",
   "description": "Cordova File Transfer Plugin",
   "cordova": {
     "id": "cordova-plugin-file-transfer",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/1cfc66ce/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 9469c45..6b2323c 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -21,7 +21,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="cordova-plugin-file-transfer"
-    version="1.6.0">
+    version="1.6.1-dev">
     <name>File Transfer</name>
     <description>Cordova File Transfer Plugin</description>
     <license>Apache 2.0</license>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/1cfc66ce/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index 6a1bfb6..94ad77c 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -21,7 +21,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="cordova-plugin-file-transfer-tests"
-    version="1.6.0">
+    version="1.6.1-dev">
     <name>Cordova File Transfer Plugin Tests</name>
     <license>Apache 2.0</license>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[07/11] cordova-plugin-file-transfer git commit: CB-12100 (ios) Fixed test plugin install at platform add on cordova@6.3.1

Posted by sh...@apache.org.
CB-12100 (ios) Fixed test plugin install at platform add on cordova@6.3.1


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/addf885c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/addf885c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/addf885c

Branch: refs/heads/1.6.x
Commit: addf885c7474422d4d5bfed62544f7f0425c23c4
Parents: ac5233d
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Tue Nov 1 19:15:32 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Tue Nov 1 19:15:32 2016 +0300

----------------------------------------------------------------------
 tests/hooks/after_prepare.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/addf885c/tests/hooks/after_prepare.js
----------------------------------------------------------------------
diff --git a/tests/hooks/after_prepare.js b/tests/hooks/after_prepare.js
index e6f01e7..6101c62 100644
--- a/tests/hooks/after_prepare.js
+++ b/tests/hooks/after_prepare.js
@@ -29,6 +29,7 @@ module.exports = function(context) {
         // get the file transfer server address from the specified variables
         var fileTransferServerAddress = getFileTransferServerAddress(context) || getDefaultFileTransferServerAddress(context);
         console.log('Tests will use the following file transfer server address: ' + fileTransferServerAddress);
+        console.log('If you\'re using cordova@6.3.1 and the above address is wrong at "platform add", don\'t worry, it\'ll fix itself on "cordova run" or "cordova prepare".');
 
         // pass it to the tests
         writeFileTransferOptions(fileTransferServerAddress, context);
@@ -51,7 +52,11 @@ module.exports = function(context) {
         var platformJsonFile = path.join(context.opts.projectRoot, 'platforms', context.opts.platforms[0], context.opts.platforms[0] + '.json');
         var platformJson = JSON.parse(fs.readFileSync(platformJsonFile, 'utf8'));
 
-        return platformJson.installed_plugins['cordova-plugin-file-transfer-tests'].FILETRANSFER_SERVER_ADDRESS;
+        if (platformJson && platformJson.installed_plugins && platformJson.installed_plugins['cordova-plugin-file-transfer-tests'] && platformJson.installed_plugins['cordova-plugin-file-transfer-tests'].FILETRANSFER_SERVER_ADDRESS) {
+            return platformJson.installed_plugins['cordova-plugin-file-transfer-tests'].FILETRANSFER_SERVER_ADDRESS;
+        } else {
+            return null;
+        }
     }
 
     function writeFileTransferOptions(address, context) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[04/11] cordova-plugin-file-transfer git commit: CB-11959 Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server

Posted by sh...@apache.org.
CB-11959 Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/709fd057
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/709fd057
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/709fd057

Branch: refs/heads/1.6.x
Commit: 709fd057f2f9b29c8aafd696c96f02b9f043368a
Parents: ed88cfc
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Wed Oct 5 15:26:56 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Wed Oct 5 15:26:56 2016 +0300

----------------------------------------------------------------------
 tests/tests.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/709fd057/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 43fc3cd..f4fd636 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -1075,7 +1075,10 @@ exports.defineAutoTests = function () {
                         }, GRACE_TIME_DELTA);
                     };
 
-                    writeFile(specContext.root, specContext.fileName, new Array(200000).join("aborttest!"), fileWin, done);
+                    // windows store and ios are too fast, win is called before we have a chance to abort
+                    // so let's get them busy - while not providing an extra load to the slow Android emulators
+                    var arrayLength = (isWindows || isIos) ? 1000000 : 200000;
+                    writeFile(specContext.root, specContext.fileName, new Array(arrayLength).join("aborttest!"), fileWin, done);
                 }, UPLOAD_TIMEOUT);
 
                 it("filetransfer.spec.22 should get http status and body on failure", function (done) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[10/11] cordova-plugin-file-transfer git commit: CB-12154 file-transfer progressEvent.total = -1 on iOS

Posted by sh...@apache.org.
CB-12154 file-transfer progressEvent.total = -1 on iOS

Makes chunkedMode=true uploads to contain Content-Length to make progress computable


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/5a711e87
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/5a711e87
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/5a711e87

Branch: refs/heads/1.6.x
Commit: 5a711e8722804d4d427fa5e580c9e6767c8a6cee
Parents: 6554899
Author: daserge <v-...@microsoft.com>
Authored: Wed Nov 23 18:57:11 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Tue Dec 6 17:06:00 2016 +0300

----------------------------------------------------------------------
 src/ios/CDVFileTransfer.m | 5 +++--
 tests/tests.js            | 4 +++-
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/5a711e87/src/ios/CDVFileTransfer.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVFileTransfer.m b/src/ios/CDVFileTransfer.m
index 6024901..9b01049 100644
--- a/src/ios/CDVFileTransfer.m
+++ b/src/ios/CDVFileTransfer.m
@@ -229,6 +229,8 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
         totalPayloadLength += [postBodyBeforeFile length] + [postBodyAfterFile length];
     }
 
+    [req setValue:[[NSNumber numberWithLongLong:totalPayloadLength] stringValue] forHTTPHeaderField:@"Content-Length"];
+
     if (chunkedMode) {
         CFReadStreamRef readStream = NULL;
         CFWriteStreamRef writeStream = NULL;
@@ -266,7 +268,6 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
             CFRelease(writeStream);
         }];
     } else {
-        [req setValue:[[NSNumber numberWithLongLong:totalPayloadLength] stringValue] forHTTPHeaderField:@"Content-Length"];
         if (multipartFormUpload) {
             [postBodyBeforeFile appendData:fileData];
             [postBodyBeforeFile appendData:postBodyAfterFile];
@@ -814,7 +815,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
     if (self.direction == CDV_TRANSFER_UPLOAD) {
         NSMutableDictionary* uploadProgress = [NSMutableDictionary dictionaryWithCapacity:3];
 
-        [uploadProgress setObject:[NSNumber numberWithBool:(!self.chunkedMode)] forKey:@"lengthComputable"];
+        [uploadProgress setObject:[NSNumber numberWithBool:true] forKey:@"lengthComputable"];
         [uploadProgress setObject:[NSNumber numberWithLongLong:totalBytesWritten] forKey:@"loaded"];
         [uploadProgress setObject:[NSNumber numberWithLongLong:totalBytesExpectedToWrite] forKey:@"total"];
         CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:uploadProgress];

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/5a711e87/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 7149091..e303b45 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -1506,7 +1506,9 @@ exports.defineAutoTests = function () {
                             obj = JSON.parse(uploadResult.response);
 
                             if (specContext.uploadOptions.chunkedMode) {
-                                expect(obj["content-length"]).not.toBeDefined("Expected Content-Length not to be defined");
+                                if (!isIos) {
+                                    expect(obj["content-length"]).not.toBeDefined("Expected Content-Length not to be defined");
+                                }
                                 expect(obj["transfer-encoding"].toLowerCase()).toEqual("chunked");
                             } else {
                                 expect(obj["content-length"]).toBeDefined("Expected Content-Length to be defined");


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[03/11] cordova-plugin-file-transfer git commit: CB-11917 - Remove pull request template checklist item: "iCLA has been submitted…"

Posted by sh...@apache.org.
CB-11917 - Remove pull request template checklist item: "iCLA has been submitted\u2026"

 This closes #158


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/ed88cfc1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/ed88cfc1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/ed88cfc1

Branch: refs/heads/1.6.x
Commit: ed88cfc1181a69e486c547c8cb525e6f72eed402
Parents: e68f766
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Wed Sep 28 01:33:06 2016 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Oct 4 21:38:03 2016 -0700

----------------------------------------------------------------------
 .github/PULL_REQUEST_TEMPLATE.md | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/ed88cfc1/.github/PULL_REQUEST_TEMPLATE.md
----------------------------------------------------------------------
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 4bd6da9..91582f4 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -17,7 +17,6 @@ Thanks!
 
 
 ### Checklist
-- [ ] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and submitted to secretary@apache.org.
 - [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
 - [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
 - [ ] Added automated test coverage as appropriate for this change.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[06/11] cordova-plugin-file-transfer git commit: CB-11959 Fixed the jshint issues

Posted by sh...@apache.org.
CB-11959 Fixed the jshint issues


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/ac5233d3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/ac5233d3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/ac5233d3

Branch: refs/heads/1.6.x
Commit: ac5233d349b3936fe16b55a87d2972b1288a9ebb
Parents: ebf280b
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Oct 31 11:08:34 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Oct 31 11:08:34 2016 +0300

----------------------------------------------------------------------
 tests/tests.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/ac5233d3/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 5bed919..cc88eda 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -19,7 +19,7 @@
 *
 */
 
-/* global exports, cordova, FileTransfer, FileTransferError, FileUploadOptions, LocalFileSystem */
+/* global exports, cordova, FileTransfer, FileTransferError, FileUploadOptions, LocalFileSystem, WinJS */
 
 /* jshint jasmine: true */
 
@@ -53,7 +53,7 @@ exports.defineAutoTests = function () {
 
     // flags
     var isWindows = cordova.platformId === "windows8" || cordova.platformId === "windows";
-    var isWindowsPhone81 = isWindows && WinJS.Utilities.isPhone
+    var isWindowsPhone81 = isWindows && WinJS.Utilities.isPhone;
     var isWP8 = cordova.platformId === "windowsphone";
     var isBrowser = cordova.platformId === "browser";
     var isIE = isBrowser && navigator.userAgent.indexOf("Trident") >= 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[09/11] cordova-plugin-file-transfer git commit: CB-10974 Cordova file transfer Content-Length header problem

Posted by sh...@apache.org.
CB-10974 Cordova file transfer Content-Length header problem

Don't force chunkedMode=true for HTTPS if it was specified as false in the UploadOptions (added a warning about possible OOM for chunkedMode=false+HTTPS case)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/65548990
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/65548990
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/65548990

Branch: refs/heads/1.6.x
Commit: 655489905ab5bd2600d4eaf80e8dd5d27e96b461
Parents: 9b322de
Author: daserge <v-...@microsoft.com>
Authored: Wed Nov 23 14:33:32 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Wed Nov 23 14:33:32 2016 +0300

----------------------------------------------------------------------
 src/android/FileTransfer.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/65548990/src/android/FileTransfer.java
----------------------------------------------------------------------
diff --git a/src/android/FileTransfer.java b/src/android/FileTransfer.java
index f9c2037..de15981 100644
--- a/src/android/FileTransfer.java
+++ b/src/android/FileTransfer.java
@@ -430,7 +430,7 @@ public class FileTransfer extends CordovaPlugin {
                     // setFixedLengthStreamingMode causes and OutOfMemoryException on pre-Froyo devices.
                     // http://code.google.com/p/android/issues/detail?id=3164
                     // It also causes OOM if HTTPS is used, even on newer devices.
-                    boolean useChunkedMode = chunkedMode || (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO || useHttps);
+                    boolean useChunkedMode = chunkedMode || (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO);
                     useChunkedMode = useChunkedMode || (fixedLength == -1);
 
                     if (useChunkedMode) {
@@ -440,6 +440,10 @@ public class FileTransfer extends CordovaPlugin {
                         conn.setRequestProperty("Transfer-Encoding", "chunked");
                     } else {
                         conn.setFixedLengthStreamingMode(fixedLength);
+
+                        if (useHttps) {
+                            LOG.w(LOG_TAG, "setFixedLengthStreamingMode could cause OutOfMemoryException - switch to chunkedMode=true to avoid it if this is an issue.");
+                        }
                     }
 
                     conn.connect();
@@ -565,7 +569,6 @@ public class FileTransfer extends CordovaPlugin {
 
                     if (conn != null) {
                         // Revert back to the proper verifier and socket factories
-                        // Revert back to the proper verifier and socket factories
                         if (trustEveryone && useHttps) {
                             HttpsURLConnection https = (HttpsURLConnection) conn;
                             https.setHostnameVerifier(oldHostnameVerifier);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[05/11] cordova-plugin-file-transfer git commit: CB-11959 Increased the array length for ios and winstore even more

Posted by sh...@apache.org.
CB-11959 Increased the array length for ios and winstore even more


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/ebf280b5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/ebf280b5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/ebf280b5

Branch: refs/heads/1.6.x
Commit: ebf280b53155de7f3167fdfff01478d723fa86c0
Parents: 709fd05
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Wed Oct 5 18:08:29 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Wed Oct 5 18:08:29 2016 +0300

----------------------------------------------------------------------
 tests/tests.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/ebf280b5/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index f4fd636..5bed919 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -53,6 +53,7 @@ exports.defineAutoTests = function () {
 
     // flags
     var isWindows = cordova.platformId === "windows8" || cordova.platformId === "windows";
+    var isWindowsPhone81 = isWindows && WinJS.Utilities.isPhone
     var isWP8 = cordova.platformId === "windowsphone";
     var isBrowser = cordova.platformId === "browser";
     var isIE = isBrowser && navigator.userAgent.indexOf("Trident") >= 0;
@@ -1077,7 +1078,7 @@ exports.defineAutoTests = function () {
 
                     // windows store and ios are too fast, win is called before we have a chance to abort
                     // so let's get them busy - while not providing an extra load to the slow Android emulators
-                    var arrayLength = (isWindows || isIos) ? 1000000 : 200000;
+                    var arrayLength = ((isWindows && !isWindowsPhone81) || isIos) ? 3000000 : 200000;
                     writeFile(specContext.root, specContext.fileName, new Array(arrayLength).join("aborttest!"), fileWin, done);
                 }, UPLOAD_TIMEOUT);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[11/11] cordova-plugin-file-transfer git commit: CB-12224 Updated version and RELEASENOTES.md for release 1.6.1

Posted by sh...@apache.org.
CB-12224 Updated version and RELEASENOTES.md for release 1.6.1


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/aee45754
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/aee45754
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/aee45754

Branch: refs/heads/1.6.x
Commit: aee45754a9d685ac867a9d0fbb843a66d2845551
Parents: 5a711e8
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Dec 7 16:39:45 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Dec 7 16:39:45 2016 -0800

----------------------------------------------------------------------
 RELEASENOTES.md  | 352 ++++++++++++++++++++++++++++++++++++++++++++++++++
 package.json     |   2 +-
 plugin.xml       |   2 +-
 tests/plugin.xml |   2 +-
 4 files changed, 355 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/aee45754/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index f52f405..bb44244 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -20,6 +20,358 @@
 -->
 # Release Notes
                                               
+### 1.6.1 (Dec 07, 2016)
+* [CB-12154](https://issues.apache.org/jira/browse/CB-12154) file-transfer progressEvent.total = -1 on iOS
+* [CB-10974](https://issues.apache.org/jira/browse/CB-10974) Cordova file transfer Content-Length header problem
+* Don't crash on low memory devices
+* [CB-12100](https://issues.apache.org/jira/browse/CB-12100) (ios) Fixed test plugin install at platform add on cordova@6.3.1
+* [CB-11959](https://issues.apache.org/jira/browse/CB-11959) Fixed the jshint issues
+* [CB-11959](https://issues.apache.org/jira/browse/CB-11959) Increased the array length for ios and winstore even more
+* [CB-11959](https://issues.apache.org/jira/browse/CB-11959) Fixed filetransfer.spec.21 test failure on iOS and Windows Store when using local server
+* [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted\u2026"
+* [CB-11926](https://issues.apache.org/jira/browse/CB-11926) Tests can use local server
+* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Incremented plugin version.
+* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Updated version and RELEASENOTES.md for release 1.6.0
+* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
+* [CB-9022](https://issues.apache.org/jira/browse/CB-9022) Fix exception thrown by call to remapApi on main thread
+* Plugin uses Android Log class and not Cordova LOG class
+* [CB-9022](https://issues.apache.org/jira/browse/CB-9022) Resolve source URI on background thread
+* [CB-11316](https://issues.apache.org/jira/browse/CB-11316) windows: Added content-type for files
+* Close invalid PRs
+* [CB-11497](https://issues.apache.org/jira/browse/CB-11497) Use cordova-vm for testing 304 errors
+* Add badges for paramedic builds on Jenkins
+* documentation with a wrong log message in fileTransfer.download function
+* added link to sample
+* Add pull request template.
+* [CB-10974](https://issues.apache.org/jira/browse/CB-10974) Cordova file transfer Content-Length header problem
+* Add fenced code blocks to help code formatting
+* [CB-11165](https://issues.apache.org/jira/browse/CB-11165) removed peer dependency
+* [CB-11003](https://issues.apache.org/jira/browse/CB-11003) Adding sample section to documentation.
+* [CB-10996](https://issues.apache.org/jira/browse/CB-10996) Adding front matter to README.md
+* [CB-11091](https://issues.apache.org/jira/browse/CB-11091) Incremented plugin version.
+*  Updated version and RELEASENOTES.md for release 1.5.1
+* [CB-10536](https://issues.apache.org/jira/browse/CB-10536) Removing flaky test assertions about abort callback latency
+* Removing the expectation in spec.34 for the transfer method to be called.
+* [CB-10978](https://issues.apache.org/jira/browse/CB-10978) Fix file-transfer.tests JSHint issues
+* [CB-10782](https://issues.apache.org/jira/browse/CB-10782) Occasional failure in file transfer tests causing mobilespec crash
+* [CB-10771](https://issues.apache.org/jira/browse/CB-10771) Fixing failure when empty string passed as a value for option parameter in upload function
+* Minor changes to Readme
+* [CB-10636](https://issues.apache.org/jira/browse/CB-10636) Add JSHint for plugins
+* chore: edit package.json license to match SPDX id
+* [CB-10368](https://issues.apache.org/jira/browse/CB-10368) Incremented plugin version.
+* [CB-10368](https://issues.apache.org/jira/browse/CB-10368) Updated version and RELEASENOTES.md for release 1.5.0
+* [CB-10208](https://issues.apache.org/jira/browse/CB-10208) Fix file-transfer multipart form data upload format on Windows
+* [CB-9837](https://issues.apache.org/jira/browse/CB-9837) Add data URI support to file-transfer upload on iOS
+* [CB-9600](https://issues.apache.org/jira/browse/CB-9600) FileUploadOptions params not posted on iOS
+* [CB-9840](https://issues.apache.org/jira/browse/CB-9840) Fallback file-transfer uploadResponse encoding to latin1 in case not encoded with UTF-8 on iOS
+* [CB-9840](https://issues.apache.org/jira/browse/CB-9840) Fallback file-transfer upload/download response encoding to latin1 in case not encoded with UTF-8 on iOS
+* [CB-8641](https://issues.apache.org/jira/browse/CB-8641) (Windows Phone 8.1) Some file-transfer plugin tests occasionally fail in mobilespec
+* Adding linting and fixing linter warnings. Reducing timeouts to 7 seconds.
+* [CB-10100](https://issues.apache.org/jira/browse/CB-10100) updated file dependency to not grab new majors
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Incremented plugin version.
+* [CB-7006](https://issues.apache.org/jira/browse/CB-7006) Empty file is created on file transfer if server response is 304
+* [CB-10098](https://issues.apache.org/jira/browse/CB-10098) filetransfer.spec.33 is faulty
+* [CB-9969](https://issues.apache.org/jira/browse/CB-9969) Filetransfer upload error deletes original file
+* [CB-9969](https://issues.apache.org/jira/browse/CB-9969) Filetransfer upload error deletes original file
+* [CB-10088](https://issues.apache.org/jira/browse/CB-10088) - filetransfer spec.10 and spec.11 test is faulty
+* [CB-9969](https://issues.apache.org/jira/browse/CB-9969) Filetransfer upload error deletes original file
+* [CB-10086](https://issues.apache.org/jira/browse/CB-10086) There are two spec.31 tests for file-transfer tests
+* [CB-10037](https://issues.apache.org/jira/browse/CB-10037) Add progress indicator to file-transfer manual tests
+* [CB-9563](https://issues.apache.org/jira/browse/CB-9563) Mulptipart form data is used even a header named Content-Type is present
+* [CB-8863](https://issues.apache.org/jira/browse/CB-8863) fix block usage of self
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) linked issues in RELEASENOTES.md
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated version and RELEASENOTES.md for release 1.4.0
+* removed r prefix from tags
+* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated RELEASENOTES to be newest to oldest
+* [CB-9879](https://issues.apache.org/jira/browse/CB-9879) getCookies can cause unhandled NullPointerException
+* [CB-6928](https://issues.apache.org/jira/browse/CB-6928) Wrong behaviour transferring cacheable content
+* [CB-51](https://issues.apache.org/jira/browse/CB-51) API: FileTransfer - Support PUT Method
+* [CB-9906](https://issues.apache.org/jira/browse/CB-9906) cleanup duplicate code, removed 2nd isWP8 declaration.
+* [CB-9950](https://issues.apache.org/jira/browse/CB-9950) Unpend Filetransfer spec.27 on wp8 as custom headers are now supported
+* filetransfer.spec.6 was failing in 4.x branch of iOS because -1 was returned.
+* [CB-9843](https://issues.apache.org/jira/browse/CB-9843) Added wp8 quirk to test spec 12
+* Actually fixing the contribute link.
+* Fixing contribute link.
+* Github close #101, close #25, close #54
+* add JIRA issue tracker link
+* [CB-8431](https://issues.apache.org/jira/browse/CB-8431) File Transfer tests crash on Android Lolipop
+* [CB-9673](https://issues.apache.org/jira/browse/CB-9673) Fixed test spec.6 failure on iOS
+* [CB-9790](https://issues.apache.org/jira/browse/CB-9790) Align FileUploadOptions fileName and mimeType default parameter values to the docs on iOS
+* [CB-9385](https://issues.apache.org/jira/browse/CB-9385) Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS
+* [CB-9385](https://issues.apache.org/jira/browse/CB-9385) Return FILE_NOT_FOUND_ERR when receiving 404 code on iOS
+* [CB-9791](https://issues.apache.org/jira/browse/CB-9791) Decreased download and upload tests timeout
+* updated releasenotes
+* [CB-9681](https://issues.apache.org/jira/browse/CB-9681) Incremented plugin version.
+* [CB-9681](https://issues.apache.org/jira/browse/CB-9681) Updated version and RELEASENOTES.md for release 1.3.0
+* [CB-9624](https://issues.apache.org/jira/browse/CB-9624) There's a difference between what's being passed in and what should actually be sent to the File Transfer plugin
+* Found issue where : is accepted as a valid header, this is obviously wrong
+* [CB-9562](https://issues.apache.org/jira/browse/CB-9562) Fixed incorrect headers handling on Android
+* Fixing headers so they don't accept non-ASCII
+* updated tests to use cordova apache vm
+* [CB-9493](https://issues.apache.org/jira/browse/CB-9493) Fix file paths in file-transfer manual tests
+* [CB-8816](https://issues.apache.org/jira/browse/CB-8816) Add cdvfile:// support on windows
+* README :: remove duplicate httpMethod option.
+* removed broken link in README
+* [CB-9376](https://issues.apache.org/jira/browse/CB-9376) Fix FileTransfer plugin manual tests issue - 'undefined' in paths
+* remove travis-ci integration
+* [CB-9312](https://issues.apache.org/jira/browse/CB-9312) Incremented plugin version.
+* [CB-9312](https://issues.apache.org/jira/browse/CB-9312) Updated version and RELEASENOTES.md for release 1.2.1
+* [CB-9275](https://issues.apache.org/jira/browse/CB-9275) [WP8] Fix build failure on WP8 by using reflection to detect presence of JSON.NET based serialization
+* Updated code per code review.
+* Updated documentation for browser
+* Added option to allow for passing cookies automatically in the browser
+* [CB-9192](https://issues.apache.org/jira/browse/CB-9192) Incremented plugin version.
+* [CB-9202](https://issues.apache.org/jira/browse/CB-9202) updated repo url to github mirror in package.json
+* [CB-9192](https://issues.apache.org/jira/browse/CB-9192) Updated version and RELEASENOTES.md for release 1.2.0
+* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* [CB-6503](https://issues.apache.org/jira/browse/CB-6503) Null pointer check for headers in upload (This closes #27)
+* [CB-6503](https://issues.apache.org/jira/browse/CB-6503) Allow payload content-types other than multipart/form-data to be used for upload
+* Fix NoSuchMethodException looking up cookies.
+* fix npm md issue
+* [CB-8951](https://issues.apache.org/jira/browse/CB-8951) (wp8) Handle exceptions in download() and upload() again
+* [wp8] Relaxed engine version requirement, using reflection to see if methods are available
+* Check for the existence of Json.net assembly to determin how we deserialize our headers.
+* relax engine requirement to allow -dev versions
+* Remove verbose console log messages
+* fix bad commit (mine) for cordova-wp8@4.0.0 engine req
+* bump required cordova-wp8 version to 4.0.0
+* This closes #80, This closes #12
+* fix failing test resulting from overlapping async calls
+* [CB-8721](https://issues.apache.org/jira/browse/CB-8721) Fixes incorrect headers and upload params parsing on wp8
+* Replace all slashes in windows path
+* [CB-8959](https://issues.apache.org/jira/browse/CB-8959) Incremented plugin version.
+* [CB-8959](https://issues.apache.org/jira/browse/CB-8959) Updated version and RELEASENOTES.md for release 1.1.0
+* [CB-8951](https://issues.apache.org/jira/browse/CB-8951) Fixed crash related to headers parsing on wp8
+* [CB-8933](https://issues.apache.org/jira/browse/CB-8933) Increased download and upload test timeout
+* [CB-6313](https://issues.apache.org/jira/browse/CB-6313) [wp8]: Extra boundary in upload
+* [CB-8761](https://issues.apache.org/jira/browse/CB-8761) [wp8]: Copy cookies from WebBrowser
+* Revert "Revert "CB-8858 Incremented plugin version.""
+* Revert "CB-8858 Incremented plugin version."
+* fixed invalid package.json
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Incremented plugin version.
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Updated version in package.json for release 1.0.0
+* Revert "CB-8858 Incremented plugin version."
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Incremented plugin version.
+* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Updated version and RELEASENOTES.md for release 1.0.0
+* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) bumped version of file dependency
+* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) gave plugin major version bump
+* [CB-8641](https://issues.apache.org/jira/browse/CB-8641) Fixed tests to pass on windows and wp8
+* [CB-8583](https://issues.apache.org/jira/browse/CB-8583) Forces download to overwrite existing target file
+* [CB-8589](https://issues.apache.org/jira/browse/CB-8589) Fixes upload failure when server's response doesn't contain any data
+* [CB-8747](https://issues.apache.org/jira/browse/CB-8747) updated dependency, added peer dependency
+* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) changed plugin-id to pacakge-name
+* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) properly updated translated docs to use new id
+* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) updated translated docs to use new id
+* Use TRAVIS_BUILD_DIR, install paramedic by npm
+* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) Updated Readme
+* [CB-8654](https://issues.apache.org/jira/browse/CB-8654) Note WP8 download requests caching in docs
+* [CB-8590](https://issues.apache.org/jira/browse/CB-8590) (Windows) Fixed download.onprogress.lengthComputable
+* [CB-8566](https://issues.apache.org/jira/browse/CB-8566) Integrate TravisCI
+* [CB-8438](https://issues.apache.org/jira/browse/CB-8438) cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added package.json file
+* [CB-8495](https://issues.apache.org/jira/browse/CB-8495) Fixed wp8 and wp81 test failures
+* [CB-7957](https://issues.apache.org/jira/browse/CB-7957) Adds support for `browser` platform
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Incremented plugin version.
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and RELEASENOTES.md for release 0.5.0 (take 2)
+* Fixes typo, introduced in https://github.com/apache/cordova-plugin-file-transfer/commit/bc43b46
+* [CB-8407](https://issues.apache.org/jira/browse/CB-8407) Use File proxy to construct valid FileEntry for download success callback
+* [CB-8407](https://issues.apache.org/jira/browse/CB-8407) Removes excess path to native path conversion in download method
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Incremented plugin version.
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and RELEASENOTES.md for release 0.5.0
+* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Fixes JSHint and formatting issues
+* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Updates tests and documentation
+* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Rewrite upload method to support progress events properly
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Incremented plugin version.
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and RELEASENOTES.md for release 0.5.0 (take 2)
+* Fixes typo, introduced in https://github.com/apache/cordova-plugin-file-transfer/commit/bc43b46
+* [CB-8407](https://issues.apache.org/jira/browse/CB-8407) Use File proxy to construct valid FileEntry for download success callback
+* [CB-8407](https://issues.apache.org/jira/browse/CB-8407) Removes excess path to native path conversion in download method
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Incremented plugin version.
+* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and RELEASENOTES.md for release 0.5.0
+* [CB-7957](https://issues.apache.org/jira/browse/CB-7957) Adds support for `browser` platform
+* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Fixes JSHint and formatting issues
+* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Updates tests and documentation
+* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Rewrite upload method to support progress events properly
+* android: Fix error reporting for unknown uri type on sourceUri instead of targetUri
+* [CB-5059](https://issues.apache.org/jira/browse/CB-5059) Add a CookieManager abstraction for pluggable webviews (close #60)
+* ios: Fix compile warning about implicity int conversion
+* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) Use argumentForIndex rather than NSArray extension
+* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) Use a local copy of DLog macro rather than CordovaLib version
+* www/FileTransfer.js
+* [CB-8296](https://issues.apache.org/jira/browse/CB-8296) ios: Fix crash when upload fails and file is not yet created (close #57)
+* cleanUrl needs relative path for local download
+* Document "body" property on FileTransferError
+* [CB-8125](https://issues.apache.org/jira/browse/CB-8125) Fix spec tests 28 and 29
+* [CB-8125](https://issues.apache.org/jira/browse/CB-8125) Reorganize and clean up test suite.
+* [CB-7912](https://issues.apache.org/jira/browse/CB-7912) Update to work with whitelist plugins in Cordova 4.x
+* removed unneeded String() casting all over the place, fixed my own missing ) error
+* exec guarentees that proxy is called with success/error function so there is no need to constantly check that it exists
+* Error callback should always be called with the FileTransferError object, and not just the code
+* alias appData to Windows.Storage.ApplicationData.current
+* Alias FileTransferError to FTErr to save some horizontal space
+* update array
+* [CB-8093](https://issues.apache.org/jira/browse/CB-8093) Fixes incorrect FileTransferError returned in case of download failure
+* [CB-8110](https://issues.apache.org/jira/browse/CB-8110) Incremented plugin version.
+* [CB-8110](https://issues.apache.org/jira/browse/CB-8110) Updated version and RELEASENOTES.md for release 0.4.8
+* Fix for https://issues.apache.org/jira/browse/CB-4674
+* Fixes #CB-8021 - adds documentation for httpMethod to doc/index.md. However, translations still need to be addressed.
+* [CB-7223](https://issues.apache.org/jira/browse/CB-7223) spec.27 marked pending for wp8
+* [CB-6900](https://issues.apache.org/jira/browse/CB-6900) fixed spec.7 for wp8
+* [CB-7944](https://issues.apache.org/jira/browse/CB-7944) Pended unsupported auto tests for windows
+* [CB-7977](https://issues.apache.org/jira/browse/CB-7977) Mention deviceready in plugin docs
+* [CB-7700](https://issues.apache.org/jira/browse/CB-7700) cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* [CB-7700](https://issues.apache.org/jira/browse/CB-7700) cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+*  Incremented plugin version.
+*  Updated version and RELEASENOTES.md for release 0.4.7
+* Construct proper FileEntry with nativeURL property set
+* [CB-7532](https://issues.apache.org/jira/browse/CB-7532) Handle non-existent download dirs properly
+* [CB-7529](https://issues.apache.org/jira/browse/CB-7529) Adds support for 'ms-appdata' URIs for windows
+* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Bump version of nested plugin to match parent plugin
+* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Incremented plugin version.
+* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Updated version and RELEASENOTES.md for release 0.4.6
+* [CB-7471](https://issues.apache.org/jira/browse/CB-7471) cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* [CB-7249](https://issues.apache.org/jira/browse/CB-7249) cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* [CB-7423](https://issues.apache.org/jira/browse/CB-7423) fix spec28,29 lastProgressEvent not visible to afterEach function
+* Amazon related changes.
+* Remove dupe file windows+windows8 both use the same one
+* [CB-7316](https://issues.apache.org/jira/browse/CB-7316) Updates docs with actual information.
+* [CB-7316](https://issues.apache.org/jira/browse/CB-7316) Adds support for Windows platform, moves *Proxy files to proper directory.
+* [CB-7316](https://issues.apache.org/jira/browse/CB-7316) Improves current specs compatibility:
+* added documentation for new test
+* [CB-6466](https://issues.apache.org/jira/browse/CB-6466) Fix failing test due to recent url change
+* [CB-6466](https://issues.apache.org/jira/browse/CB-6466) created mobile-spec test
+* Renamed test dir, added nested plugin.xml and test
+* Fixed failing spec.19 on wp8
+* [CB-7244](https://issues.apache.org/jira/browse/CB-7244) Incremented plugin version.
+* [CB-7244](https://issues.apache.org/jira/browse/CB-7244) Updated version and RELEASENOTES.md for release 0.4.5
+* CB-7249cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* Upload parameters out of order
+* FirefoxOS initial implementation
+* added documentation to manual tests
+* [CB-6961](https://issues.apache.org/jira/browse/CB-6961) port file-transfer tests to framework
+* [CB-6781](https://issues.apache.org/jira/browse/CB-6781) Expose FileTransferError.exception to application
+* CB-7110cordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* [CB-6928](https://issues.apache.org/jira/browse/CB-6928) Add new error code to documentation
+* [CB-6928](https://issues.apache.org/jira/browse/CB-6928) Handle 304 status code
+* [CB-6928](https://issues.apache.org/jira/browse/CB-6928) Open output stream only if it's necessary.
+* [BlackBerry10] Minor doc correction
+* CB-6127lisa7cordova-plugin-consolecordova-plugin-file-transfer documentation translation: cordova-plugin-file-transfer
+* Update release notes and clean pull requests.
+* Update index.md
+* [Windows8] upload uses the provided fileName or the actual fileName
+* [CB-2420](https://issues.apache.org/jira/browse/CB-2420) [Windows8] honor fileKey and param options. This closes #15
+* [CB-6781](https://issues.apache.org/jira/browse/CB-6781) Update new docs to match AlexNennker's changes in PR30
+* [CB-6781](https://issues.apache.org/jira/browse/CB-6781) Continue previous commit with one new instance (This closes #30)
+* [CB-6781](https://issues.apache.org/jira/browse/CB-6781) add the exception text to the error object
+* [CB-6890](https://issues.apache.org/jira/browse/CB-6890) Fix pluginManager access for 4.0.x branch
+* [CB-6877](https://issues.apache.org/jira/browse/CB-6877) Incremented plugin version.
+* [CB-6877](https://issues.apache.org/jira/browse/CB-6877) Updated version and RELEASENOTES.md for release 0.4.4
+* [CB-6127](https://issues.apache.org/jira/browse/CB-6127) Spanish and French Translations added. Github close #21
+* ubuntu: support 'cdvfile' URI
+* [CB-6802](https://issues.apache.org/jira/browse/CB-6802) Add license
+* documentation translation: cordova-plugin-file-transfer
+* Lisa testing pulling in plugins for plugin: cordova-plugin-file-transfer
+* Upload progress now works also for second file
+* Lisa testing pulling in plugins for plugin: cordova-plugin-file-transfer
+* [CB-6706](https://issues.apache.org/jira/browse/CB-6706) Relax dependency on file plugin
+* [CB-3440](https://issues.apache.org/jira/browse/CB-3440) [BlackBerry10] Update implementation to use modules from file plugin
+* [CB-6378](https://issues.apache.org/jira/browse/CB-6378) Use connection.disconnect() instead of stream.close() for thread-safety
+* [CB-6491](https://issues.apache.org/jira/browse/CB-6491) add CONTRIBUTING.md
+* [CB-6466](https://issues.apache.org/jira/browse/CB-6466) Auto-create directories in download
+* [CB-6494](https://issues.apache.org/jira/browse/CB-6494) android: Fix upload of KitKat content URIs
+* [CB-6452](https://issues.apache.org/jira/browse/CB-6452) Incremented plugin version on dev branch.
+* [CB-6452](https://issues.apache.org/jira/browse/CB-6452) Updated version and RELEASENOTES.md for release 0.4.3
+* [CB-6460](https://issues.apache.org/jira/browse/CB-6460) Update license headers
+* [CB-6422](https://issues.apache.org/jira/browse/CB-6422) [windows8] use cordova/exec/proxy
+* iOS: Fix error where files were not removed on abort
+* [CB-5175](https://issues.apache.org/jira/browse/CB-5175) CDVFileTransfer asynchronous download (Fixes #24)
+* [ios] Cast id references to NSURL to avoid compiler warnings (Fixes: apache/cordova-plugin-file-transfer#18)
+* [ios] Cleanup extra semicolons
+* [CB-6212](https://issues.apache.org/jira/browse/CB-6212) iOS: fix warnings compiled under arm64 64-bit
+* Upleveled from android port with following commits: 3c1ff16 Andrew Grieve - [CB-5762](https://issues.apache.org/jira/browse/CB-5762) android: Fix lengthComputable set wrong for gzip downloads 8374b3d Colin Mahoney - [CB-5631](https://issues.apache.org/jira/browse/CB-5631) Removed SimpleTrackingInputStream.read(byte[] buffer) 6f91ac3 Bas Bosman - [CB-4907](https://issues.apache.org/jira/browse/CB-4907) Close stream when we're finished with it 651460f Christoph Neumann - [CB-6000](https://issues.apache.org/jira/browse/CB-6000) Nginx rejects Content-Type without a space before "boundary". 35f80e4 Ian Clelland - [CB-6050](https://issues.apache.org/jira/browse/CB-6050) Use instance method on actual file plugin object to get FileEntry to return on download
+* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Incremented plugin version on dev branch.
+* Upleveled from android port with following commits: 3c1ff16 Andrew Grieve - [CB-5762](https://issues.apache.org/jira/browse/CB-5762) android: Fix lengthComputable set wrong for gzip downloads 8374b3d Colin Mahoney - [CB-5631](https://issues.apache.org/jira/browse/CB-5631) Removed SimpleTrackingInputStream.read(byte[] buffer) 6f91ac3 Bas Bosman - [CB-4907](https://issues.apache.org/jira/browse/CB-4907) Close stream when we're finished with it 651460f Christoph Neumann - [CB-6000](https://issues.apache.org/jira/browse/CB-6000) Nginx rejects Content-Type without a space before "boundary". 35f80e4 Ian Clelland - [CB-6050](https://issues.apache.org/jira/browse/CB-6050) Use instance method on actual file plugin object to get FileEntry to return on download
+* Add NOTICE file
+* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Updated version and RELEASENOTES.md for release 0.4.2
+* [CB-6106](https://issues.apache.org/jira/browse/CB-6106) Ensure that nativeURL is used by file transfer download
+* ios:Get file plugin via commandDelegate to avoid using global file plugin directly.
+* Make it a priority to use filesystemName to create FileSystem object
+* [CB-6059](https://issues.apache.org/jira/browse/CB-6059) iOS: Add necessary @synchronized blocks for newly introduced multi-threading.
+* [CB-6059](https://issues.apache.org/jira/browse/CB-6059) iOS: Stop FileTransfer.download doing IO on the UI thread.
+* [CB-2190](https://issues.apache.org/jira/browse/CB-2190) Make backgroundTaskId apply to downloads as well. Move backgroundTaskId to the delegate.
+* Fix default value for trustAllHosts on iOS (YES->NO)
+* [CB-6050](https://issues.apache.org/jira/browse/CB-6050) Use instance method on actual file plugin object to get FileEntry to return on download
+* [CB-6022](https://issues.apache.org/jira/browse/CB-6022) Add backwards-compatibility notes to doc
+* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Incremented plugin version on dev branch.
+* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Updated version and RELEASENOTES.md for release 0.4.1
+* [CB-5588](https://issues.apache.org/jira/browse/CB-5588) Docs for upload headers.
+* [CB-5588](https://issues.apache.org/jira/browse/CB-5588) iOS: Add response headers to upload result
+* [CB-6000](https://issues.apache.org/jira/browse/CB-6000) Nginx rejects Content-Type without a space before "boundary".
+* [CB-4907](https://issues.apache.org/jira/browse/CB-4907) Close stream when we're finished with it
+* Lisa testing pulling in plugins for plugin: cordova-plugin-file-transfer
+* Lisa testing pulling in plugins for plugin: cordova-plugin-file-transfer
+* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Updated version and RELEASENOTES.md for release 0.4.1
+* [CB-5365](https://issues.apache.org/jira/browse/CB-5365) Remove unused exception var to prevent warnings?
+* [CB-2421](https://issues.apache.org/jira/browse/CB-2421) explicitly write the bytesSent,responseCode,result to the FileUploadResult pending release of cordova-plugin-file dependency, added some sanity checks for callbacks
+* iOS: Update for new file plugin api
+* [CB-5631](https://issues.apache.org/jira/browse/CB-5631) Removed SimpleTrackingInputStream.read(byte[] buffer)
+* [CB-5762](https://issues.apache.org/jira/browse/CB-5762) android: Fix lengthComputable set wrong for gzip downloads
+* [CB-4899](https://issues.apache.org/jira/browse/CB-4899) [BlackBerry10] Improve binary file transfer download
+* Delete stale test/ directory
+* [CB-5722](https://issues.apache.org/jira/browse/CB-5722) [BlackBerry10] Update upload function to use native file object
+* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Update license comment formatting of doc/index.md
+* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Add doc.index.md for File Transfer plugin
+* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Delete stale snapshot of plugin docs
+* Remove @1 designation from file plugin dependency until pushed to npm
+* [CB-5466](https://issues.apache.org/jira/browse/CB-5466) Update to work with filesystem URLs
+* [CB-5565](https://issues.apache.org/jira/browse/CB-5565) Incremented plugin version on dev branch.
+* [CB-5565](https://issues.apache.org/jira/browse/CB-5565) Updated version and RELEASENOTES.md for release 0.4.0
+* [CB-5466](https://issues.apache.org/jira/browse/CB-5466) Partial revert; we're not ready yet for FS urls
+* add ubuntu platform
+* [CB-5466](https://issues.apache.org/jira/browse/CB-5466) Minor version bump
+* [CB-5466](https://issues.apache.org/jira/browse/CB-5466) Update FileTransfer plugin to accept filesystem urls
+* Added amazon-fireos platform. Change to use amazon-fireos as the platform if the user agen string contains 'cordova-amazon-fireos'
+* [CB-5188](https://issues.apache.org/jira/browse/CB-5188)
+* [CB-5188](https://issues.apache.org/jira/browse/CB-5188) Updated version and RELEASENOTES.md for release 0.3.4
+* [CB-5128](https://issues.apache.org/jira/browse/CB-5128) added repo + issue tag to plugin.xml for file transfer plugin
+* [CB-5010](https://issues.apache.org/jira/browse/CB-5010) Incremented plugin version on dev branch.
+* [CB-5010](https://issues.apache.org/jira/browse/CB-5010) Updated version and RELEASENOTES.md for release 0.3.3
+* removed un-needed undef check
+* Fix missing headers in Windows 8 upload proxy
+* Fix missing headers in Windows 8 Proxy
+* Fix Windows 8 HTMLAnchorElement return host:80 which force Basic Auth Header to replace options Auth Header
+* [CB-4915](https://issues.apache.org/jira/browse/CB-4915) Incremented plugin version on dev branch.
+* removed un-needed undef check
+* Merge branch 'fix-win8' of https://github.com/Touchit/cordova-plugin-file-transfer into dev
+* [CB-4915](https://issues.apache.org/jira/browse/CB-4915) Updated version and RELEASENOTES.md for release 0.3.2
+* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) bumping&resetting version
+* [windows8] commandProxy was moved
+* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) updating core references
+* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) renaming org.apache.cordova.core.file-transfer to org.apache.cordova.file-transfer and updating dependency
+* Rename CHANGELOG.md -> RELEASENOTES.md
+* fixing base64 helper function clobber for wp7 [CB-4668](https://issues.apache.org/jira/browse/CB-4668) fixing FileTransfer code to work in wp7 and be safe for headers which contain ':'
+* fixed merge anomaly error
+* add atob+btoa for wp7 only fixes FileTransfer issues
+* Add empty CHANGELOG.md
+* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Incremented plugin version on dev branch.
+* [CB-4668](https://issues.apache.org/jira/browse/CB-4668) updating WP7 definition to use same code as WP8
+* [CB-4668](https://issues.apache.org/jira/browse/CB-4668) WP8 FileTransfer works with the standard JS implementation. Fixing error in parsing of HTTP params which causes sub-JSON objects to not work
+* updated namespace, name tag and readme
+* [wp8] added progress events and fixed failing tests
+* [CB-4595](https://issues.apache.org/jira/browse/CB-4595) updated version
+* [CB-4480](https://issues.apache.org/jira/browse/CB-4480) Fix up a couple Unsigned->Signed mistakes from previous commit.
+* [CB-4480](https://issues.apache.org/jira/browse/CB-4480) Using 64 bit ints to store file size
+* [CB-4417](https://issues.apache.org/jira/browse/CB-4417) Move cordova-plugin-file-transfer to its own Java package.
+* Fix NPE in mobile-spec Upload of an unknown host test.
+* updated namespace, name tag and readme
+* [plugin.xml] adding android namespace
+* [plugin.xml] standardizing license + meta
+* [license] adding apache license file
+* fixed dependency subdir=/* wrong subdir specification.
+* [Windows8][CB-4442] Added windows 8 support
+* updating plugin.xml with registry data
+* [CB-4367](https://issues.apache.org/jira/browse/CB-4367) Explicit AssetsLibrary.framework dependency should be specified for some core plugins
+
 ### 1.6.0 (Sep 08, 2016)
 * [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
 * [CB-9022](https://issues.apache.org/jira/browse/CB-9022) Fix exception thrown by call to `remapApi` on main thread

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/aee45754/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 6c24249..72eb6bf 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-file-transfer",
-  "version": "1.6.1-dev",
+  "version": "1.6.1",
   "description": "Cordova File Transfer Plugin",
   "cordova": {
     "id": "cordova-plugin-file-transfer",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/aee45754/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 6b2323c..e77d9cc 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -21,7 +21,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="cordova-plugin-file-transfer"
-    version="1.6.1-dev">
+    version="1.6.1">
     <name>File Transfer</name>
     <description>Cordova File Transfer Plugin</description>
     <license>Apache 2.0</license>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/aee45754/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index f537907..b80ac53 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -21,7 +21,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="cordova-plugin-file-transfer-tests"
-    version="1.6.1-dev">
+    version="1.6.1">
     <name>Cordova File Transfer Plugin Tests</name>
     <license>Apache 2.0</license>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[08/11] cordova-plugin-file-transfer git commit: Don't crash on low memory devices

Posted by sh...@apache.org.
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


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/9b322dec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/9b322dec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/9b322dec

Branch: refs/heads/1.6.x
Commit: 9b322dec6790f6d273b8f707bc07976d778c4cf6
Parents: addf885
Author: junweifu <ju...@intel.com>
Authored: Fri Nov 4 10:23:11 2016 +0800
Committer: Steve Gill <st...@gmail.com>
Committed: Mon Nov 7 11:05:28 2016 -0800

----------------------------------------------------------------------
 tests/tests.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/9b322dec/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index cc88eda..7149091 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -58,6 +58,7 @@ exports.defineAutoTests = function () {
     var isBrowser = cordova.platformId === "browser";
     var isIE = isBrowser && navigator.userAgent.indexOf("Trident") >= 0;
     var isIos = cordova.platformId === "ios";
+    var isIot = cordova.platformId === "android" && navigator.userAgent.indexOf("iot") >= 0;
 
     // tests
     describe("FileTransferError", function () {
@@ -1078,7 +1079,7 @@ exports.defineAutoTests = function () {
 
                     // windows store and ios are too fast, win is called before we have a chance to abort
                     // so let's get them busy - while not providing an extra load to the slow Android emulators
-                    var arrayLength = ((isWindows && !isWindowsPhone81) || isIos) ? 3000000 : 200000;
+                    var arrayLength = ((isWindows && !isWindowsPhone81) || isIos) ? 3000000 : isIot ? 150000 : 200000;
                     writeFile(specContext.root, specContext.fileName, new Array(arrayLength).join("aborttest!"), fileWin, done);
                 }, UPLOAD_TIMEOUT);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[02/11] cordova-plugin-file-transfer git commit: CB-11926 Tests can use local server

Posted by sh...@apache.org.
CB-11926 Tests can use local server


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/e68f7666
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/e68f7666
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/e68f7666

Branch: refs/heads/1.6.x
Commit: e68f766639602cd84f72f77d51384b4b20570169
Parents: 1cfc66c
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Tue Oct 4 22:40:39 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Tue Oct 4 22:40:39 2016 +0300

----------------------------------------------------------------------
 tests/hooks/after_prepare.js | 70 +++++++++++++++++++++++++++++++++++++++
 tests/plugin.xml             |  4 +++
 tests/tests.js               | 30 +++++++++++++++--
 3 files changed, 101 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/e68f7666/tests/hooks/after_prepare.js
----------------------------------------------------------------------
diff --git a/tests/hooks/after_prepare.js b/tests/hooks/after_prepare.js
new file mode 100644
index 0000000..e6f01e7
--- /dev/null
+++ b/tests/hooks/after_prepare.js
@@ -0,0 +1,70 @@
+#!/usr/bin/env node
+
+/*
+*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*
+*/
+
+var path = require('path');
+var fs = require('fs');
+
+module.exports = function(context) {
+    function main() {
+        // get the file transfer server address from the specified variables
+        var fileTransferServerAddress = getFileTransferServerAddress(context) || getDefaultFileTransferServerAddress(context);
+        console.log('Tests will use the following file transfer server address: ' + fileTransferServerAddress);
+
+        // pass it to the tests
+        writeFileTransferOptions(fileTransferServerAddress, context);
+    }
+
+    function getDefaultFileTransferServerAddress(context) {
+        var address = null;
+        var configNodes = context.opts.plugin.pluginInfo._et._root._children;
+
+        for (var node in configNodes) {
+            if (configNodes[node].attrib.name == 'FILETRANSFER_SERVER_ADDRESS') {
+                address = configNodes[node].attrib.default;
+            }
+        }
+
+        return address;
+    }
+
+    function getFileTransferServerAddress(context) {
+        var platformJsonFile = path.join(context.opts.projectRoot, 'platforms', context.opts.platforms[0], context.opts.platforms[0] + '.json');
+        var platformJson = JSON.parse(fs.readFileSync(platformJsonFile, 'utf8'));
+
+        return platformJson.installed_plugins['cordova-plugin-file-transfer-tests'].FILETRANSFER_SERVER_ADDRESS;
+    }
+
+    function writeFileTransferOptions(address, context) {
+        for (var p in context.opts.paths) {
+            var ftOpts = {
+                serverAddress: address
+            };
+            var ftOptsString = JSON.stringify(ftOpts);
+            var ftOptsFile = path.join(context.opts.paths[p], 'fileTransferOpts.json');
+            fs.writeFileSync(ftOptsFile, ftOptsString, 'utf8');
+        }
+    }
+
+    main();
+
+};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/e68f7666/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index 94ad77c..f537907 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -27,4 +27,8 @@
 
     <js-module src="tests.js" name="tests">
     </js-module>
+
+    <hook type="after_prepare" src="hooks/after_prepare.js" />
+
+    <preference name="FILETRANSFER_SERVER_ADDRESS" default="http://cordova-vm.apache.org:5000"/>
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/e68f7666/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 58a2ef2..43fc3cd 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -42,11 +42,14 @@ exports.defineAutoTests = function () {
     var DATA_URI_CONTENT = "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
     var DATA_URI_CONTENT_LENGTH = 85; // bytes. (This is the raw file size: used https://en.wikipedia.org/wiki/File:Red-dot-5px.png from https://en.wikipedia.org/wiki/Data_URI_scheme)
 
-    // config for upload test server
+    // upload test server address
     // NOTE:
     //      more info at https://github.com/apache/cordova-labs/tree/cordova-filetransfer
-    var SERVER                  = "http://cordova-vm.apache.org:5000";
-    var SERVER_WITH_CREDENTIALS = "http://cordova_user:cordova_password@cordova-vm.apache.org:5000";
+    // Will get it from the config
+    // you can specify it as a 'FILETRANSFER_SERVER_ADDRESS' variable upon test plugin installation
+    // or change the default value in plugin.xml
+    var SERVER = "";
+    var SERVER_WITH_CREDENTIALS = "";
 
     // flags
     var isWindows = cordova.platformId === "windows8" || cordova.platformId === "windows";
@@ -202,6 +205,11 @@ exports.defineAutoTests = function () {
             }
         };
 
+        var setServerAddress = function (address) {
+            SERVER = address;
+            SERVER_WITH_CREDENTIALS = SERVER.replace('http://', 'http://cordova_user:cordova_password@');
+        };
+
         // NOTE:
         //      there are several beforeEach calls, one per async call; since calling done()
         //      signifies a completed async call, each async call needs its own done(), and
@@ -266,6 +274,22 @@ exports.defineAutoTests = function () {
             }
         });
 
+        it ("util spec: get file transfer server url", function () {
+            try {
+                // attempt to synchronously load medic config
+                var xhr = new XMLHttpRequest();
+                xhr.open("GET", "../fileTransferOpts.json", false);
+                xhr.send(null);
+                var parsedCfg = JSON.parse(xhr.responseText);
+                if (parsedCfg.serverAddress) {
+                    setServerAddress(parsedCfg.serverAddress);
+                }
+            } catch (ex) {
+                console.error('Unable to load file transfer server url: ' + ex);
+                fail(ex);
+            }
+        });
+
         it("should initialise correctly", function() {
             expect(this.persistentRoot).toBeDefined();
             expect(this.tempRoot).toBeDefined();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org