You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/12/05 01:59:33 UTC

git commit: CB-5544 update versions, js for 3.3.0-rc1

Updated Branches:
  refs/heads/3.3.x 9aa586aa7 -> a5dff1fb1
Updated Tags:  refs/tags/3.3.0-rc1 [created] a5dff1fb1


CB-5544 update versions, js for 3.3.0-rc1


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/a5dff1fb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/a5dff1fb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/a5dff1fb

Branch: refs/heads/3.3.x
Commit: a5dff1fb18500faa347d1ad093dc252962173e47
Parents: 9aa586a
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Dec 4 16:58:37 2013 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Dec 4 16:58:37 2013 -0800

----------------------------------------------------------------------
 VERSION                                     |  2 +-
 common/www/cordova.js                       | 45 +++++++++++++++++++++---
 wp7/template/MyTemplate.vstemplate          |  4 +--
 wp7/template/cordovalib/CordovaView.xaml.cs |  2 +-
 wp8/template/MyTemplate.vstemplate          |  4 +--
 5 files changed, 46 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a5dff1fb/VERSION
----------------------------------------------------------------------
diff --git a/VERSION b/VERSION
index 49d2ba3..ee177ba 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.3.0-dev
\ No newline at end of file
+3.3.0-rc1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a5dff1fb/common/www/cordova.js
----------------------------------------------------------------------
diff --git a/common/www/cordova.js b/common/www/cordova.js
index df0c0ff..033285f 100644
--- a/common/www/cordova.js
+++ b/common/www/cordova.js
@@ -1,5 +1,5 @@
 // Platform: windowsphone
-// 3.0.0-dev-56-g579d990
+// 3.3.0-rc1
 /*
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
@@ -19,9 +19,12 @@
  under the License.
 */
 ;(function() {
-var CORDOVA_JS_BUILD_LABEL = '3.0.0-dev-56-g579d990';
+var CORDOVA_JS_BUILD_LABEL = '3.3.0-rc1';
 // file: lib/scripts/require.js
 
+/*jshint -W079 */
+/*jshint -W020 */
+
 var require,
     define;
 
@@ -100,6 +103,7 @@ define("cordova", function(require, exports, module) {
 
 
 var channel = require('cordova/channel');
+var platform = require('cordova/platform');
 
 /**
  * Intercept calls to addEventListener + removeEventListener and handle deviceready,
@@ -172,6 +176,7 @@ var cordova = {
     define:define,
     require:require,
     version:CORDOVA_JS_BUILD_LABEL,
+    platformId:platform.id,
     /**
      * Methods to add/remove your own addEventListener hijacking on document + window.
      */
@@ -502,7 +507,7 @@ function include(parent, objects, clobber, merge) {
                 include(result, obj.children, clobber, merge);
             }
         } catch(e) {
-            utils.alert('Exception building cordova JS globals: ' + e + ' for key "' + key + '"');
+            utils.alert('Exception building Cordova JS globals: ' + e + ' for key "' + key + '"');
         }
     });
 }
@@ -840,6 +845,36 @@ module.exports = function(success, fail, service, action, args) {
 
 });
 
+// file: lib/common/exec/proxy.js
+define("cordova/exec/proxy", function(require, exports, module) {
+
+
+// internal map of proxy function
+var CommandProxyMap = {};
+
+module.exports = {
+
+    // example: cordova.commandProxy.add("Accelerometer",{getCurrentAcceleration: function(successCallback, errorCallback, options) {...},...);
+    add:function(id,proxyObj) {
+        console.log("adding proxy for " + id);
+        CommandProxyMap[id] = proxyObj;
+        return proxyObj;
+    },
+
+    // cordova.commandProxy.remove("Accelerometer");
+    remove:function(id) {
+        var proxy = CommandProxyMap[id];
+        delete CommandProxyMap[id];
+        CommandProxyMap[id] = null;
+        return proxy;
+    },
+
+    get:function(service,action) {
+        return ( CommandProxyMap[service] ? CommandProxyMap[service][action] : null );
+    }
+};
+});
+
 // file: lib/common/init.js
 define("cordova/init", function(require, exports, module) {
 
@@ -1198,8 +1233,8 @@ var anchorEl = document.createElement('a');
  * For relative URLs, converts them to absolute ones.
  */
 urlutil.makeAbsolute = function(url) {
-  anchorEl.href = url;
-  return anchorEl.href;
+    anchorEl.href = url;
+    return anchorEl.href;
 };
 
 });

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a5dff1fb/wp7/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp7/template/MyTemplate.vstemplate b/wp7/template/MyTemplate.vstemplate
index 4d76502..6425e2b 100644
--- a/wp7/template/MyTemplate.vstemplate
+++ b/wp7/template/MyTemplate.vstemplate
@@ -1,13 +1,13 @@
 <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
 	<TemplateData>
-		<Name>CordovaWP7_3_0_0dev</Name>
+		<Name>CordovaWP7_3_3_0-rc1</Name>
 		<Description>Starter project for building a Cordova app for Windows Phone version: 3.1.0-rc1</Description>
 		<ProjectType>CSharp</ProjectType>
 		<ProjectSubType>
 		</ProjectSubType>
 		<SortOrder>1000</SortOrder>
 		<CreateNewFolder>true</CreateNewFolder>
-		<DefaultName>CordovaWP7_3_0_0dev_</DefaultName>
+		<DefaultName>CordovaWP7_3_3_0-rc1_</DefaultName>
 		<ProvideDefaultName>true</ProvideDefaultName>
 		<LocationField>Enabled</LocationField>
 		<EnableLocationBrowseButton>true</EnableLocationBrowseButton>

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a5dff1fb/wp7/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/CordovaView.xaml.cs b/wp7/template/cordovalib/CordovaView.xaml.cs
index 14925f7..7079073 100644
--- a/wp7/template/cordovalib/CordovaView.xaml.cs
+++ b/wp7/template/cordovalib/CordovaView.xaml.cs
@@ -408,7 +408,7 @@ namespace WPCordovaClassLib
             {
                 CordovaBrowser.InvokeScript("execScript", new string[] { nativeReady });
             }
-            catch (Exception ex)
+            catch (Exception /*ex*/)
             {
                 Debug.WriteLine("Error calling js to fire nativeReady event. Did you include cordova.js in your html script tag?");
             }

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a5dff1fb/wp8/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp8/template/MyTemplate.vstemplate b/wp8/template/MyTemplate.vstemplate
index e78e023..36ce506 100644
--- a/wp8/template/MyTemplate.vstemplate
+++ b/wp8/template/MyTemplate.vstemplate
@@ -1,13 +1,13 @@
 <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
 	<TemplateData>
-		<Name>CordovaWP8_3_0_0dev</Name>
+		<Name>CordovaWP8_3_3_0-rc1</Name>
 		<Description>Starter project for building a Cordova app for Windows Phone 8 version: 3.1.0-rc1</Description>
 		<ProjectType>CSharp</ProjectType>
 		<ProjectSubType>
 		</ProjectSubType>
 		<SortOrder>1000</SortOrder>
 		<CreateNewFolder>true</CreateNewFolder>
-		<DefaultName>CordovaWP8_3.0.0dev</DefaultName>
+		<DefaultName>CordovaWP8_3.3.0-rc1</DefaultName>
 		<ProvideDefaultName>true</ProvideDefaultName>
 		<LocationField>Enabled</LocationField>
 		<EnableLocationBrowseButton>true</EnableLocationBrowseButton>