You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2016/10/20 18:50:47 UTC
[1/3] android commit: CB-12038 Updated RELEASENOTES and Version for
release 6.0.0
Repository: cordova-android
Updated Branches:
refs/heads/master efa23bd39 -> 7f9e7c73a
CB-12038 Updated RELEASENOTES and Version for release 6.0.0
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/81dfe963
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/81dfe963
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/81dfe963
Branch: refs/heads/master
Commit: 81dfe96355c7e2d27b5f8e2d71cf0892923cc928
Parents: efa23bd
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Oct 20 11:48:20 2016 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Oct 20 11:48:20 2016 -0700
----------------------------------------------------------------------
RELEASENOTES.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
package.json | 2 +-
2 files changed, 70 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/81dfe963/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 1022869..33157e2 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -20,6 +20,75 @@
-->
## Release Notes for Cordova (Android) ##
+### 6.0.0 (Oct 20, 2016)
+
+This release adds significant functionality, and also introduces a number
+of breaking changes. Some of the changes to the code base will be of
+particular interest to third party webview plugin developers.
+
+#### Major Changes ####
+* Primary bridge is the EVAL_BRIDGE, which tells the WebView to execute JS directly. This is more stable than the ONLINE_EVENT bridge
+* Full Support for Android Nougat (API 24)
+* Ice Cream Sandwich Support has been deprecated. Minimum Supported Android Version is Jellybean (API 16/ Android 4.1)
+* Plugin Installation now CLEANS the build directory, this speeds up gradle build times and allows for CLI develoment to be more predictable
+
+Changes For Third-Party WebView Developers:
+* executeJavascript method added and is an abstract method that must be implemented
+* the EVAL_BRIDGE must be added to the WebView
+
+
+#### Curated Changes from the Git Commit Logs ####
+* Updating the gradle build for test to use the latest
+* CB-11083: Fixing syncronous file check and future-proofing the JS for Travis
+* CB-11083: Reading files to check for CordovaLib dependency, if so, we exclude CordovaLib to be safe
+* CB-11083: Plugin build script for dependencies without a gradle file
+* CB-11083: The GradleBuidler can tell the difference between a Cordova Plugin Framework and a regular framework based on the name
+* CB-11083 Fix to deal with custom frameworks with their own Gradle configuration
+* CB-12003 updated node_modules
+* CB-11771 Deep symlink directories to target project instead of linking the directory itself
+* CB-11880 android: Fail-safe for cordova.exec()
+* CB-11999 add message, catch exception if require fails
+* fix issue with app_name containing apostrophes
+* CB-8722 - Move icons from drawable to mipmap
+* CB-11964 Call clean after plugin install and mock it in tests
+* Did a try/catch to deal with the unit tests vs actual project environment, code duplication is needed because of builderEnv
+* CB-11964: Do a clean when installing a plugin to et around the bug
+* CB-11921 - Add github pull request template
+* CB-11935 Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation.
+* CB-11640: Fixing check_reqs.js so it actually works
+* CB-11640: Changing requirements check to ask for Java 8
+* CB-11869 Fix cordova-js android exec tests
+* CB-11907: Bumping Gradle to work with Android Studio 2.2 and the Android Gradle Plugin
+* Enable background start of Cordova Android apps
+* fixing jshint issues
+* replace Integer.parseInt with BigInteger so that you can use longer Android version codes
+* CB-11828: Adding dirty userAgent checking to see if we're running Jellybean or not for bridge modes
+* CB-11828: Switching default bridge back to ONLINE_BRIDGE
+* Add gradle build flag to enable dex in process for large projects
+* added ability for cordova activity to be viewed in a real full screen regardless of android version (as was the case in previous cordova versions)
+* Updating travis
+* Adding Static Method to CoreAndroid Plugin so we can get the BuildConfig data from other plugins
+* Bump Target and Min API levels
+* Make evaluateJavaScript brige default
+* Creating an evaluateJavascript branch
+* CB-11727 - travis ci setup is still using 0.10.32 node
+* CB-11726 - Update appveyor node versions to 4 and 6, so they will always use the latest versions
+* Close invalid PRs
+* CB-11683 Fixed linking to directories during plugin installation.
+* fixed CB-11078 Empty string for BackgroundColor preference crashes application This closes #316
+* Update JS snapshot to version 5.3.0-dev (via coho)
+* Set VERSION to 5.3.0-dev (via coho)
+* CB-11626 Updated RELEASENOTES and Version for release 5.2.2
+* updated cordoova-common to 1.4.0
+* This closes #195
+* Updaing the gradle for the tests to the latest
+* CB-11550 Updated RELEASENOTES for release 5.2.1
+* CB-9489 Fixed "endless waiting for emulator" issue
+* Update JS snapshot to version 5.3.0-dev (via coho)
+* Set VERSION to 5.3.0-dev (via coho)
+* CB-11444 Updated RELEASENOTES and Version for release 5.2.0
+* CB-11481: android-library is deprecated use com.android.library instead
+
### 5.2.2 (Jul 26, 2016)
* [CB-11615](https://issues.apache.org/jira/browse/CB-11615) updated `cordoova-common` to `1.4.0`
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/81dfe963/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 8fd5d8c..f87ce8c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-android",
- "version": "5.3.0-dev",
+ "version": "6.0.0",
"description": "cordova-android release",
"bin": {
"create": "bin/create"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[3/3] android commit: Update JS snapshot to version 6.1.0-dev (via
coho)
Posted by bo...@apache.org.
Update JS snapshot to version 6.1.0-dev (via coho)
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/7f9e7c73
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/7f9e7c73
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/7f9e7c73
Branch: refs/heads/master
Commit: 7f9e7c73abf0fdc8b91681434adcb30f01edf378
Parents: 3e7be6c
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Oct 20 11:49:04 2016 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Oct 20 11:49:04 2016 -0700
----------------------------------------------------------------------
bin/templates/project/assets/www/cordova.js | 82 ++++++++++++++++--------
1 file changed, 56 insertions(+), 26 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/7f9e7c73/bin/templates/project/assets/www/cordova.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/assets/www/cordova.js b/bin/templates/project/assets/www/cordova.js
index f5e1fe5..27e66d7 100644
--- a/bin/templates/project/assets/www/cordova.js
+++ b/bin/templates/project/assets/www/cordova.js
@@ -1,5 +1,5 @@
// Platform: android
-// 0030f1d859d2a8360b621b0d48072f3f08eb6925
+// 53ea1913735222d326e65326e03391405df3cd4e
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -19,7 +19,7 @@
under the License.
*/
;(function() {
-var PLATFORM_VERSION_BUILD_LABEL = '5.3.0-dev';
+var PLATFORM_VERSION_BUILD_LABEL = '6.1.0-dev';
// file: src/scripts/require.js
/*jshint -W079 */
@@ -330,7 +330,7 @@ module.exports = cordova;
});
-// file: F:/coho/cordova-android/cordova-js-src/android/nativeapiprovider.js
+// file: /Users/jbowser/cordova/cordova-android/cordova-js-src/android/nativeapiprovider.js
define("cordova/android/nativeapiprovider", function(require, exports, module) {
/**
@@ -353,7 +353,7 @@ module.exports = {
});
-// file: F:/coho/cordova-android/cordova-js-src/android/promptbasednativeapi.js
+// file: /Users/jbowser/cordova/cordova-android/cordova-js-src/android/promptbasednativeapi.js
define("cordova/android/promptbasednativeapi", function(require, exports, module) {
/**
@@ -742,8 +742,13 @@ var Channel = function(type, sticky) {
}
};
-function forceFunction(f) {
- if (typeof f != 'function') throw "Function required as first argument!";
+function checkSubscriptionArgument(argument) {
+ if (typeof argument !== "function" && typeof argument.handleEvent !== "function") {
+ throw new Error(
+ "Must provide a function or an EventListener object " +
+ "implementing the handleEvent interface."
+ );
+ }
}
/**
@@ -753,28 +758,39 @@ function forceFunction(f) {
* and a guid that can be used to stop subscribing to the channel.
* Returns the guid.
*/
-Channel.prototype.subscribe = function(f, c) {
- // need a function to call
- forceFunction(f);
+Channel.prototype.subscribe = function(eventListenerOrFunction, eventListener) {
+ checkSubscriptionArgument(eventListenerOrFunction);
+ var handleEvent, guid;
+
+ if (eventListenerOrFunction && typeof eventListenerOrFunction === "object") {
+ // Received an EventListener object implementing the handleEvent interface
+ handleEvent = eventListenerOrFunction.handleEvent;
+ eventListener = eventListenerOrFunction;
+ } else {
+ // Received a function to handle event
+ handleEvent = eventListenerOrFunction;
+ }
+
if (this.state == 2) {
- f.apply(c || this, this.fireArgs);
+ handleEvent.apply(eventListener || this, this.fireArgs);
return;
}
- var func = f,
- guid = f.observer_guid;
- if (typeof c == "object") { func = utils.close(c, f); }
+ guid = eventListenerOrFunction.observer_guid;
+ if (typeof eventListener === "object") {
+ handleEvent = utils.close(eventListener, handleEvent);
+ }
if (!guid) {
- // first time any channel has seen this subscriber
+ // First time any channel has seen this subscriber
guid = '' + nextGuid++;
}
- func.observer_guid = guid;
- f.observer_guid = guid;
+ handleEvent.observer_guid = guid;
+ eventListenerOrFunction.observer_guid = guid;
// Don't add the same handler more than once.
if (!this.handlers[guid]) {
- this.handlers[guid] = func;
+ this.handlers[guid] = handleEvent;
this.numHandlers++;
if (this.numHandlers == 1) {
this.onHasSubscribersChange && this.onHasSubscribersChange();
@@ -785,12 +801,20 @@ Channel.prototype.subscribe = function(f, c) {
/**
* Unsubscribes the function with the given guid from the channel.
*/
-Channel.prototype.unsubscribe = function(f) {
- // need a function to unsubscribe
- forceFunction(f);
+Channel.prototype.unsubscribe = function(eventListenerOrFunction) {
+ checkSubscriptionArgument(eventListenerOrFunction);
+ var handleEvent, guid, handler;
- var guid = f.observer_guid,
- handler = this.handlers[guid];
+ if (eventListenerOrFunction && typeof eventListenerOrFunction === "object") {
+ // Received an EventListener object implementing the handleEvent interface
+ handleEvent = eventListenerOrFunction.handleEvent;
+ } else {
+ // Received a function to handle event
+ handleEvent = eventListenerOrFunction;
+ }
+
+ guid = handleEvent.observer_guid;
+ handler = this.handlers[guid];
if (handler) {
delete this.handlers[guid];
this.numHandlers--;
@@ -862,7 +886,7 @@ module.exports = channel;
});
-// file: F:/coho/cordova-android/cordova-js-src/exec.js
+// file: /Users/jbowser/cordova/cordova-android/cordova-js-src/exec.js
define("cordova/exec", function(require, exports, module) {
/**
@@ -924,6 +948,9 @@ function androidExec(success, fail, service, action, args) {
androidExec.setJsToNativeBridgeMode(jsToNativeModes.JS_OBJECT);
}
+ // If args is not provided, default to an empty array
+ args = args || [];
+
// Process any ArrayBuffers in the args into a string.
for (var i = 0; i < args.length; i++) {
if (utils.typeName(args[i]) == 'ArrayBuffer') {
@@ -1622,7 +1649,7 @@ exports.reset();
});
-// file: F:/coho/cordova-android/cordova-js-src/platform.js
+// file: /Users/jbowser/cordova/cordova-android/cordova-js-src/platform.js
define("cordova/platform", function(require, exports, module) {
// The last resume event that was received that had the result of a plugin call.
@@ -1732,7 +1759,7 @@ function onMessageFromNative(msg) {
});
-// file: F:/coho/cordova-android/cordova-js-src/plugin/android/app.js
+// file: /Users/jbowser/cordova/cordova-android/cordova-js-src/plugin/android/app.js
define("cordova/plugin/android/app", function(require, exports, module) {
var exec = require('cordova/exec');
@@ -2094,7 +2121,10 @@ utils.clone = function(obj) {
retVal = {};
for(i in obj){
- if((!(i in retVal) || retVal[i] != obj[i]) && typeof obj[i] != 'undefined') {
+ // https://issues.apache.org/jira/browse/CB-11522 'unknown' type may be returned in
+ // custom protocol activation case on Windows Phone 8.1 causing "No such interface supported" exception
+ // on cloning.
+ if((!(i in retVal) || retVal[i] != obj[i]) && typeof obj[i] != 'undefined' && typeof obj[i] != 'unknown') {
retVal[i] = utils.clone(obj[i]);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/3] android commit: Set VERSION to 6.1.0-dev (via coho)
Posted by bo...@apache.org.
Set VERSION to 6.1.0-dev (via coho)
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/3e7be6cc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/3e7be6cc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/3e7be6cc
Branch: refs/heads/master
Commit: 3e7be6cc0f594922299830693364888fe788d8ae
Parents: 81dfe96
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Oct 20 11:49:03 2016 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Oct 20 11:49:03 2016 -0700
----------------------------------------------------------------------
VERSION | 2 +-
bin/templates/cordova/version | 2 +-
.../src/org/apache/cordova/CordovaWebView.java | 2 +-
package.json | 96 ++++++++++----------
4 files changed, 51 insertions(+), 51 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3e7be6cc/VERSION
----------------------------------------------------------------------
diff --git a/VERSION b/VERSION
index 41d1aa2..4b740cb 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.3.0-dev
+6.1.0-dev
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3e7be6cc/bin/templates/cordova/version
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/version b/bin/templates/cordova/version
index 7384537..581ffe1 100755
--- a/bin/templates/cordova/version
+++ b/bin/templates/cordova/version
@@ -20,7 +20,7 @@
*/
// Coho updates this line:
-var VERSION = "5.3.0-dev";
+var VERSION = "6.1.0-dev";
module.exports.version = VERSION;
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3e7be6cc/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index b3e26c0..f2a909b 100644
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -31,7 +31,7 @@ import android.webkit.WebChromeClient.CustomViewCallback;
* are not expected to implement it.
*/
public interface CordovaWebView {
- public static final String CORDOVA_VERSION = "5.3.0-dev";
+ public static final String CORDOVA_VERSION = "6.1.0-dev";
void init(CordovaInterface cordova, List<PluginEntry> pluginEntries, CordovaPreferences preferences);
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3e7be6cc/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index f87ce8c..35e13ea 100644
--- a/package.json
+++ b/package.json
@@ -1,49 +1,49 @@
{
- "name": "cordova-android",
- "version": "6.0.0",
- "description": "cordova-android release",
- "bin": {
- "create": "bin/create"
- },
- "main": "bin/templates/cordova/Api.js",
- "repository": {
- "type": "git",
- "url": "https://git-wip-us.apache.org/repos/asf/cordova-android.git"
- },
- "keywords": [
- "android",
- "cordova",
- "apache"
- ],
- "scripts": {
- "test": "npm run jshint && jasmine-node --color spec/unit",
- "cover": "istanbul cover --root bin/templates/cordova --print detail node_modules/jasmine-node/bin/jasmine-node -- spec/unit",
- "test-build": "jasmine-node --captureExceptions --color spec/e2e",
- "jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
- },
- "author": "Apache Software Foundation",
- "license": "Apache-2.0",
- "dependencies": {
- "cordova-common": "^1.5.0",
- "elementtree": "^0.1.6",
- "nopt": "^3.0.1",
- "properties-parser": "^0.2.3",
- "q": "^1.4.1",
- "shelljs": "^0.5.3"
- },
- "bundledDependencies": [
- "cordova-common",
- "elementtree",
- "nopt",
- "properties-parser",
- "q",
- "shelljs"
- ],
- "devDependencies": {
- "istanbul": "^0.4.2",
- "jasmine-node": "^1.14.5",
- "jshint": "^2.6.0",
- "promise-matchers": "~0",
- "rewire": "^2.1.3"
- }
-}
+ "name": "cordova-android",
+ "version": "6.1.0-dev",
+ "description": "cordova-android release",
+ "bin": {
+ "create": "bin/create"
+ },
+ "main": "bin/templates/cordova/Api.js",
+ "repository": {
+ "type": "git",
+ "url": "https://git-wip-us.apache.org/repos/asf/cordova-android.git"
+ },
+ "keywords": [
+ "android",
+ "cordova",
+ "apache"
+ ],
+ "scripts": {
+ "test": "npm run jshint && jasmine-node --color spec/unit",
+ "cover": "istanbul cover --root bin/templates/cordova --print detail node_modules/jasmine-node/bin/jasmine-node -- spec/unit",
+ "test-build": "jasmine-node --captureExceptions --color spec/e2e",
+ "jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
+ },
+ "author": "Apache Software Foundation",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "cordova-common": "^1.5.0",
+ "elementtree": "^0.1.6",
+ "nopt": "^3.0.1",
+ "properties-parser": "^0.2.3",
+ "q": "^1.4.1",
+ "shelljs": "^0.5.3"
+ },
+ "bundledDependencies": [
+ "cordova-common",
+ "elementtree",
+ "nopt",
+ "properties-parser",
+ "q",
+ "shelljs"
+ ],
+ "devDependencies": {
+ "istanbul": "^0.4.2",
+ "jasmine-node": "^1.14.5",
+ "jshint": "^2.6.0",
+ "promise-matchers": "~0",
+ "rewire": "^2.1.3"
+ }
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org