You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/02/11 00:21:17 UTC

[1/5] git commit: CB-4718 fixed Console plugin not work on wp

Updated Branches:
  refs/heads/master e5050a077 -> 4dde8581c


CB-4718 fixed Console plugin not work on wp


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/8c9b1754
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/8c9b1754
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/8c9b1754

Branch: refs/heads/master
Commit: 8c9b1754d8c10bb1b6b6bbb2dd46b4bd4e6d84ae
Parents: 14e160c
Author: pu-chen <pu...@polyvi.com>
Authored: Thu Oct 31 17:15:11 2013 +0800
Committer: pu-chen <pu...@polyvi.com>
Committed: Thu Oct 31 17:15:11 2013 +0800

----------------------------------------------------------------------
 plugin.xml             |  4 ++--
 src/wp/DebugConsole.cs | 28 +++++++++++++---------------
 2 files changed, 15 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/8c9b1754/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 1311769..9d4eba0 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -37,7 +37,7 @@
     <platform name="wp7">
         <config-file target="config.xml" parent="/*">
             <feature name="Console">
-                <param name="wp-package" value="DebugConsole"/>
+                <param name="wp-package" value="Console"/>
             </feature>
         </config-file>
 
@@ -56,7 +56,7 @@
     <platform name="wp8">
         <config-file target="config.xml" parent="/*">
             <feature name="Console">
-                <param name="wp-package" value="DebugConsole"/>
+                <param name="wp-package" value="Console"/>
             </feature>
         </config-file>
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/8c9b1754/src/wp/DebugConsole.cs
----------------------------------------------------------------------
diff --git a/src/wp/DebugConsole.cs b/src/wp/DebugConsole.cs
index fa9863a..31a7127 100644
--- a/src/wp/DebugConsole.cs
+++ b/src/wp/DebugConsole.cs
@@ -26,24 +26,22 @@ using System.Diagnostics;
 
 namespace WPCordovaClassLib.Cordova.Commands
 {
-
-    public class DebugConsole : BaseCommand
+    public class Console : BaseCommand
     {
-        // warn, error
-        public void log(string msg)
+        public void logLevel(string options)
         {
-            Debug.WriteLine("Log:" + msg);
-        }
+            string[] args = JSON.JsonHelper.Deserialize<string[]>(options);
+            string level = args[0];
+            string msg = args[1];
 
-        public void error(string msg)
-        {
-            Debug.WriteLine("Error:" + msg);
+            if (level.Equals("LOG"))
+            {
+                Debug.WriteLine(msg);
+            }
+            else
+            {
+                Debug.WriteLine(level + ": " + msg);
+            }
         }
-
-        public void warn(string msg)
-        {
-            Debug.WriteLine("Warn:" + msg);
-        }
-
     }
 }


[5/5] git commit: CB-5980 Updated version and RELEASENOTES.md for release 0.2.7

Posted by st...@apache.org.
CB-5980 Updated version and RELEASENOTES.md for release 0.2.7


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/4dde8581
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/4dde8581
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/4dde8581

Branch: refs/heads/master
Commit: 4dde8581c47a92d64a5a4f4eef5342e8f4dd0629
Parents: 5c835dc
Author: Steven Gill <st...@gmail.com>
Authored: Wed Feb 5 17:53:58 2014 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Feb 5 17:53:58 2014 -0800

----------------------------------------------------------------------
 RELEASENOTES.md | 4 ++++
 plugin.xml      | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/4dde8581/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index f15f20c..af7d66e 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -36,3 +36,7 @@
 
 ### 0.2.6 (Jan 02, 2014)
 * CB-5658 Add doc/index.md for Console plugin
+
+### 0.2.7 (Feb 05, 2014)
+* Native console needs to be called DebugConsole to avoid ambiguous reference. This commit requires the 3.4.0 version of the native class factory
+* CB-4718 fixed Console plugin not working on wp

http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/4dde8581/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 4bebf02..316c115 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="org.apache.cordova.console"
-      version="0.2.7-dev">
+      version="0.2.7">
 
     <name>Console</name>
     <description>Cordova Console Plugin</description>


[2/5] git commit: CB-5719 Incremented plugin version on dev branch.

Posted by st...@apache.org.
CB-5719 Incremented plugin version on dev branch.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/3382df96
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/3382df96
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/3382df96

Branch: refs/heads/master
Commit: 3382df9683e85ab928927231acbc608e888285c9
Parents: e5050a0
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Jan 2 12:30:52 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Jan 2 12:30:52 2014 -0500

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/3382df96/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 57b1871..4bebf02 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="org.apache.cordova.console"
-      version="0.2.6">
+      version="0.2.7-dev">
 
     <name>Console</name>
     <description>Cordova Console Plugin</description>


[3/5] git commit: Merge branch 'CB-4718' of https://github.com/pu-chen/cordova-plugin-console into dev

Posted by st...@apache.org.
Merge branch 'CB-4718' of https://github.com/pu-chen/cordova-plugin-console into dev


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/117cfbf4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/117cfbf4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/117cfbf4

Branch: refs/heads/master
Commit: 117cfbf4af8834ddad3109ac4eadf79703033b36
Parents: 3382df9 8c9b175
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jan 15 17:35:48 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jan 15 17:35:48 2014 -0800

----------------------------------------------------------------------
 plugin.xml             |  4 ++--
 src/wp/DebugConsole.cs | 28 +++++++++++++---------------
 2 files changed, 15 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/117cfbf4/plugin.xml
----------------------------------------------------------------------


[4/5] git commit: Native console needs to be called DebugConsole to avoid ambiguous reference. This commit requires the 3.4.0 version of the native class factory

Posted by st...@apache.org.
Native console needs to be called DebugConsole to avoid ambiguous reference. This commit requires the 3.4.0 version of the native class factory


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/5c835dc4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/5c835dc4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/5c835dc4

Branch: refs/heads/master
Commit: 5c835dc4c01b0c359116b2d6bbebeb70f9cb0b40
Parents: 117cfbf
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Jan 16 13:35:56 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Jan 16 13:35:56 2014 -0800

----------------------------------------------------------------------
 plugin.xml             | 4 ++--
 src/wp/DebugConsole.cs | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/5c835dc4/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 863f4cb..4bebf02 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -52,7 +52,7 @@
     <platform name="wp7">
         <config-file target="config.xml" parent="/*">
             <feature name="Console">
-                <param name="wp-package" value="Console"/>
+                <param name="wp-package" value="DebugConsole"/>
             </feature>
         </config-file>
 
@@ -71,7 +71,7 @@
     <platform name="wp8">
         <config-file target="config.xml" parent="/*">
             <feature name="Console">
-                <param name="wp-package" value="Console"/>
+                <param name="wp-package" value="DebugConsole"/>
             </feature>
         </config-file>
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/5c835dc4/src/wp/DebugConsole.cs
----------------------------------------------------------------------
diff --git a/src/wp/DebugConsole.cs b/src/wp/DebugConsole.cs
index 31a7127..9bb5476 100644
--- a/src/wp/DebugConsole.cs
+++ b/src/wp/DebugConsole.cs
@@ -26,7 +26,7 @@ using System.Diagnostics;
 
 namespace WPCordovaClassLib.Cordova.Commands
 {
-    public class Console : BaseCommand
+    public class DebugConsole : BaseCommand
     {
         public void logLevel(string options)
         {