mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-05-17 00:00:03 +08:00
Revert "CB-8683 changed plugin-id to pacakge-name"
This reverts commit 0530d90fb0.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
"version": "0.5.1-dev",
|
||||
"description": "Cordova File Transfer Plugin",
|
||||
"cordova": {
|
||||
"id": "cordova-plugin-file-transfer",
|
||||
"id": "org.apache.cordova.file-transfer",
|
||||
"platforms": [
|
||||
"android",
|
||||
"amazon-fireos",
|
||||
|
||||
+1
-1
@@ -20,7 +20,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"
|
||||
id="org.apache.cordova.file-transfer"
|
||||
version="0.5.1-dev">
|
||||
<name>File Transfer</name>
|
||||
<description>Cordova File Transfer Plugin</description>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "file-transfer.h"
|
||||
#include <plugins/cordova-plugin-file/file.h>
|
||||
#include <plugins/org.apache.cordova.file/file.h>
|
||||
#include <cassert>
|
||||
|
||||
static void SetHeaders(QNetworkRequest &request, const QVariantMap &headers) {
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
/*global module, require*/
|
||||
|
||||
var FTErr = require('./FileTransferError'),
|
||||
ProgressEvent = require('cordova-plugin-file.ProgressEvent'),
|
||||
FileUploadResult = require('cordova-plugin-file.FileUploadResult'),
|
||||
FileProxy = require('cordova-plugin-file.FileProxy'),
|
||||
FileEntry = require('cordova-plugin-file.FileEntry');
|
||||
ProgressEvent = require('org.apache.cordova.file.ProgressEvent'),
|
||||
FileUploadResult = require('org.apache.cordova.file.FileUploadResult'),
|
||||
FileProxy = require('org.apache.cordova.file.FileProxy'),
|
||||
FileEntry = require('org.apache.cordova.file.FileEntry');
|
||||
|
||||
var appData = Windows.Storage.ApplicationData.current;
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,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"
|
||||
id="org.apache.cordova.file-transfer.tests"
|
||||
version="0.5.1-dev">
|
||||
<name>Cordova File Transfer Plugin Tests</name>
|
||||
<license>Apache 2.0</license>
|
||||
|
||||
+3
-3
@@ -22,7 +22,7 @@
|
||||
var argscheck = require('cordova/argscheck'),
|
||||
exec = require('cordova/exec'),
|
||||
FileTransferError = require('./FileTransferError'),
|
||||
ProgressEvent = require('cordova-plugin-file.ProgressEvent');
|
||||
ProgressEvent = require('org.apache.cordova.file.ProgressEvent');
|
||||
|
||||
function newProgressEvent(result) {
|
||||
var pe = new ProgressEvent();
|
||||
@@ -178,10 +178,10 @@ FileTransfer.prototype.download = function(source, target, successCallback, erro
|
||||
} else if (successCallback) {
|
||||
var entry = null;
|
||||
if (result.isDirectory) {
|
||||
entry = new (require('cordova-plugin-file.DirectoryEntry'))();
|
||||
entry = new (require('org.apache.cordova.file.DirectoryEntry'))();
|
||||
}
|
||||
else if (result.isFile) {
|
||||
entry = new (require('cordova-plugin-file.FileEntry'))();
|
||||
entry = new (require('org.apache.cordova.file.FileEntry'))();
|
||||
}
|
||||
entry.isDirectory = result.isDirectory;
|
||||
entry.isFile = result.isFile;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* Register all FileTransfer exec calls to be handled by proxy
|
||||
*/
|
||||
|
||||
var xhrFileTransfer = require('cordova-plugin-file-transfer.xhrFileTransfer');
|
||||
var xhrFileTransfer = require('org.apache.cordova.file-transfer.xhrFileTransfer');
|
||||
|
||||
module.exports = {
|
||||
abort: xhrFileTransfer.abort,
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
/*global Blob:false */
|
||||
var cordova = require('cordova'),
|
||||
resolve = cordova.require('cordova-plugin-file.resolveLocalFileSystemURIProxy'),
|
||||
requestAnimationFrame = cordova.require('cordova-plugin-file.bb10RequestAnimationFrame'),
|
||||
resolve = cordova.require('org.apache.cordova.file.resolveLocalFileSystemURIProxy'),
|
||||
requestAnimationFrame = cordova.require('org.apache.cordova.file.bb10RequestAnimationFrame'),
|
||||
xhr = {};
|
||||
|
||||
function getParentPath(filePath) {
|
||||
|
||||
Reference in New Issue
Block a user