Compare commits

...

5 Commits

Author SHA1 Message Date
Steve Gill 6b7eaf2386 Set VERSION to 4.0.1 (via coho) 2015-05-08 15:33:04 -07:00
Steve Gill 1d7c033e52 Update JS snapshot to version 4.0.1 (via coho) 2015-05-08 15:33:03 -07:00
Andrew Grieve f224b1f2d4 CB-8834 Don't fail to install on VERSION_DOWNGRADE 2015-04-09 11:29:18 -04:00
Andrew Grieve 4ac6916dd0 Set VERSION to 4.0.0 (via coho) 2015-04-09 11:05:47 -04:00
Andrew Grieve a31107e389 Update JS snapshot to version 4.0.0 (via coho) 2015-04-09 11:05:47 -04:00
7 changed files with 43 additions and 42 deletions
+1 -1
View File
@@ -1 +1 @@
4.0.0-dev 4.0.1
+1 -1
View File
@@ -98,7 +98,7 @@ module.exports.install = function(target, buildResults) {
var launchName = appinfo.getActivityName(); var launchName = appinfo.getActivityName();
console.log('Using apk: ' + apk_path); console.log('Using apk: ' + apk_path);
console.log('Installing app on device...'); console.log('Installing app on device...');
var cmd = 'adb -s ' + resolvedTarget.target + ' install -r "' + apk_path + '"'; var cmd = 'adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"';
return exec(cmd, os.tmpdir()) return exec(cmd, os.tmpdir())
.then(function(output) { .then(function(output) {
if (output.match(/Failure/)) return Q.reject('ERROR: Failed to install apk to device: ' + output); if (output.match(/Failure/)) return Q.reject('ERROR: Failed to install apk to device: ' + output);
+1 -1
View File
@@ -308,7 +308,7 @@ module.exports.install = function(target, buildResults) {
var apk_path = build.findBestApkForArchitecture(buildResults, resolvedTarget.arch); var apk_path = build.findBestApkForArchitecture(buildResults, resolvedTarget.arch);
console.log('Installing app on emulator...'); console.log('Installing app on emulator...');
console.log('Using apk: ' + apk_path); console.log('Using apk: ' + apk_path);
return exec('adb -s ' + resolvedTarget.target + ' install -r "' + apk_path + '"', os.tmpdir()) return exec('adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"', os.tmpdir())
.then(function(output) { .then(function(output) {
if (output.match(/Failure/)) { if (output.match(/Failure/)) {
return Q.reject('Failed to install apk to emulator: ' + output); return Q.reject('Failed to install apk to emulator: ' + output);
+1 -1
View File
@@ -20,6 +20,6 @@
*/ */
// Coho updates this line: // Coho updates this line:
var VERSION = "4.0.0-dev"; var VERSION = "4.0.1";
console.log(VERSION); console.log(VERSION);
+8 -7
View File
@@ -1,5 +1,5 @@
// Platform: android // Platform: android
// fc4db9145934bd0053161cbf9ffc0caf83b770c6 // b0463746dd842818c1f08560e998ec847460596c
/* /*
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,7 +19,7 @@
under the License. under the License.
*/ */
;(function() { ;(function() {
var PLATFORM_VERSION_BUILD_LABEL = '4.0.0-dev'; var PLATFORM_VERSION_BUILD_LABEL = '4.0.1';
// file: src/scripts/require.js // file: src/scripts/require.js
/*jshint -W079 */ /*jshint -W079 */
@@ -101,10 +101,15 @@ if (typeof module === "object" && typeof require === "function") {
// file: src/cordova.js // file: src/cordova.js
define("cordova", function(require, exports, module) { define("cordova", function(require, exports, module) {
if(window.cordova){
throw new Error("cordova already defined");
}
var channel = require('cordova/channel'); var channel = require('cordova/channel');
var platform = require('cordova/platform'); var platform = require('cordova/platform');
/** /**
* Intercept calls to addEventListener + removeEventListener and handle deviceready, * Intercept calls to addEventListener + removeEventListener and handle deviceready,
* resume, and pause events. * resume, and pause events.
@@ -891,11 +896,7 @@ var cordova = require('cordova'),
// For the ONLINE_EVENT to be viable, it would need to intercept all event // For the ONLINE_EVENT to be viable, it would need to intercept all event
// listeners (both through addEventListener and window.ononline) as well // listeners (both through addEventListener and window.ononline) as well
// as set the navigator property itself. // as set the navigator property itself.
ONLINE_EVENT: 2, ONLINE_EVENT: 2
// Uses reflection to access private APIs of the WebView that can send JS
// to be executed.
// Requires Android 3.2.4 or above.
PRIVATE_API: 3
}, },
jsToNativeBridgeMode, // Set lazily. jsToNativeBridgeMode, // Set lazily.
nativeToJsBridgeMode = nativeToJsModes.ONLINE_EVENT, nativeToJsBridgeMode = nativeToJsModes.ONLINE_EVENT,
@@ -31,7 +31,7 @@ import android.webkit.WebChromeClient.CustomViewCallback;
* are not expected to implement it. * are not expected to implement it.
*/ */
public interface CordovaWebView { public interface CordovaWebView {
public static final String CORDOVA_VERSION = "4.0.0-dev"; public static final String CORDOVA_VERSION = "4.0.1";
void init(CordovaInterface cordova, List<PluginEntry> pluginEntries, CordovaPreferences preferences); void init(CordovaInterface cordova, List<PluginEntry> pluginEntries, CordovaPreferences preferences);
+30 -30
View File
@@ -1,31 +1,31 @@
{ {
"name": "cordova-android", "name": "cordova-android",
"version": "4.0.0-dev", "version": "4.0.1",
"description": "cordova-android release", "description": "cordova-android release",
"main": "bin/create", "main": "bin/create",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git-wip-us.apache.org/repos/asf/cordova-android.git" "url": "https://git-wip-us.apache.org/repos/asf/cordova-android.git"
}, },
"keywords": [ "keywords": [
"android", "android",
"cordova", "cordova",
"apache" "apache"
], ],
"scripts": { "scripts": {
"test": "npm run jshint && jasmine-node --color spec", "test": "npm run jshint && jasmine-node --color spec",
"test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app 応用 && \"./test create/cordova/build\" && rm -rf \"test create\"", "test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app 応用 && \"./test create/cordova/build\" && rm -rf \"test create\"",
"jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec" "jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
}, },
"author": "Apache Software Foundation", "author": "Apache Software Foundation",
"license": "Apache version 2.0", "license": "Apache version 2.0",
"dependencies": { "dependencies": {
"q": "^0.9.0", "q": "^0.9.0",
"shelljs": "^0.2.6" "shelljs": "^0.2.6"
}, },
"devDependencies": { "devDependencies": {
"jasmine-node": "^1.14.5", "jasmine-node": "^1.14.5",
"jshint": "^2.6.0", "jshint": "^2.6.0",
"promise-matchers": "~0" "promise-matchers": "~0"
} }
} }