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 2014/05/26 23:49:44 UTC

git commit: CB-5653 make visible cordova version. This closes #35

Repository: cordova-wp8
Updated Branches:
  refs/heads/master 18ec1c3af -> 64fe2f60f


CB-5653 make visible cordova version. This closes #35


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

Branch: refs/heads/master
Commit: 64fe2f60ffbc133637c59e9cf844bcb922a7d99c
Parents: 18ec1c3
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon May 26 14:49:23 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon May 26 14:49:23 2014 -0700

----------------------------------------------------------------------
 wp8/template/CordovaWP8AppProj.csproj       |  2 +-
 wp8/template/cordovalib/CordovaView.xaml.cs | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/64fe2f60/wp8/template/CordovaWP8AppProj.csproj
----------------------------------------------------------------------
diff --git a/wp8/template/CordovaWP8AppProj.csproj b/wp8/template/CordovaWP8AppProj.csproj
index 960db28..d1ebc9d 100644
--- a/wp8/template/CordovaWP8AppProj.csproj
+++ b/wp8/template/CordovaWP8AppProj.csproj
@@ -189,7 +189,7 @@
     <None Include="cordova\log.bat" />
     <None Include="cordova\run.bat" />
     <None Include="cordova\version.bat" />
-    <None Include="VERSION" />
+    <Content Include="VERSION" />
     <None Include="Properties\AppManifest.xml">
       <SubType>Designer</SubType>
     </None>

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/64fe2f60/wp8/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/CordovaView.xaml.cs b/wp8/template/cordovalib/CordovaView.xaml.cs
index d190c29..fa3aba6 100644
--- a/wp8/template/cordovalib/CordovaView.xaml.cs
+++ b/wp8/template/cordovalib/CordovaView.xaml.cs
@@ -377,6 +377,18 @@ namespace WPCordovaClassLib
             }
 
             Debug.WriteLine("CordovaBrowser_LoadCompleted");
+
+            string version = "?";
+            System.Windows.Resources.StreamResourceInfo streamInfo = Application.GetResourceStream(new Uri("VERSION", UriKind.Relative));
+            if (streamInfo != null)
+            {
+                using(StreamReader sr = new StreamReader(streamInfo.Stream))
+                {
+                    version = sr.ReadLine();
+                }
+            }
+            Debug.WriteLine("Apache Cordova native platform version " + version + " is starting");
+
             string[] autoloadPlugs = this.configHandler.AutoloadPlugins;
             foreach (string plugName in autoloadPlugs)
             {