You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by br...@apache.org on 2015/03/06 03:47:24 UTC

[1/5] incubator-ripple git commit: RIPPLE-78 Unexpected prompt for App.messageChannel with Cordova 4.3.0

Repository: incubator-ripple
Updated Branches:
  refs/heads/master 7691a3f6b -> 1d95fed54


RIPPLE-78 Unexpected prompt for App.messageChannel with Cordova 4.3.0

Cordova 4.3.0 adds a call to App.messageChannel during app initialization (on Android). Ripple doesn't know about the messageChannel action, and so displays the 'I Haz Cheeseburger?!?!' prompt to request a response to the exec call.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/7e18e0bf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/7e18e0bf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/7e18e0bf

Branch: refs/heads/master
Commit: 7e18e0bf9a5c14c7149b59556419ec54624cc78a
Parents: 993dc70
Author: Tim Barham <tb...@TB-MAC.local>
Authored: Thu Mar 5 16:41:00 2015 +1000
Committer: Tim Barham <tb...@TB-MAC.local>
Committed: Thu Mar 5 16:41:00 2015 +1000

----------------------------------------------------------------------
 lib/client/platform/cordova/2.0.0/bridge/app.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/7e18e0bf/lib/client/platform/cordova/2.0.0/bridge/app.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/2.0.0/bridge/app.js b/lib/client/platform/cordova/2.0.0/bridge/app.js
index e507148..b7f79c9 100644
--- a/lib/client/platform/cordova/2.0.0/bridge/app.js
+++ b/lib/client/platform/cordova/2.0.0/bridge/app.js
@@ -33,5 +33,9 @@ module.exports = {
 
     overrideBackbutton: function( win, fail, args ) {
         _console.log("Native back button handler was detached.");
+    },
+
+    messageChannel: function () {
+        // NO-OP (exists to support communication from native to JavaScript)
     }
 };


[2/5] incubator-ripple git commit: RIPPLE-79 Cordova Android platform 'App' service renamed 'CoreAndroid'.

Posted by br...@apache.org.
RIPPLE-79 Cordova Android platform 'App' service renamed 'CoreAndroid'.

In cordova-android 4.0.0, the 'App' service has been renamed to 'CoreAndroid'.

This change adds support for the CoreAndroid service - currently identical to the existing App bridge, but of course it may change going forwards (while App should remain unchanged, for backwards compatibility).


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/5b15ae6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/5b15ae6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/5b15ae6f

Branch: refs/heads/master
Commit: 5b15ae6fb91d9a712181dfcdbdf61d948f169546
Parents: 7691a3f
Author: Tim Barham <ti...@microsoft.com>
Authored: Thu Mar 5 17:30:44 2015 +1000
Committer: Tim Barham <ti...@microsoft.com>
Committed: Thu Mar 5 17:30:44 2015 +1000

----------------------------------------------------------------------
 .../cordova/3.0.0/bridge/coreandroid.js         | 41 ++++++++++++++++++++
 lib/client/platform/cordova/3.0.0/spec.js       |  7 +++-
 2 files changed, 47 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/5b15ae6f/lib/client/platform/cordova/3.0.0/bridge/coreandroid.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/3.0.0/bridge/coreandroid.js b/lib/client/platform/cordova/3.0.0/bridge/coreandroid.js
new file mode 100644
index 0000000..b951afb
--- /dev/null
+++ b/lib/client/platform/cordova/3.0.0/bridge/coreandroid.js
@@ -0,0 +1,41 @@
+/*
+ *
+ * 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 _console = ripple('console');
+
+module.exports = {
+    show: function (success) {
+        return success && success();
+    },
+
+    exitApp: function (win, fail, args) {
+        //window.close();
+        _console.warn("Application must exit now.");
+    },
+
+    overrideBackbutton: function (win, fail, args) {
+        _console.log("Native back button handler was detached.");
+    },
+
+    messageChannel: function () {
+        // NO-OP (exists to support communication from native to JavaScript)
+    }
+};

http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/5b15ae6f/lib/client/platform/cordova/3.0.0/spec.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/3.0.0/spec.js b/lib/client/platform/cordova/3.0.0/spec.js
index b4055a3..5e11020 100644
--- a/lib/client/platform/cordova/3.0.0/spec.js
+++ b/lib/client/platform/cordova/3.0.0/spec.js
@@ -54,10 +54,15 @@ module.exports = {
         bridge.add("InAppBrowser", ripple('platform/cordova/3.0.0/bridge/inappbrowser'));
         bridge.add("Vibration", ripple('platform/cordova/3.0.0/bridge/vibration'));
 
+        // RIPPLE-79 cordova-android 4.0.0 renames 'App' service to 'CoreAndroid'. We'll leave
+        // platform/cordova/2.0.0/bridge/app in place for backwards compatibility, and add CoreAndroid
+        // here for the future.
+        bridge.add("CoreAndroid", ripple('platform/cordova/3.0.0/bridge/coreandroid'));
+
         /** external plugins **/
         // scandit barcode scanner @see https://github.com/Scandit/BarcodeScannerPlugin
         bridge.add("ScanditSDK", ripple('platform/cordova/3.0.0/bridge/scanditsdk'));
-        
+
         // RIPPLE-71 BarcodeScaner plugin support @see https://github.com/phonegap-build/BarcodeScanner 
         bridge.add("BarcodeScanner", ripple('platform/cordova/3.0.0/bridge/barcodescanner'));
 


[4/5] incubator-ripple git commit: Merge branch 'RIPPLE-79'

Posted by br...@apache.org.
Merge branch 'RIPPLE-79'

GitHub PR:

https://github.com/apache/incubator-ripple/pull/42


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/76268f2a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/76268f2a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/76268f2a

Branch: refs/heads/master
Commit: 76268f2a62f901a254b659b2868438cb9db8944e
Parents: afbbfb0 5b15ae6
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Mar 5 21:37:24 2015 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Mar 5 21:37:24 2015 -0500

----------------------------------------------------------------------
 .../cordova/3.0.0/bridge/coreandroid.js         | 41 ++++++++++++++++++++
 lib/client/platform/cordova/3.0.0/spec.js       |  7 +++-
 2 files changed, 47 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[3/5] incubator-ripple git commit: Merge branch 'RIPPLE-78'

Posted by br...@apache.org.
Merge branch 'RIPPLE-78'

GitHub PR:

https://github.com/apache/incubator-ripple/pull/41


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/afbbfb08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/afbbfb08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/afbbfb08

Branch: refs/heads/master
Commit: afbbfb08422b4a3bd8c69071673bc3c9972df198
Parents: 7691a3f 7e18e0b
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Mar 5 21:35:37 2015 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Mar 5 21:35:37 2015 -0500

----------------------------------------------------------------------
 lib/client/platform/cordova/2.0.0/bridge/app.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------



[5/5] incubator-ripple git commit: v0.9.28

Posted by br...@apache.org.
v0.9.28


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/1d95fed5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/1d95fed5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/1d95fed5

Branch: refs/heads/master
Commit: 1d95fed5427fc9684318592be49741c0e7d777cb
Parents: 76268f2
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Mar 5 21:43:32 2015 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Mar 5 21:43:32 2015 -0500

----------------------------------------------------------------------
 doc/CHANGELOG.md | 8 ++++++++
 package.json     | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/1d95fed5/doc/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md
index bf82984..f2d3ac4 100644
--- a/doc/CHANGELOG.md
+++ b/doc/CHANGELOG.md
@@ -18,6 +18,14 @@
 # under the License.
 #
 -->
+## v0.9.28 - Mar 5, 2015
+
+* RIPPLE-78 Unexpected prompt for App.messageChannel with Cordova 4.3.0
+  https://github.com/apache/incubator-ripple/pull/41
+
+* RIPPLE-79 Cordova Android platform 'App' service renamed 'CoreAndroid'
+  https://github.com/apache/incubator-ripple/pull/42
+
 ## v0.9.27 - Mar 4, 2015
 
 * The ASF comments are showing up in cli help logs.

http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/1d95fed5/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 059098d..ef8b604 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "ripple-emulator",
-  "version": "0.9.27",
+  "version": "0.9.28",
   "description": "A browser based html5 mobile application development and testing tool",
   "homepage": "http://ripple.incubator.apache.org/",
   "author": {