mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-12 10:42:58 +08:00
Update JS snapshot to version 3.4.0-rc1 (via coho)
This commit is contained in:
parent
09e1c00fb8
commit
89f9ac1957
60
framework/assets/www/cordova.js
vendored
60
framework/assets/www/cordova.js
vendored
@ -1,5 +1,5 @@
|
|||||||
// Platform: android
|
// Platform: android
|
||||||
// 3.3.0-dev-c9de1bc
|
// 3.4.0-rc1
|
||||||
/*
|
/*
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
@ -19,8 +19,8 @@
|
|||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
;(function() {
|
;(function() {
|
||||||
var CORDOVA_JS_BUILD_LABEL = '3.3.0-dev-c9de1bc';
|
var CORDOVA_JS_BUILD_LABEL = '3.4.0-rc1';
|
||||||
// file: lib/scripts/require.js
|
// file: src/scripts/require.js
|
||||||
|
|
||||||
/*jshint -W079 */
|
/*jshint -W079 */
|
||||||
/*jshint -W020 */
|
/*jshint -W020 */
|
||||||
@ -34,7 +34,7 @@ var require,
|
|||||||
requireStack = [],
|
requireStack = [],
|
||||||
// Map of module ID -> index into requireStack of modules currently being built.
|
// Map of module ID -> index into requireStack of modules currently being built.
|
||||||
inProgressModules = {},
|
inProgressModules = {},
|
||||||
SEPERATOR = ".";
|
SEPARATOR = ".";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ var require,
|
|||||||
var resultantId = id;
|
var resultantId = id;
|
||||||
//Its a relative path, so lop off the last portion and add the id (minus "./")
|
//Its a relative path, so lop off the last portion and add the id (minus "./")
|
||||||
if (id.charAt(0) === ".") {
|
if (id.charAt(0) === ".") {
|
||||||
resultantId = module.id.slice(0, module.id.lastIndexOf(SEPERATOR)) + SEPERATOR + id.slice(2);
|
resultantId = module.id.slice(0, module.id.lastIndexOf(SEPARATOR)) + SEPARATOR + id.slice(2);
|
||||||
}
|
}
|
||||||
return require(resultantId);
|
return require(resultantId);
|
||||||
};
|
};
|
||||||
@ -98,7 +98,7 @@ if (typeof module === "object" && typeof require === "function") {
|
|||||||
module.exports.define = define;
|
module.exports.define = define;
|
||||||
}
|
}
|
||||||
|
|
||||||
// file: lib/cordova.js
|
// file: src/cordova.js
|
||||||
define("cordova", function(require, exports, module) {
|
define("cordova", function(require, exports, module) {
|
||||||
|
|
||||||
|
|
||||||
@ -316,7 +316,7 @@ module.exports = cordova;
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/android/android/nativeapiprovider.js
|
// file: src/android/android/nativeapiprovider.js
|
||||||
define("cordova/android/nativeapiprovider", function(require, exports, module) {
|
define("cordova/android/nativeapiprovider", function(require, exports, module) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -339,7 +339,7 @@ module.exports = {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/android/android/promptbasednativeapi.js
|
// file: src/android/android/promptbasednativeapi.js
|
||||||
define("cordova/android/promptbasednativeapi", function(require, exports, module) {
|
define("cordova/android/promptbasednativeapi", function(require, exports, module) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -361,7 +361,7 @@ module.exports = {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/argscheck.js
|
// file: src/common/argscheck.js
|
||||||
define("cordova/argscheck", function(require, exports, module) {
|
define("cordova/argscheck", function(require, exports, module) {
|
||||||
|
|
||||||
var exec = require('cordova/exec');
|
var exec = require('cordova/exec');
|
||||||
@ -427,7 +427,7 @@ moduleExports.enableChecks = true;
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/base64.js
|
// file: src/common/base64.js
|
||||||
define("cordova/base64", function(require, exports, module) {
|
define("cordova/base64", function(require, exports, module) {
|
||||||
|
|
||||||
var base64 = exports;
|
var base64 = exports;
|
||||||
@ -483,7 +483,7 @@ function uint8ToBase64(rawData) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/builder.js
|
// file: src/common/builder.js
|
||||||
define("cordova/builder", function(require, exports, module) {
|
define("cordova/builder", function(require, exports, module) {
|
||||||
|
|
||||||
var utils = require('cordova/utils');
|
var utils = require('cordova/utils');
|
||||||
@ -552,7 +552,7 @@ function include(parent, objects, clobber, merge) {
|
|||||||
include(result, obj.children, clobber, merge);
|
include(result, obj.children, clobber, merge);
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
utils.alert('Exception building cordova JS globals: ' + e + ' for key "' + key + '"');
|
utils.alert('Exception building Cordova JS globals: ' + e + ' for key "' + key + '"');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -596,7 +596,7 @@ exports.replaceHookForTesting = function() {};
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/channel.js
|
// file: src/common/channel.js
|
||||||
define("cordova/channel", function(require, exports, module) {
|
define("cordova/channel", function(require, exports, module) {
|
||||||
|
|
||||||
var utils = require('cordova/utils'),
|
var utils = require('cordova/utils'),
|
||||||
@ -837,7 +837,7 @@ module.exports = channel;
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/android/exec.js
|
// file: src/android/exec.js
|
||||||
define("cordova/exec", function(require, exports, module) {
|
define("cordova/exec", function(require, exports, module) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1074,7 +1074,7 @@ module.exports = androidExec;
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/exec/proxy.js
|
// file: src/common/exec/proxy.js
|
||||||
define("cordova/exec/proxy", function(require, exports, module) {
|
define("cordova/exec/proxy", function(require, exports, module) {
|
||||||
|
|
||||||
|
|
||||||
@ -1104,7 +1104,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/init.js
|
// file: src/common/init.js
|
||||||
define("cordova/init", function(require, exports, module) {
|
define("cordova/init", function(require, exports, module) {
|
||||||
|
|
||||||
var channel = require('cordova/channel');
|
var channel = require('cordova/channel');
|
||||||
@ -1218,7 +1218,7 @@ channel.join(function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/modulemapper.js
|
// file: src/common/modulemapper.js
|
||||||
define("cordova/modulemapper", function(require, exports, module) {
|
define("cordova/modulemapper", function(require, exports, module) {
|
||||||
|
|
||||||
var builder = require('cordova/builder'),
|
var builder = require('cordova/builder'),
|
||||||
@ -1319,7 +1319,7 @@ exports.reset();
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/android/platform.js
|
// file: src/android/platform.js
|
||||||
define("cordova/platform", function(require, exports, module) {
|
define("cordova/platform", function(require, exports, module) {
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -1360,7 +1360,7 @@ module.exports = {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/android/plugin/android/app.js
|
// file: src/android/plugin/android/app.js
|
||||||
define("cordova/plugin/android/app", function(require, exports, module) {
|
define("cordova/plugin/android/app", function(require, exports, module) {
|
||||||
|
|
||||||
var exec = require('cordova/exec');
|
var exec = require('cordova/exec');
|
||||||
@ -1437,10 +1437,11 @@ module.exports = {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/pluginloader.js
|
// file: src/common/pluginloader.js
|
||||||
define("cordova/pluginloader", function(require, exports, module) {
|
define("cordova/pluginloader", function(require, exports, module) {
|
||||||
|
|
||||||
var modulemapper = require('cordova/modulemapper');
|
var modulemapper = require('cordova/modulemapper');
|
||||||
|
var urlutil = require('cordova/urlutil');
|
||||||
|
|
||||||
// Helper function to inject a <script> tag.
|
// Helper function to inject a <script> tag.
|
||||||
function injectScript(url, onload, onerror) {
|
function injectScript(url, onload, onerror) {
|
||||||
@ -1509,11 +1510,14 @@ function handlePluginsObject(path, moduleList, finishPluginLoading) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function injectPluginScript(pathPrefix, finishPluginLoading) {
|
function injectPluginScript(pathPrefix, finishPluginLoading) {
|
||||||
injectScript(pathPrefix + 'cordova_plugins.js', function(){
|
var pluginPath = pathPrefix + 'cordova_plugins.js';
|
||||||
|
|
||||||
|
injectScript(pluginPath, function() {
|
||||||
try {
|
try {
|
||||||
var moduleList = require("cordova/plugin_list");
|
var moduleList = require("cordova/plugin_list");
|
||||||
handlePluginsObject(pathPrefix, moduleList, finishPluginLoading);
|
handlePluginsObject(pathPrefix, moduleList, finishPluginLoading);
|
||||||
} catch (e) {
|
}
|
||||||
|
catch (e) {
|
||||||
// Error loading cordova_plugins.js, file not found or something
|
// Error loading cordova_plugins.js, file not found or something
|
||||||
// this is an acceptable error, pre-3.0.0, so we just move on.
|
// this is an acceptable error, pre-3.0.0, so we just move on.
|
||||||
finishPluginLoading();
|
finishPluginLoading();
|
||||||
@ -1550,24 +1554,24 @@ exports.load = function(callback) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/urlutil.js
|
// file: src/common/urlutil.js
|
||||||
define("cordova/urlutil", function(require, exports, module) {
|
define("cordova/urlutil", function(require, exports, module) {
|
||||||
|
|
||||||
var urlutil = exports;
|
|
||||||
var anchorEl = document.createElement('a');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For already absolute URLs, returns what is passed in.
|
* For already absolute URLs, returns what is passed in.
|
||||||
* For relative URLs, converts them to absolute ones.
|
* For relative URLs, converts them to absolute ones.
|
||||||
*/
|
*/
|
||||||
urlutil.makeAbsolute = function(url) {
|
exports.makeAbsolute = function makeAbsolute(url) {
|
||||||
|
var anchorEl = document.createElement('a');
|
||||||
anchorEl.href = url;
|
anchorEl.href = url;
|
||||||
return anchorEl.href;
|
return anchorEl.href;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: lib/common/utils.js
|
// file: src/common/utils.js
|
||||||
define("cordova/utils", function(require, exports, module) {
|
define("cordova/utils", function(require, exports, module) {
|
||||||
|
|
||||||
var utils = exports;
|
var utils = exports;
|
||||||
@ -1738,7 +1742,7 @@ function UUIDcreatePart(length) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
window.cordova = require('cordova');
|
window.cordova = require('cordova');
|
||||||
// file: lib/scripts/bootstrap.js
|
// file: src/scripts/bootstrap.js
|
||||||
|
|
||||||
require('cordova/init');
|
require('cordova/init');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user