incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [48/50] [abbrv] wp7 commit: Bunch more renaming
Date Thu, 23 Feb 2012 22:29:32 GMT
Bunch more renaming


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/39e1266f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/39e1266f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/39e1266f

Branch: refs/heads/master
Commit: 39e1266f7e92d6396a35d8a35621aedf11af1f20
Parents: 25b09ad
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Feb 10 17:59:39 2012 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Feb 10 17:59:39 2012 -0800

----------------------------------------------------------------------
 example/ApplicationIcon.png                  |  Bin 2475 -> 4951 bytes
 example/Background.png                       |  Bin 3521 -> 10259 bytes
 example/Calculator.cs                        |    6 +-
 example/CordovaSourceDictionary.xml          |   21 +
 example/GapExample.csproj                    |    5 +-
 example/GapExample.sln                       |    2 +-
 example/MainPage.xaml                        |    6 +-
 example/ManifestProcessor.js                 |    6 +-
 example/SplashScreenImage.jpg                |  Bin 8017 -> 22066 bytes
 example/www/contacts.html                    |  148 +-
 example/www/notification.html                |   16 +-
 framework/Cordova/CommandFactory.cs          |    6 +-
 framework/Cordova/Commands/Accelerometer.cs  |    2 +-
 framework/Cordova/Commands/AudioPlayer.cs    |    2 +-
 framework/Cordova/Commands/BaseCommand.cs    |    2 +-
 framework/Cordova/Commands/Camera.cs         |    2 +-
 framework/Cordova/Commands/Capture.cs        |    8 +-
 framework/Cordova/Commands/Compass.cs        |    2 +-
 framework/Cordova/Commands/Connection.cs     |    2 +-
 framework/Cordova/Commands/Contacts.cs       |    2 +-
 framework/Cordova/Commands/DebugConsole.cs   |    2 +-
 framework/Cordova/Commands/Device.cs         |    2 +-
 framework/Cordova/Commands/File.cs           |    2 +-
 framework/Cordova/Commands/FileTransfer.cs   |    2 +-
 framework/Cordova/Commands/GeoLocation.cs    |    2 +-
 framework/Cordova/Commands/Media.cs          |    2 +-
 framework/Cordova/Commands/MimeTypeMapper.cs |    2 +-
 framework/Cordova/Commands/Notification.cs   |    2 +-
 framework/Cordova/DOMStorageHelper.cs        |    4 +-
 framework/Cordova/JSON/JsonHelper.cs         |    2 +-
 framework/Cordova/NativeExecution.cs         |    4 +-
 framework/Cordova/OrientationHelper.cs       |    2 +-
 framework/Cordova/PhoneGapCommandCall.cs     |    2 +-
 framework/Cordova/PluginResult.cs            |    2 +-
 framework/Cordova/ScriptCallback.cs          |    4 +-
 framework/Cordova/UI/AudioCaptureTask.cs     |    2 +-
 framework/Cordova/UI/AudioRecorder.xaml      |    2 +-
 framework/Cordova/UI/AudioRecorder.xaml.cs   |    4 +-
 framework/Cordova/UI/VideoCaptureTask.cs     |    2 +-
 framework/Cordova/UI/VideoRecorder.xaml      |    2 +-
 framework/Cordova/UI/VideoRecorder.xaml.cs   |    4 +-
 framework/CordovaView.xaml                   |   32 +
 framework/CordovaView.xaml.cs                |  400 +++
 framework/Properties/AssemblyInfo.cs         |    6 +-
 framework/WP7CordovaClassLib.csproj          |  158 +
 templates/full/BuildManifestProcessor.js     |   65 +
 templates/full/GapAppProj.csproj             |    4 +-
 templates/full/GapLib/WP7GapClassLib.dll     |  Bin 132096 -> 132096 bytes
 templates/full/www/cordova-1.4.1.js          | 3832 +++++++++++++++++++++
 templates/full/www/index.html                |    8 +-
 50 files changed, 4651 insertions(+), 144 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/ApplicationIcon.png
----------------------------------------------------------------------
diff --git a/example/ApplicationIcon.png b/example/ApplicationIcon.png
index a43e67a..6b69046 100644
Binary files a/example/ApplicationIcon.png and b/example/ApplicationIcon.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/Background.png
----------------------------------------------------------------------
diff --git a/example/Background.png b/example/Background.png
index e46f21d..2667df4 100644
Binary files a/example/Background.png and b/example/Background.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/Calculator.cs
----------------------------------------------------------------------
diff --git a/example/Calculator.cs b/example/Calculator.cs
index 7963fe8..2532926 100644
--- a/example/Calculator.cs
+++ b/example/Calculator.cs
@@ -1,9 +1,9 @@
 
 
 using System.Runtime.Serialization;
-using WP7GapClassLib.Cordova;
-using WP7GapClassLib.Cordova.Commands;
-using WP7GapClassLib.Cordova.JSON;
+using WP7CordovaClassLib.Cordova;
+using WP7CordovaClassLib.Cordova.Commands;
+using WP7CordovaClassLib.Cordova.JSON;
 
 namespace Cordova.Extension.Commands
 {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/CordovaSourceDictionary.xml
----------------------------------------------------------------------
diff --git a/example/CordovaSourceDictionary.xml b/example/CordovaSourceDictionary.xml
new file mode 100644
index 0000000..0183771
--- /dev/null
+++ b/example/CordovaSourceDictionary.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This file is auto-generated, do not edit! -jm -->
+<CordovaSourceDictionary>
+    <FilePath Value="www\accelerometer.html"/>
+    <FilePath Value="www\accelerometer2.html"/>
+    <FilePath Value="www\audio.html"/>
+    <FilePath Value="www\calculator.html"/>
+    <FilePath Value="www\camera.html"/>
+    <FilePath Value="www\capture.html"/>
+    <FilePath Value="www\compass.html"/>
+    <FilePath Value="www\contacts.html"/>
+    <FilePath Value="www\cordova-1.4.1.js"/>
+    <FilePath Value="www\events.html"/>
+    <FilePath Value="www\file.html"/>
+    <FilePath Value="www\index.html"/>
+    <FilePath Value="www\location.html"/>
+    <FilePath Value="www\master.css"/>
+    <FilePath Value="www\network.html"/>
+    <FilePath Value="www\notification.html"/>
+    <FilePath Value="www\storage.html"/>
+</CordovaSourceDictionary>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/GapExample.csproj
----------------------------------------------------------------------
diff --git a/example/GapExample.csproj b/example/GapExample.csproj
index 2754084..b94c638 100644
--- a/example/GapExample.csproj
+++ b/example/GapExample.csproj
@@ -79,6 +79,7 @@
   </ItemGroup>
   <ItemGroup>
     <None Include="ManifestProcessor.js" />
+    <Content Include="CordovaSourceDictionary.xml" />
     <Content Include="www\accelerometer.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
@@ -150,9 +151,9 @@
     <Content Include="SplashScreenImage.jpg" />
   </ItemGroup>
   <ItemGroup>
-    <ProjectReference Include="..\framework\WP7GapClassLib.csproj">
+    <ProjectReference Include="..\framework\WP7CordovaClassLib.csproj">
       <Project>{FC6A1A70-892D-46AD-9E4A-9793F72AF780}</Project>
-      <Name>WP7GapClassLib</Name>
+      <Name>WP7CordovaClassLib</Name>
     </ProjectReference>
   </ItemGroup>
   <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/GapExample.sln
----------------------------------------------------------------------
diff --git a/example/GapExample.sln b/example/GapExample.sln
index 9773ea7..fdb4fd0 100644
--- a/example/GapExample.sln
+++ b/example/GapExample.sln
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 11.00
 # Visual Studio 2010 Express for Windows Phone
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GapExample", "GapExample.csproj", "{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WP7GapClassLib", "..\framework\WP7GapClassLib.csproj", "{FC6A1A70-892D-46AD-9E4A-9793F72AF780}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WP7CordovaClassLib", "..\framework\WP7CordovaClassLib.csproj", "{FC6A1A70-892D-46AD-9E4A-9793F72AF780}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/MainPage.xaml
----------------------------------------------------------------------
diff --git a/example/MainPage.xaml b/example/MainPage.xaml
index 8484473..7a37b1d 100644
--- a/example/MainPage.xaml
+++ b/example/MainPage.xaml
@@ -6,16 +6,18 @@
     xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    xmlns:my="clr-namespace:WP7CordovaClassLib;assembly=WP7CordovaClassLib"
     mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}"
     FontSize="{StaticResource PhoneFontSizeNormal}"
     Foreground="{StaticResource PhoneForegroundBrush}"
     SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
-    shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480" xmlns:my="clr-namespace:WP7GapClassLib;assembly=WP7GapClassLib">
+    shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480">
     <Grid x:Name="LayoutRoot" >
         <Grid.RowDefinitions>
             <RowDefinition Height="*"/>
         </Grid.RowDefinitions>
-        <my:PGView HorizontalAlignment="Stretch" 
+        
+        <my:CordovaView HorizontalAlignment="Stretch" 
                    Margin="0,0,0,0"  
                    Name="PGView" 
                    VerticalAlignment="Stretch" />

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/example/ManifestProcessor.js b/example/ManifestProcessor.js
index 18c2163..d794e70 100644
--- a/example/ManifestProcessor.js
+++ b/example/ManifestProcessor.js
@@ -16,11 +16,11 @@ var fso = WScript.CreateObject("Scripting.FileSystemObject");
 
 var folder = fso.GetFolder("..\\..\\www");
 
-var outFile = fso.CreateTextFile("..\\..\\GapSourceDictionary.xml", true);
+var outFile = fso.CreateTextFile("..\\..\\CordovaSourceDictionary.xml", true);
 
 outFile.WriteLine('<?xml version="1.0" encoding="utf-8"?>');
 outFile.WriteLine('<!-- This file is auto-generated, do not edit! -jm -->');
-outFile.WriteLine('<GapSourceDictionary>');
+outFile.WriteLine('<CordovaSourceDictionary>');
 
 function enumerateFolder(folder,parentPath)
 {
@@ -61,5 +61,5 @@ if(projectFilePath != null)
     }
 }
 
-outFile.WriteLine('</GapSourceDictionary>');
+outFile.WriteLine('</CordovaSourceDictionary>');
 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/SplashScreenImage.jpg
----------------------------------------------------------------------
diff --git a/example/SplashScreenImage.jpg b/example/SplashScreenImage.jpg
index 16e653f..479d3e4 100644
Binary files a/example/SplashScreenImage.jpg and b/example/SplashScreenImage.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/www/contacts.html
----------------------------------------------------------------------
diff --git a/example/www/contacts.html b/example/www/contacts.html
index 5757c8b..530385b 100644
--- a/example/www/contacts.html
+++ b/example/www/contacts.html
@@ -3,9 +3,9 @@
   <head>
     <!-- meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=2.0, maximum-scale=4.0, minimum-scale=1.0" / -->
     <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
     <title>Cordova</title>
-    <link rel="stylesheet" href="master.css" type="text/css" media="screen">
+    <link rel="stylesheet" href="master.css" type="text/css" media="screen"/>
 
       <script type="text/javascript">
         // provide our own console if it does not exist, huge dev aid!
@@ -22,11 +22,12 @@
       </script>
       
       
-    <script type="text/javascript" charset="utf-8" src="cordova-1.4.1.js"></script>       
+    <script type="text/javascript" charset="utf-8" src="cordova-1.4.1.js"></script>
 
-      
+    
 <script type="text/javascript" charset="utf-8">
 
+  
     var deviceReady = false;
 
     //-------------------------------------------------------------------------
@@ -49,9 +50,9 @@
                 }
                 else 
 				{
-                    s = "Number of contacts: "+contacts.length+"<br><table width='100%'><tr><th>Name</th><td>Phone</td><td>Email</td></tr>";
+                    s = "Number of contacts: "+contacts.length+"<br/><table width='100%'><tr><th>Name</th><td>Phone</td><td>Email</td></tr>";
                     
-					for (var i=0; i< contacts.length; i++) 
+					for (var i=0; i < contacts.length; i++) 
 					{
 						try
 						{
@@ -77,81 +78,82 @@
                         s = s + "</td></tr>";
                     }
                     s = s + "</table>";
-                 }
-                      
-				 document.getElementById('contacts_results').innerHTML = s;
-             },
-             function(e) 
-			 {
-                 document.getElementById('contacts_results').innerHTML = "Error: "+e.code;
-              },
-			obj);
-			};
-
-                      function addContact(){
-                      console.log("addContact()");
-                      try{
-
-                      console.log("before create");
-
-                      // create seems to be failing...
-                      var contact = navigator.contacts.create({"displayName": "Dooney Evans"});
-
-                      console.log("contact created");
-
-                      var contactName = {
-                      formatted: "Dooney Evans",
-                      familyName: "Evans",
-                      givenName: "Dooney",
-                      middleName: ""
-                      };
-
-                      console.log("create contactName");
-
-                      contact.name = contactName;
-
-                      contact.phoneNumbers = [new ContactField('work', '512-555-1234', true)];
-
-                      console.log("create contact phone number");
-
-                      contact.save(
-                      function(id) { console.log("Contact saved." + id);},
-                      function(e) { console.log("Contact save failed: " + e.code); }
-                      );
-
-                      console.log("saving the contact");
-                      }
-                      catch (e)
-                      {
-                      //alert(e);
-                      console.log("failed to save contact");
-                      }
-
-                      };
-
-                      /**
-                      * Function called when page has finished loading.
-                      */
-                      function init() {
-                      document.addEventListener("deviceready", function() {
-                      deviceReady = true;
-                      console.log("Device="+device.platform+" "+device.version);
-                      }, false);
-                      window.setTimeout(function() {
-                      if (!deviceReady) {
-                      alert("Error: Cordova did not initialize.  Demo will not run correctly.");
-                      }
-                      },1000);
-                      }
+  }
+
+  document.getElementById('contacts_results').innerHTML = s;
+  },
+  function(e)
+  {
+  document.getElementById('contacts_results').innerHTML = "Error: "+e.code;
+  },
+  obj);
+  };
+
+  function addContact(){
+  console.log("addContact()");
+  try{
+
+  console.log("before create");
+
+  // create seems to be failing...
+  var contact = navigator.contacts.create({"displayName": "Dooney Evans"});
+
+  console.log("contact created");
+
+  var contactName = {
+  formatted: "Dooney Evans",
+  familyName: "Evans",
+  givenName: "Dooney",
+  middleName: ""
+  };
+
+  console.log("create contactName");
+
+  contact.name = contactName;
+
+  contact.phoneNumbers = [new ContactField('work', '512-555-1234', true)];
+
+  console.log("create contact phone number");
+
+  contact.save(
+  function(id) { console.log("Contact saved." + id);},
+  function(e) { console.log("Contact save failed: " + e.code); }
+  );
+
+  console.log("saving the contact");
+  }
+  catch (e)
+  {
+  //alert(e);
+  console.log("failed to save contact");
+  }
+
+  };
+
+  /**
+  * Function called when page has finished loading.
+  */
+  function init() {
+  document.addEventListener("deviceready", function() {
+  deviceReady = true;
+  console.log("Device="+device.platform+" "+device.version);
+  }, false);
+  window.setTimeout(function() {
+  if (!deviceReady) {
+  alert("Error: Cordova did not initialize.  Demo will not run correctly.");
+  }
+  },1000);
+  }
 
                     </script>
+  
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
   
     <h1>Contacts</h1>    
     <div id="info">
-        Results:<br>
+        Results:<br/>
         <span id="contacts_results">&nbsp;</span>
     </div>
     <h2>Action</h2>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/example/www/notification.html
----------------------------------------------------------------------
diff --git a/example/www/notification.html b/example/www/notification.html
index 67d6a02..08640b8 100644
--- a/example/www/notification.html
+++ b/example/www/notification.html
@@ -6,12 +6,11 @@
     <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <!-- ISO-8859-1 -->
     <title>Cordova</title>
     <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
+
+    
+    <script type="text/javascript" charset="utf-8" src="cordova-1.4.1.js"></script>
+
     <script type="text/javascript">
-      // provide our own console if it does not exist, huge dev aid!
-      if(typeof window.console == "undefined")
-      {
-      window.console = {log:function(str){window.external.Notify(str);}};
-      }
 
       // output any errors to console log, created above.
       window.onerror=function(e)
@@ -19,12 +18,7 @@
       console.log("window.onerror ::" + JSON.stringify(e));
       };
 
-      console.log("Installed console ! ");
     </script>
-    
-    <script type="text/javascript" charset="utf-8" src="cordova-1.4.1.js"></script> 
-
-
     <script type="text/javascript" charset="utf-8">
 
       var deviceReady = false;
@@ -95,7 +89,7 @@
       if (!deviceReady) {
       console.log("Error: Cordova did not initialize.  Demo will not run correctly.");
       }
-      },1000);
+      },3000);
       }
 
     </script>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/CommandFactory.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/CommandFactory.cs b/framework/Cordova/CommandFactory.cs
index 3518981..308c490 100644
--- a/framework/Cordova/CommandFactory.cs
+++ b/framework/Cordova/CommandFactory.cs
@@ -23,11 +23,11 @@ using System.Windows.Media;
 using System.Windows.Media.Animation;
 using System.Windows.Shapes;
 using System.Collections.Generic;
-using WP7GapClassLib.Cordova.Commands;
+using WP7CordovaClassLib.Cordova.Commands;
 using System.Reflection;
 using System.Diagnostics;
 
-namespace WP7GapClassLib.Cordova
+namespace WP7CordovaClassLib.Cordova
 {
     /// <summary>
     /// Provides functionality to create phone gap command by name.
@@ -39,7 +39,7 @@ namespace WP7GapClassLib.Cordova
         /// </summary>
         private static readonly string CustomPluginNamespacePrefix = "Cordova.Extension.Commands.";
 
-        private static readonly string BaseCommandNamespacePrefix  = "WP7GapClassLib.Cordova.Commands.";
+        private static readonly string BaseCommandNamespacePrefix  = "WP7CordovaClassLib.Cordova.Commands.";
 
         /// <summary>
         /// Performance optimization allowing more faster create already known commands.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Accelerometer.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Accelerometer.cs b/framework/Cordova/Commands/Accelerometer.cs
index 8c39780..b941d3c 100644
--- a/framework/Cordova/Commands/Accelerometer.cs
+++ b/framework/Cordova/Commands/Accelerometer.cs
@@ -20,7 +20,7 @@ using System.Threading;
 using Microsoft.Devices.Sensors;
 using System.Globalization;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     /// <summary>
     /// Captures device motion in the x, y, and z direction.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/AudioPlayer.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/AudioPlayer.cs b/framework/Cordova/Commands/AudioPlayer.cs
index dcdc5ec..75467ab 100644
--- a/framework/Cordova/Commands/AudioPlayer.cs
+++ b/framework/Cordova/Commands/AudioPlayer.cs
@@ -23,7 +23,7 @@ using Microsoft.Xna.Framework.Audio;
 using Microsoft.Xna.Framework.Media;
 using Microsoft.Phone.Controls;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {    
     /// <summary>
     /// Implements audio record and play back functionality.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/BaseCommand.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/BaseCommand.cs b/framework/Cordova/Commands/BaseCommand.cs
index 6358ac0..575d141 100644
--- a/framework/Cordova/Commands/BaseCommand.cs
+++ b/framework/Cordova/Commands/BaseCommand.cs
@@ -16,7 +16,7 @@ using System;
 using System.Reflection;
 using Microsoft.Phone.Shell;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     public abstract class BaseCommand : IDisposable
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Camera.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Camera.cs b/framework/Cordova/Commands/Camera.cs
index 94663b0..6570644 100644
--- a/framework/Cordova/Commands/Camera.cs
+++ b/framework/Cordova/Commands/Camera.cs
@@ -29,7 +29,7 @@ using System.IO.IsolatedStorage;
 using System.Windows.Media.Imaging;
 using Microsoft.Phone;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     public class Camera : BaseCommand
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Capture.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Capture.cs b/framework/Cordova/Commands/Capture.cs
index c600747..2bf676f 100644
--- a/framework/Cordova/Commands/Capture.cs
+++ b/framework/Cordova/Commands/Capture.cs
@@ -21,11 +21,11 @@ using System.Windows.Media.Imaging;
 using Microsoft.Phone;
 using Microsoft.Phone.Tasks;
 using Microsoft.Xna.Framework.Media;
-using WP7GapClassLib.Cordova.UI;
-using AudioResult = WP7GapClassLib.Cordova.UI.AudioCaptureTask.AudioResult;
-using VideoResult = WP7GapClassLib.Cordova.UI.VideoCaptureTask.VideoResult;
+using WP7CordovaClassLib.Cordova.UI;
+using AudioResult = WP7CordovaClassLib.Cordova.UI.AudioCaptureTask.AudioResult;
+using VideoResult = WP7CordovaClassLib.Cordova.UI.VideoCaptureTask.VideoResult;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     /// <summary>
     /// Provides access to the audio, image, and video capture capabilities of the device

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Compass.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Compass.cs b/framework/Cordova/Commands/Compass.cs
index 9bda086..f8d8aee 100644
--- a/framework/Cordova/Commands/Compass.cs
+++ b/framework/Cordova/Commands/Compass.cs
@@ -31,7 +31,7 @@ using System.Globalization;
 using System.Threading;
 using Microsoft.Devices.Sensors;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
 
     public class Compass : BaseCommand

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Connection.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Connection.cs b/framework/Cordova/Commands/Connection.cs
index 635e4e1..0bd8d21 100644
--- a/framework/Cordova/Commands/Connection.cs
+++ b/framework/Cordova/Commands/Connection.cs
@@ -24,7 +24,7 @@ using System.Windows.Media.Animation;
 using System.Windows.Shapes;
 using Microsoft.Phone.Net.NetworkInformation;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
 
     // http://msdn.microsoft.com/en-us/library/microsoft.phone.net.networkinformation(v=VS.92).aspx

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Contacts.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Contacts.cs b/framework/Cordova/Commands/Contacts.cs
index 575233d..07eaebd 100644
--- a/framework/Cordova/Commands/Contacts.cs
+++ b/framework/Cordova/Commands/Contacts.cs
@@ -32,7 +32,7 @@ using System.Diagnostics;
 using System.Linq;
 
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     [DataContract]
     public class SearchOptions

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/DebugConsole.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/DebugConsole.cs b/framework/Cordova/Commands/DebugConsole.cs
index 9478a8d..32504fd 100644
--- a/framework/Cordova/Commands/DebugConsole.cs
+++ b/framework/Cordova/Commands/DebugConsole.cs
@@ -24,7 +24,7 @@ using System.Windows.Media.Animation;
 using System.Windows.Shapes;
 using System.Diagnostics;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
 
     public class DebugConsole : BaseCommand

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Device.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Device.cs b/framework/Cordova/Commands/Device.cs
index a5b2bd5..6b59b13 100644
--- a/framework/Cordova/Commands/Device.cs
+++ b/framework/Cordova/Commands/Device.cs
@@ -28,7 +28,7 @@ using System.Windows.Resources;
 using System.IO;
 using System.Diagnostics;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     public class Device : BaseCommand
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/File.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/File.cs b/framework/Cordova/Commands/File.cs
index 8bf37c3..fa9c5d9 100644
--- a/framework/Cordova/Commands/File.cs
+++ b/framework/Cordova/Commands/File.cs
@@ -20,7 +20,7 @@ using System.Runtime.Serialization;
 using System.Security;
 using System.Text;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     /// <summary>
     /// Provides access to isolated storage

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/FileTransfer.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/FileTransfer.cs b/framework/Cordova/Commands/FileTransfer.cs
index 527521e..d595bcb 100644
--- a/framework/Cordova/Commands/FileTransfer.cs
+++ b/framework/Cordova/Commands/FileTransfer.cs
@@ -20,7 +20,7 @@ using System.Net;
 using System.Runtime.Serialization;
 using System.Windows;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     public class FileTransfer : BaseCommand
     {                

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/GeoLocation.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/GeoLocation.cs b/framework/Cordova/Commands/GeoLocation.cs
index 545fc46..49a4787 100644
--- a/framework/Cordova/Commands/GeoLocation.cs
+++ b/framework/Cordova/Commands/GeoLocation.cs
@@ -18,7 +18,7 @@ using System.Runtime.Serialization;
 using System.Threading;
 using System.Device.Location;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     /// <summary>
     /// This is a command stub, the browser provides the correct implementation.  We use this to trigger the static analyzer that we require this permission 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Media.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Media.cs b/framework/Cordova/Commands/Media.cs
index d9539fb..9f669b0 100644
--- a/framework/Cordova/Commands/Media.cs
+++ b/framework/Cordova/Commands/Media.cs
@@ -17,7 +17,7 @@ using System.Collections.Generic;
 using System.Runtime.Serialization;
 using System.Windows;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     /// <summary>
     /// Provides the ability to record and play back audio files on a device. 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/MimeTypeMapper.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/MimeTypeMapper.cs b/framework/Cordova/Commands/MimeTypeMapper.cs
index 3493b98..2ca58e6 100644
--- a/framework/Cordova/Commands/MimeTypeMapper.cs
+++ b/framework/Cordova/Commands/MimeTypeMapper.cs
@@ -15,7 +15,7 @@
 using System.Collections.Generic;
 using System.IO;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     /// <summary>
     /// Represents file extension to mime type mapper.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/Commands/Notification.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Notification.cs b/framework/Cordova/Commands/Notification.cs
index 5746662..b9ecc87 100644
--- a/framework/Cordova/Commands/Notification.cs
+++ b/framework/Cordova/Commands/Notification.cs
@@ -22,7 +22,7 @@ using System.Windows.Resources;
 using Microsoft.Phone.Controls;
 using Microsoft.Xna.Framework.Audio;
 
-namespace WP7GapClassLib.Cordova.Commands
+namespace WP7CordovaClassLib.Cordova.Commands
 {
     public class Notification : BaseCommand
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/DOMStorageHelper.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/DOMStorageHelper.cs b/framework/Cordova/DOMStorageHelper.cs
index 987d8ab..52298e5 100644
--- a/framework/Cordova/DOMStorageHelper.cs
+++ b/framework/Cordova/DOMStorageHelper.cs
@@ -26,14 +26,14 @@ using System.IO.IsolatedStorage;
 using System.Collections.Generic;
 using Microsoft.Phone.Controls;
 using System.Linq;
-using WP7GapClassLib.Cordova.JSON;
+using WP7CordovaClassLib.Cordova.JSON;
 
 /*
  * Translates DOMStorage API between JS and Isolated Storage
  * Missing pieces : QUOTA_EXCEEDED_ERR  + StorageEvent  
  * */
 
-namespace WP7GapClassLib
+namespace WP7CordovaClassLib
 {
     public class DOMStorageHelper
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/JSON/JsonHelper.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/JSON/JsonHelper.cs b/framework/Cordova/JSON/JsonHelper.cs
index bf5a401..325a20d 100644
--- a/framework/Cordova/JSON/JsonHelper.cs
+++ b/framework/Cordova/JSON/JsonHelper.cs
@@ -27,7 +27,7 @@ using System.IO;
 using System.Collections.Generic;
 using System.Text;
 
-namespace WP7GapClassLib.Cordova.JSON
+namespace WP7CordovaClassLib.Cordova.JSON
 {
     /// <summary>
     /// Provides JSON serialization/deserialization functionality.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/NativeExecution.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/NativeExecution.cs b/framework/Cordova/NativeExecution.cs
index 720d3f9..253c9e3 100644
--- a/framework/Cordova/NativeExecution.cs
+++ b/framework/Cordova/NativeExecution.cs
@@ -17,9 +17,9 @@ using System.Diagnostics;
 using System.Threading;
 using Microsoft.Devices;
 using Microsoft.Phone.Controls;
-using WP7GapClassLib.Cordova.Commands;
+using WP7CordovaClassLib.Cordova.Commands;
 
-namespace WP7GapClassLib.Cordova
+namespace WP7CordovaClassLib.Cordova
 {
     /// <summary>
     /// Implements logic to execute native command and return result back.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/OrientationHelper.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/OrientationHelper.cs b/framework/Cordova/OrientationHelper.cs
index 5631c93..696fbad 100644
--- a/framework/Cordova/OrientationHelper.cs
+++ b/framework/Cordova/OrientationHelper.cs
@@ -24,7 +24,7 @@ using System.Windows.Media.Animation;
 using System.Windows.Shapes;
 using Microsoft.Phone.Controls;
 
-namespace WP7GapClassLib.Cordova
+namespace WP7CordovaClassLib.Cordova
 {
     public class OrientationHelper
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/PhoneGapCommandCall.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/PhoneGapCommandCall.cs b/framework/Cordova/PhoneGapCommandCall.cs
index 8692472..136308d 100644
--- a/framework/Cordova/PhoneGapCommandCall.cs
+++ b/framework/Cordova/PhoneGapCommandCall.cs
@@ -24,7 +24,7 @@ using System.Windows.Media.Animation;
 using System.Windows.Shapes;
 using System.Linq;
 
-namespace WP7GapClassLib.Cordova
+namespace WP7CordovaClassLib.Cordova
 {
     /// <summary>
     /// Represents Cordova native command call: action callback, etc

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/PluginResult.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/PluginResult.cs b/framework/Cordova/PluginResult.cs
index cb1ea92..8ea3059 100644
--- a/framework/Cordova/PluginResult.cs
+++ b/framework/Cordova/PluginResult.cs
@@ -25,7 +25,7 @@ using System.Windows.Shapes;
 using System.Text;
 using System.Diagnostics;
 
-namespace WP7GapClassLib.Cordova
+namespace WP7CordovaClassLib.Cordova
 {
 	/// <summary>
 	/// Represents command execution result

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/ScriptCallback.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/ScriptCallback.cs b/framework/Cordova/ScriptCallback.cs
index 900954a..7178a77 100644
--- a/framework/Cordova/ScriptCallback.cs
+++ b/framework/Cordova/ScriptCallback.cs
@@ -16,9 +16,9 @@ using System.Windows.Input;
 using System.Windows.Media;
 using System.Windows.Media.Animation;
 using System.Windows.Shapes;
-using WP7GapClassLib.Cordova.JSON;
+using WP7CordovaClassLib.Cordova.JSON;
 
-namespace WP7GapClassLib.Cordova
+namespace WP7CordovaClassLib.Cordova
 {
     /// <summary>
     /// Represents client script function to execute

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/UI/AudioCaptureTask.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/UI/AudioCaptureTask.cs b/framework/Cordova/UI/AudioCaptureTask.cs
index dad7f1b..9a49d0a 100644
--- a/framework/Cordova/UI/AudioCaptureTask.cs
+++ b/framework/Cordova/UI/AudioCaptureTask.cs
@@ -18,7 +18,7 @@ using System.Windows;
 using Microsoft.Phone.Controls;
 using Microsoft.Phone.Tasks;
 
-namespace WP7GapClassLib.Cordova.UI
+namespace WP7CordovaClassLib.Cordova.UI
 {
     /// <summary>
     /// Allows an application to launch the Audio Recording application. 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/UI/AudioRecorder.xaml
----------------------------------------------------------------------
diff --git a/framework/Cordova/UI/AudioRecorder.xaml b/framework/Cordova/UI/AudioRecorder.xaml
index 5f64016..55f5367 100644
--- a/framework/Cordova/UI/AudioRecorder.xaml
+++ b/framework/Cordova/UI/AudioRecorder.xaml
@@ -1,5 +1,5 @@
 <phone:PhoneApplicationPage 
-    x:Class="WP7GapClassLib.Cordova.UI.AudioRecorder"
+    x:Class="WP7CordovaClassLib.Cordova.UI.AudioRecorder"
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/UI/AudioRecorder.xaml.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/UI/AudioRecorder.xaml.cs b/framework/Cordova/UI/AudioRecorder.xaml.cs
index 73fe016..8f19a7b 100644
--- a/framework/Cordova/UI/AudioRecorder.xaml.cs
+++ b/framework/Cordova/UI/AudioRecorder.xaml.cs
@@ -21,9 +21,9 @@ using Microsoft.Phone.Controls;
 using Microsoft.Phone.Tasks;
 using Microsoft.Xna.Framework;
 using Microsoft.Xna.Framework.Audio;
-using AudioResult = WP7GapClassLib.Cordova.UI.AudioCaptureTask.AudioResult;
+using AudioResult = WP7CordovaClassLib.Cordova.UI.AudioCaptureTask.AudioResult;
 
-namespace WP7GapClassLib.Cordova.UI
+namespace WP7CordovaClassLib.Cordova.UI
 {
     /// <summary>
     /// Implements Audio Recording application

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/UI/VideoCaptureTask.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/UI/VideoCaptureTask.cs b/framework/Cordova/UI/VideoCaptureTask.cs
index a954a2a..2796788 100644
--- a/framework/Cordova/UI/VideoCaptureTask.cs
+++ b/framework/Cordova/UI/VideoCaptureTask.cs
@@ -18,7 +18,7 @@ using System.Windows;
 using Microsoft.Phone.Controls;
 using Microsoft.Phone.Tasks;
 
-namespace WP7GapClassLib.Cordova.UI
+namespace WP7CordovaClassLib.Cordova.UI
 {
     /// <summary>
     /// Allows an application to launch the Video Recording application. 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/UI/VideoRecorder.xaml
----------------------------------------------------------------------
diff --git a/framework/Cordova/UI/VideoRecorder.xaml b/framework/Cordova/UI/VideoRecorder.xaml
index 24e0078..abf58b8 100644
--- a/framework/Cordova/UI/VideoRecorder.xaml
+++ b/framework/Cordova/UI/VideoRecorder.xaml
@@ -1,5 +1,5 @@
 <phone:PhoneApplicationPage 
-    x:Class="WP7GapClassLib.Cordova.UI.VideoRecorder"
+    x:Class="WP7CordovaClassLib.Cordova.UI.VideoRecorder"
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Cordova/UI/VideoRecorder.xaml.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/UI/VideoRecorder.xaml.cs b/framework/Cordova/UI/VideoRecorder.xaml.cs
index 96961d5..301a824 100644
--- a/framework/Cordova/UI/VideoRecorder.xaml.cs
+++ b/framework/Cordova/UI/VideoRecorder.xaml.cs
@@ -20,9 +20,9 @@ using System.Windows.Navigation;
 using Microsoft.Phone.Controls;
 using Microsoft.Phone.Shell;
 using Microsoft.Phone.Tasks;
-using VideoResult = WP7GapClassLib.Cordova.UI.VideoCaptureTask.VideoResult;
+using VideoResult = WP7CordovaClassLib.Cordova.UI.VideoCaptureTask.VideoResult;
 
-namespace WP7GapClassLib.Cordova.UI
+namespace WP7CordovaClassLib.Cordova.UI
 {
     public partial class VideoRecorder : PhoneApplicationPage
     {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/CordovaView.xaml
----------------------------------------------------------------------
diff --git a/framework/CordovaView.xaml b/framework/CordovaView.xaml
new file mode 100644
index 0000000..d24e68b
--- /dev/null
+++ b/framework/CordovaView.xaml
@@ -0,0 +1,32 @@
+<UserControl x:Class="WP7CordovaClassLib.CordovaView"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    mc:Ignorable="d"
+    FontFamily="{StaticResource PhoneFontFamilyNormal}"
+    FontSize="{StaticResource PhoneFontSizeNormal}"
+    Foreground="{StaticResource PhoneForegroundBrush}"
+    d:DesignHeight="480" d:DesignWidth="480" 
+    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone">
+    
+    <Grid x:Name="LayoutRoot" Background="Transparent">
+        
+        <phone:WebBrowser x:Name="CordovaBrowser" 
+                          HorizontalAlignment="Stretch"  
+                          VerticalAlignment="Stretch" 
+                          IsScriptEnabled="True" 
+                          Foreground="White"
+                          Navigated="GapBrowser_Navigated" 
+                          Loaded="GapBrowser_Loaded" 
+                          Unloaded="GapBrowser_Unloaded" 
+                          ScriptNotify="GapBrowser_ScriptNotify" 
+                          LoadCompleted="GapBrowser_LoadCompleted" 
+                          Navigating="GapBrowser_Navigating" 
+                          NavigationFailed="GapBrowser_NavigationFailed" 
+                          IsGeolocationEnabled="True" />
+        
+    </Grid>
+</UserControl>
+
+    
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/framework/CordovaView.xaml.cs b/framework/CordovaView.xaml.cs
new file mode 100644
index 0000000..fc44109
--- /dev/null
+++ b/framework/CordovaView.xaml.cs
@@ -0,0 +1,400 @@
+/*  
+	Licensed 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.
+*/
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using Microsoft.Phone.Controls;
+using System.IO.IsolatedStorage;
+using System.Windows.Resources;
+using System.Windows.Interop;
+using System.Runtime.Serialization.Json;
+using System.IO;
+using System.ComponentModel;
+using System.Xml.Linq;
+using WP7CordovaClassLib.Cordova.Commands;
+using System.Diagnostics;
+using System.Text;
+using WP7CordovaClassLib.Cordova;
+using System.Threading;
+using Microsoft.Phone.Shell;
+
+
+
+namespace WP7CordovaClassLib
+{
+    public partial class CordovaView : UserControl
+    {
+       
+        /// <summary>
+        /// Indicates whether web control has been loaded and no additional initialization is needed.
+        /// Prevents data clearing during page transitions.
+        /// </summary>
+        private bool IsBrowserInitialized = false;
+        private bool OverrideBackButton = false;
+
+        private static string AppRoot = "/app/";
+
+
+        /// <summary>
+        /// Handles native api calls
+        /// </summary>
+        private NativeExecution nativeExecution;
+
+        protected DOMStorageHelper domStorageHelper;
+        protected OrientationHelper orientationHelper;
+
+        public System.Windows.Controls.Grid _LayoutRoot
+        {
+            get
+            {
+                return ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
+            }
+        }
+
+        public WebBrowser Browser
+        {
+            get
+            {
+                return CordovaBrowser;
+            }
+        }
+
+        /*
+         * Setting StartPageUri only has an effect if called before the view is loaded.
+         **/
+        protected Uri _startPageUri = null;
+        public Uri StartPageUri
+        {
+            get
+            {
+                if (_startPageUri == null)
+                {
+                    // default
+                    return new Uri( AppRoot + "www/index.html", UriKind.Relative);                    
+                }
+                else
+                {
+                    return _startPageUri;
+                }
+            }
+            set
+            {
+                if (!this.IsBrowserInitialized)
+                {
+                    _startPageUri = value;
+                }
+            }
+        }
+
+        public CordovaView()
+        {
+            
+            InitializeComponent();
+
+            if (DesignerProperties.IsInDesignTool)
+            {
+                return;
+            }
+
+
+            StartupMode mode = PhoneApplicationService.Current.StartupMode;
+
+            if (mode == StartupMode.Launch)
+            {
+                PhoneApplicationService service = PhoneApplicationService.Current;
+                service.Activated += new EventHandler<Microsoft.Phone.Shell.ActivatedEventArgs>(AppActivated);
+                service.Launching += new EventHandler<LaunchingEventArgs>(AppLaunching);
+                service.Deactivated += new EventHandler<DeactivatedEventArgs>(AppDeactivated);
+                service.Closing += new EventHandler<ClosingEventArgs>(AppClosing);
+            }
+            else
+            {
+
+            }
+
+            // initializes native execution logic
+            this.nativeExecution = new NativeExecution(ref this.CordovaBrowser);
+        }
+
+        
+
+        void AppClosing(object sender, ClosingEventArgs e)
+        {
+            Debug.WriteLine("AppClosing");
+        }
+
+        void AppDeactivated(object sender, DeactivatedEventArgs e)
+        {
+            Debug.WriteLine("AppDeactivated");
+
+            try
+            {
+                CordovaBrowser.InvokeScript("CordovaCommandResult", new string[] { "pause" });
+            }
+            catch (Exception)
+            {
+                Debug.WriteLine("Pause event error");
+            } 
+        }
+
+        void AppLaunching(object sender, LaunchingEventArgs e)
+        {
+            Debug.WriteLine("AppLaunching");
+        }
+
+        void AppActivated(object sender, Microsoft.Phone.Shell.ActivatedEventArgs e)
+        {
+            Debug.WriteLine("AppActivated");
+            try
+            {
+                CordovaBrowser.InvokeScript("CordovaCommandResult", new string[] { "resume" });
+            }
+            catch (Exception)
+            {
+                Debug.WriteLine("Resume event error");
+            }  
+        }
+
+        void GapBrowser_Loaded(object sender, RoutedEventArgs e)
+        {
+            if (DesignerProperties.IsInDesignTool)
+            {
+                return;
+            }
+
+            // prevents refreshing web control to initial state during pages transitions
+            if (this.IsBrowserInitialized) return;
+
+            this.domStorageHelper = new DOMStorageHelper(this.CordovaBrowser);
+
+            try
+            {
+
+                // Before we possibly clean the ISO-Store, we need to grab our generated UUID, so we can rewrite it after.
+                string deviceUUID = "";
+
+                using (IsolatedStorageFile appStorage = IsolatedStorageFile.GetUserStoreForApplication())
+                {
+                    try
+                    {
+                        IsolatedStorageFileStream fileStream = new IsolatedStorageFileStream("DeviceID.txt", FileMode.Open, FileAccess.Read, appStorage);
+
+                        using (StreamReader reader = new StreamReader(fileStream))
+                        {
+                            deviceUUID = reader.ReadLine();
+                        }
+                    }
+                    catch (Exception /*ex*/)
+                    {
+                        deviceUUID = Guid.NewGuid().ToString();
+                    }
+
+                    Debug.WriteLine("Updating IsolatedStorage for APP:DeviceID :: " + deviceUUID);
+                    IsolatedStorageFileStream file = new IsolatedStorageFileStream("DeviceID.txt", FileMode.Create, FileAccess.Write, appStorage);
+                    using (StreamWriter writeFile = new StreamWriter(file))
+                    {
+                        writeFile.WriteLine(deviceUUID);
+                        writeFile.Close();
+                    }
+   
+                }
+
+                StreamResourceInfo streamInfo = Application.GetResourceStream(new Uri("CordovaSourceDictionary.xml", UriKind.Relative));
+
+                if (streamInfo != null)
+                {
+                    StreamReader sr = new StreamReader(streamInfo.Stream);
+                    //This will Read Keys Collection for the xml file
+
+                    XDocument document = XDocument.Parse(sr.ReadToEnd());
+
+                    var files = from results in document.Descendants("FilePath")
+                                 select new
+                                 {
+                                     path =  (string)results.Attribute("Value")
+                                 };
+                    StreamResourceInfo fileResourceStreamInfo;
+
+                    using (IsolatedStorageFile appStorage = IsolatedStorageFile.GetUserStoreForApplication())
+                    {
+
+                        foreach (var file in files)
+                        {
+                            fileResourceStreamInfo = Application.GetResourceStream(new Uri(file.path, UriKind.Relative));
+
+                            if (fileResourceStreamInfo != null)
+                            {
+                                using (BinaryReader br = new BinaryReader(fileResourceStreamInfo.Stream))
+                                {
+                                    byte[] data = br.ReadBytes((int)fileResourceStreamInfo.Stream.Length);
+
+                                    string strBaseDir = AppRoot + file.path.Substring(0, file.path.LastIndexOf(System.IO.Path.DirectorySeparatorChar));
+
+                                    if(!appStorage.DirectoryExists(strBaseDir))
+                                    {
+                                        //Debug.WriteLine("Creating Directory :: " + strBaseDir);
+                                        appStorage.CreateDirectory(strBaseDir);
+                                    }
+
+                                    // This will truncate/overwrite an existing file, or 
+                                    using (IsolatedStorageFileStream outFile = appStorage.OpenFile(AppRoot + file.path, FileMode.Create))
+                                    {
+                                        Debug.WriteLine("Writing data for " + AppRoot + file.path + " and length = " + data.Length);
+                                        using (var writer = new BinaryWriter(outFile))
+                                        {
+                                            writer.Write(data);
+                                        }
+                                    }
+                                }
+                            }
+                            else
+                            {
+                                Debug.WriteLine("Failed to write file :: " + file.path + " did you forget to add it to the project?");
+                            }
+                        }
+                    }
+                }
+
+                CordovaBrowser.Navigate(StartPageUri);
+                IsBrowserInitialized = true;
+                AttachHardwareButtonHandlers();
+            }
+            catch (Exception ex)
+            {
+                Debug.WriteLine("Exception in GapBrowser_Loaded :: {0}", ex.Message);
+            }
+        }
+
+        void AttachHardwareButtonHandlers()
+        {
+            PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
+            if (frame != null)
+            {
+                PhoneApplicationPage page = frame.Content as PhoneApplicationPage;
+                 
+                if (page != null)
+                {
+                    page.BackKeyPress += new EventHandler<CancelEventArgs>(page_BackKeyPress);
+
+                    this.orientationHelper = new OrientationHelper(this.CordovaBrowser, page); 
+
+                }
+            }
+        }
+
+        void page_BackKeyPress(object sender, CancelEventArgs e)
+        {
+            if (OverrideBackButton)
+            {
+                try
+                {
+                    CordovaBrowser.InvokeScript("CordovaCommandResult", new string[] { "backbutton" });
+                    e.Cancel = true;
+                }
+                catch (Exception)
+                {
+
+                }
+            }
+        }
+
+        void GapBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
+        {
+            this.CordovaBrowser.Opacity = 1;
+        }
+
+
+        void GapBrowser_Navigating(object sender, NavigatingEventArgs e)
+        {
+            Debug.WriteLine("GapBrowser_Navigating to :: " + e.Uri.ToString());
+            // TODO: tell any running plugins to stop doing what they are doing.
+            // TODO: check whitelist / blacklist
+            // NOTE: Navigation can be cancelled by setting :        e.Cancel = true;
+        }
+
+        /*
+         *  This method does the work of routing commands
+         *  NotifyEventArgs.Value contains a string passed from JS 
+         *  If the command already exists in our map, we will just attempt to call the method(action) specified, and pass the args along
+         *  Otherwise, we create a new instance of the command, add it to the map, and call it ...
+         *  This method may also receive JS error messages caught by window.onerror, in any case where the commandStr does not appear to be a valid command
+         *  it is simply output to the debugger output, and the method returns.
+         * 
+         **/
+        void GapBrowser_ScriptNotify(object sender, NotifyEventArgs e)
+        {
+            string commandStr = e.Value;
+
+            // DOMStorage/Local OR DOMStorage/Session
+            if (commandStr.IndexOf("DOMStorage") == 0)
+            {
+                this.domStorageHelper.HandleStorageCommand(commandStr);
+                return;
+            }
+            else if (commandStr.IndexOf("Orientation") == 0)
+            {
+                this.orientationHelper.HandleCommand(commandStr);
+                return;
+            }
+
+            CordovaCommandCall commandCallParams = CordovaCommandCall.Parse(commandStr);
+
+            if (commandCallParams == null)
+            {
+                // ERROR
+                Debug.WriteLine("ScriptNotify :: " + commandStr);
+            }
+            else if (commandCallParams.Service == "CoreEvents")
+            {
+                switch (commandCallParams.Action.ToLower())
+                {
+                    case "overridebackbutton":
+                        string[] args = Cordova.JSON.JsonHelper.Deserialize<string[]>(commandCallParams.Args);
+                        this.OverrideBackButton = (args != null && args.Length > 0 && args[0] == "true");
+                        break;
+                }
+            }
+            else
+            {
+                this.nativeExecution.ProcessCommand(commandCallParams);
+            }
+        }
+
+        private void GapBrowser_Unloaded(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void GapBrowser_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e)
+        {
+            Debug.WriteLine("GapBrowser_NavigationFailed :: " + e.Uri.ToString());
+        }
+
+        private void GapBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
+        {
+            Debug.WriteLine("GapBrowser_Navigated :: " + e.Uri.ToString());
+        }
+
+       
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/framework/Properties/AssemblyInfo.cs b/framework/Properties/AssemblyInfo.cs
index 578f7bc..1414484 100644
--- a/framework/Properties/AssemblyInfo.cs
+++ b/framework/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
 // General Information about an assembly is controlled through the following 
 // set of attributes. Change these attribute values to modify the information
 // associated with an assembly.
-[assembly: AssemblyTitle("WP7GapClassLib")]
+[assembly: AssemblyTitle("WP7CordovaClassLib")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("WP7GapClassLib")]
+[assembly: AssemblyCompany("Apache Cordova")]
+[assembly: AssemblyProduct("WP7CordovaClassLib")]
 [assembly: AssemblyCopyright("")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/framework/WP7CordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/framework/WP7CordovaClassLib.csproj b/framework/WP7CordovaClassLib.csproj
new file mode 100644
index 0000000..0873080
--- /dev/null
+++ b/framework/WP7CordovaClassLib.csproj
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>10.0.20506</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{FC6A1A70-892D-46AD-9E4A-9793F72AF780}</ProjectGuid>
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>WP7WP7CordovaClassLibClassLib</RootNamespace>
+    <AssemblyName>WP7CordovaClassLib</AssemblyName>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+    <SilverlightApplication>false</SilverlightApplication>
+    <ValidateXaml>true</ValidateXaml>
+    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>Bin\Debug</OutputPath>
+    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+    <NoStdLib>true</NoStdLib>
+    <NoConfig>true</NoConfig>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>Bin\Release</OutputPath>
+    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+    <NoStdLib>true</NoStdLib>
+    <NoConfig>true</NoConfig>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <DocumentationFile>
+    </DocumentationFile>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="Microsoft.Devices.Sensors" />
+    <Reference Include="Microsoft.Phone" />
+    <Reference Include="Microsoft.Phone.Interop" />
+    <Reference Include="Microsoft.Xna.Framework" />
+    <Reference Include="System.Device" />
+    <Reference Include="System.Runtime.Serialization" />
+    <Reference Include="System.Servicemodel" />
+    <Reference Include="System.Servicemodel.Web" />
+    <Reference Include="System.Windows" />
+    <Reference Include="system" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml" />
+    <Reference Include="System.Net" />
+    <Reference Include="System.Xml.Linq" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Cordova\Commands\AudioPlayer.cs" />
+    <Compile Include="Cordova\Commands\Compass.cs" />
+    <Compile Include="Cordova\Commands\GeoLocation.cs" />
+    <Compile Include="Cordova\Commands\Media.cs" />
+    <Compile Include="Cordova\DOMStorageHelper.cs" />
+    <Compile Include="Cordova\JSON\JsonHelper.cs" />
+    <Compile Include="Cordova\Commands\MimeTypeMapper.cs" />
+    <Compile Include="Cordova\OrientationHelper.cs" />
+    <Compile Include="Cordova\PhoneGapCommandCall.cs" />
+    <Compile Include="Cordova\CommandFactory.cs" />
+    <Compile Include="Cordova\Commands\Accelerometer.cs" />
+    <Compile Include="Cordova\Commands\BaseCommand.cs" />
+    <Compile Include="Cordova\Commands\Camera.cs" />
+    <Compile Include="Cordova\Commands\Capture.cs" />
+    <Compile Include="Cordova\Commands\Connection.cs" />
+    <Compile Include="Cordova\Commands\Contacts.cs" />
+    <Compile Include="Cordova\Commands\DebugConsole.cs" />
+    <Compile Include="Cordova\Commands\Device.cs" />
+    <Compile Include="Cordova\Commands\File.cs" />
+    <Compile Include="Cordova\Commands\FileTransfer.cs" />
+    <Compile Include="Cordova\Commands\Notification.cs" />
+    <Compile Include="Cordova\NativeExecution.cs" />
+    <Compile Include="Cordova\PluginResult.cs" />
+    <Compile Include="Cordova\ScriptCallback.cs" />
+    <Compile Include="Cordova\UI\AudioCaptureTask.cs" />
+    <Compile Include="Cordova\UI\AudioRecorder.xaml.cs">
+      <DependentUpon>AudioRecorder.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Cordova\UI\VideoCaptureTask.cs" />
+    <Compile Include="Cordova\UI\VideoRecorder.xaml.cs">
+      <DependentUpon>VideoRecorder.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="CordovaView.xaml.cs">
+      <DependentUpon>CordovaView.xaml</DependentUpon>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <Page Include="CordovaView.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Cordova\UI\AudioRecorder.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Cordova\UI\VideoRecorder.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Images\appbar.back.rest.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Images\appbar.close.rest.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Images\appbar.feature.video.rest.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Images\appbar.next.rest.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Images\appbar.stop.rest.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Images\appbar.save.rest.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
+  <ItemGroup>
+    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="resources\notification-beep.wav" />
+  </ItemGroup>
+  <ItemGroup />
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
+  <ProjectExtensions />
+  <PropertyGroup>
+    <PreBuildEvent>
+    </PreBuildEvent>
+  </PropertyGroup>
+  <PropertyGroup>
+    <PostBuildEvent>
+    </PostBuildEvent>
+  </PropertyGroup>
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/templates/full/BuildManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/full/BuildManifestProcessor.js b/templates/full/BuildManifestProcessor.js
new file mode 100644
index 0000000..376d81d
--- /dev/null
+++ b/templates/full/BuildManifestProcessor.js
@@ -0,0 +1,65 @@
+
+var objArgs = WScript.Arguments;
+for (i = 0; i < objArgs.length; i++)
+{
+   WScript.Echo("Arg :: " + objArgs(i));
+}
+
+var projectFilePath = null;
+if(objArgs && objArgs.length > 0)
+{
+    projectFilePath = objArgs(0);
+}
+
+
+var fso = WScript.CreateObject("Scripting.FileSystemObject");
+
+var folder = fso.GetFolder("..\\..\\www");
+
+var outFile = fso.CreateTextFile("..\\..\\GapSourceDictionary.xml", true);
+
+outFile.WriteLine('<?xml version="1.0" encoding="utf-8"?>');
+outFile.WriteLine('<!-- This file is auto-generated, do not edit! -jm -->');
+outFile.WriteLine('<GapSourceDictionary>');
+
+function enumerateFolder(folder,parentPath)
+{
+	var files = new Enumerator(folder.files);
+	while(!files.atEnd())
+	{
+		WScript.Echo(parentPath + "\\" + fso.GetFileName(files.item()));
+		outFile.WriteLine('    <FilePath Value="' + parentPath + "\\" + fso.GetFileName(files.item()) + '"/>');
+		files.moveNext();
+	}
+
+	var subFolders = new Enumerator(folder.SubFolders);
+	while(!subFolders.atEnd())
+	{
+		var item = subFolders.item();
+		enumerateFolder(item, parentPath + "\\" + fso.GetFileName(item));
+		subFolders.moveNext();
+	}
+}
+enumerateFolder(folder,"www");
+
+// Next we need to get any Linked files from the project
+
+WScript.Echo("Adding Linked Files ...");
+if(projectFilePath != null)
+{
+    var projXml =  WScript.CreateObject("Microsoft.XMLDOM");
+    
+    projXml.async = false;
+    if(projXml.load(projectFilePath))
+    {
+        var nodes = projXml.selectNodes("Project/ItemGroup/Content/Link");
+        WScript.Echo("nodes.length" + nodes.length);
+        for(var n = 0; n < nodes.length; n++)
+        {
+            outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
+        }
+    }
+}
+
+outFile.WriteLine('</CordovaSourceDictionary>');
+

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/templates/full/GapAppProj.csproj
----------------------------------------------------------------------
diff --git a/templates/full/GapAppProj.csproj b/templates/full/GapAppProj.csproj
index 9054738..0d578bf 100644
--- a/templates/full/GapAppProj.csproj
+++ b/templates/full/GapAppProj.csproj
@@ -83,8 +83,8 @@
   <ItemGroup>
     <Content Include="GapLib\WP7GapClassLib.dll" />
     <Content Include="GapSourceDictionary.xml" />
-    <Content Include="www\phonegap-1.4.1.js" />
-    <None Include="ManifestProcessor.js" />
+    <None Include="BuildManifestProcessor.js" />
+    <Content Include="www\cordova-1.4.1.js" />
     <Content Include="www\index.html">
       <SubType>Designer</SubType>
     </Content>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/39e1266f/templates/full/GapLib/WP7GapClassLib.dll
----------------------------------------------------------------------
diff --git a/templates/full/GapLib/WP7GapClassLib.dll b/templates/full/GapLib/WP7GapClassLib.dll
index 3136442..6f7c73a 100644
Binary files a/templates/full/GapLib/WP7GapClassLib.dll and b/templates/full/GapLib/WP7GapClassLib.dll differ


Mime
View raw message