incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/6] wp7 commit: update example to 1.7.0
Date Tue, 01 May 2012 20:54:56 GMT
update example to 1.7.0


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/d20ea8dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/d20ea8dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/d20ea8dc

Branch: refs/heads/master
Commit: d20ea8dc68362977e68f00057dc68cb2e5c2ab0b
Parents: 73a3252
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Mon Apr 30 14:28:39 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Mon Apr 30 14:28:39 2012 -0700

----------------------------------------------------------------------
 example/App.xaml                      |    2 +-
 example/App.xaml.cs                   |    4 +-
 example/BuildManifestProcessor.js     |   63 +
 example/Calculator.cs                 |   29 -
 example/CordovaExample.csproj         |  144 +
 example/CordovaExample.sln            |   22 +
 example/CordovaSourceDictionary.xml   |    9 +-
 example/GapExample.csproj             |  173 -
 example/GapExample.sln                |   28 -
 example/GapLib/WP7CordovaClassLib.dll |  Bin 0 -> 152064 bytes
 example/MainPage.xaml                 |   20 +-
 example/MainPage.xaml.cs              |   23 +-
 example/ManifestProcessor.js          |   65 -
 example/Plugins/Calculator.cs         |   29 +
 example/Properties/AssemblyInfo.cs    |    7 +-
 example/Properties/WMAppManifest.xml  |   36 +-
 example/www/accelerometer.html        |   44 +-
 example/www/accelerometer2.html       |   47 +-
 example/www/audio.html                |   30 +-
 example/www/calculator.html           |   31 +-
 example/www/camera.html               |   33 +-
 example/www/capture.html              |   24 +-
 example/www/compass.html              |   29 +-
 example/www/contacts.html             |   59 +-
 example/www/cordova-1.7.0.js          | 4810 ++++++++++++++++++++++++++++
 example/www/cordova-1.7.0rc1.js       | 4778 ---------------------------
 example/www/cordova.js                |    2 -
 example/www/events.html               |   73 +-
 example/www/file.html                 |   45 +-
 example/www/index.html                |  139 +-
 example/www/location.html             |   57 +-
 example/www/network.html              |   37 +-
 example/www/notification.html         |   19 +-
 example/www/storage.html              |   35 +-
 34 files changed, 5396 insertions(+), 5550 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/App.xaml
----------------------------------------------------------------------
diff --git a/example/App.xaml b/example/App.xaml
index e546a0f..0f4da8b 100644
--- a/example/App.xaml
+++ b/example/App.xaml
@@ -1,5 +1,5 @@
 <Application 
-    x:Class="GapExample.App"
+    x:Class="CordovaExample.App"
     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/d20ea8dc/example/App.xaml.cs
----------------------------------------------------------------------
diff --git a/example/App.xaml.cs b/example/App.xaml.cs
index 2712a69..c6a9375 100644
--- a/example/App.xaml.cs
+++ b/example/App.xaml.cs
@@ -13,7 +13,7 @@ using System.Windows.Shapes;
 using Microsoft.Phone.Controls;
 using Microsoft.Phone.Shell;
 
-namespace GapExample
+namespace CordovaExample
 {
     public partial class App : Application
     {
@@ -35,7 +35,7 @@ namespace GapExample
             if (System.Diagnostics.Debugger.IsAttached)
             {
                 // Display the current frame rate counters.
-                Application.Current.Host.Settings.EnableFrameRateCounter = true;
+                //Application.Current.Host.Settings.EnableFrameRateCounter = true;
 
                 // Show the areas of the app that are being redrawn in each frame.
                 //Application.Current.Host.Settings.EnableRedrawRegions = true;

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/BuildManifestProcessor.js
----------------------------------------------------------------------
diff --git a/example/BuildManifestProcessor.js b/example/BuildManifestProcessor.js
new file mode 100644
index 0000000..e46fc3e
--- /dev/null
+++ b/example/BuildManifestProcessor.js
@@ -0,0 +1,63 @@
+
+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 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('<CordovaSourceDictionary>');
+
+// We need to get any Linked files from the project
+
+WScript.Echo("Adding Source Files ...");
+if (projectFilePath != null) {
+    var projXml = WScript.CreateObject("Microsoft.XMLDOM");
+
+    projXml.async = false;
+    if (projXml.load(projectFilePath)) {
+
+        // add linked content ( windows shortcuts )
+        var nodes = projXml.selectNodes("/Project/ItemGroup/Content/Link");
+        WScript.Echo("/Project/ItemGroup/Content/Link nodes.length" + nodes.length);
+        for (var n = 0; n < nodes.length; n++) {
+            outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
+        }
+
+        // add files of type Resource
+        nodes = projXml.selectNodes("/Project/ItemGroup/Resource/Link");
+        WScript.Echo("/Project/ItemGroup/Resource/Link nodes.length" + nodes.length);
+        for (n = 0; n < nodes.length; n++) {
+            outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
+        }
+
+        // add Content files from www folder
+        nodes = projXml.selectNodes("/Project/ItemGroup/Content[@Include]");
+        WScript.Echo("/Project/ItemGroup/Content nodes.length" + nodes.length);
+        for (n = 0; n < nodes.length; n++) {
+            for (var i = 0; i < nodes[n].attributes.length; i++) {
+
+                if (nodes[n].attributes[i].name == "Include") {
+                    var val = nodes[n].attributes[i].value;
+                    if (val.indexOf("www") == 0) {
+                        WScript.Echo("adding value :: " + val);
+                        outFile.WriteLine('    <FilePath Value="' + val + '"/>');
+                    }
+                }
+            }
+            
+        }
+    }
+}
+
+outFile.WriteLine('</CordovaSourceDictionary>');
+

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/Calculator.cs
----------------------------------------------------------------------
diff --git a/example/Calculator.cs b/example/Calculator.cs
deleted file mode 100644
index 2532926..0000000
--- a/example/Calculator.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-using System.Runtime.Serialization;
-using WP7CordovaClassLib.Cordova;
-using WP7CordovaClassLib.Cordova.Commands;
-using WP7CordovaClassLib.Cordova.JSON;
-
-namespace Cordova.Extension.Commands
-{
-    public class Calculator : BaseCommand
-    {
-
-        [DataContract]
-        public class CalculateParameters
-        {
-            [DataMember]
-            public double x { get; set; }
-            [DataMember]
-            public double y { get; set; }
-        }
-
-        public void sum(string args)
-        {
-            CalculateParameters calcParam = JsonHelper.Deserialize<CalculateParameters> (args);
-
-            this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, calcParam.x + calcParam.y));
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/CordovaExample.csproj
----------------------------------------------------------------------
diff --git a/example/CordovaExample.csproj b/example/CordovaExample.csproj
new file mode 100644
index 0000000..5051590
--- /dev/null
+++ b/example/CordovaExample.csproj
@@ -0,0 +1,144 @@
+<?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>{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}</ProjectGuid>
+    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>CordovaExample</RootNamespace>
+    <AssemblyName>CordovaExample</AssemblyName>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
+    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
+    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
+    <SilverlightApplication>true</SilverlightApplication>
+    <SupportedCultures>
+    </SupportedCultures>
+    <XapOutputs>true</XapOutputs>
+    <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
+    <XapFilename>CordovaExample.xap</XapFilename>
+    <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
+    <SilverlightAppEntry>CordovaExample.App</SilverlightAppEntry>
+    <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>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+    <NoStdLib>true</NoStdLib>
+    <NoConfig>true</NoConfig>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="Microsoft.Phone" />
+    <Reference Include="Microsoft.Phone.Interop" />
+    <Reference Include="System.Runtime.Serialization" />
+    <Reference Include="System.Windows" />
+    <Reference Include="system" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Net" />
+    <Reference Include="System.Xml" />
+    <Reference Include="WP7CordovaClassLib, Version=1.7.0.0, Culture=neutral, processorArchitecture=MSIL" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="MainPage.xaml.cs">
+      <DependentUpon>MainPage.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\Calculator.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ApplicationDefinition Include="App.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </ApplicationDefinition>
+    <Page Include="MainPage.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="CordovaSourceDictionary.xml" />
+    <Content Include="www\network.html" />
+    <Content Include="www\notification.html" />
+    <Content Include="www\storage.html" />
+    <None Include="BuildManifestProcessor.js" />
+    <Content Include="GapLib\WP7CordovaClassLib.dll" />
+    <Content Include="www\accelerometer.html" />
+    <Content Include="www\accelerometer2.html" />
+    <Content Include="www\audio.html" />
+    <Content Include="www\calculator.html" />
+    <Content Include="www\camera.html" />
+    <Content Include="www\capture.html" />
+    <Content Include="www\compass.html" />
+    <Content Include="www\contacts.html" />
+    <Content Include="www\cordova-1.7.0.js" />
+    <Content Include="www\events.html" />
+    <Content Include="www\file.html" />
+    <Content Include="www\index.html">
+      <SubType>Designer</SubType>
+    </Content>
+    <Content Include="www\location.html" />
+    <Content Include="www\master.css" />
+    <None Include="Properties\AppManifest.xml">
+      <SubType>Designer</SubType>
+    </None>
+    <None Include="Properties\WMAppManifest.xml">
+      <SubType>Designer</SubType>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="ApplicationIcon.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="Background.png">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
+    <Content Include="SplashScreenImage.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <WCFMetadata Include="Service References\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+  </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" />
+  <!-- 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>
+  -->
+  <ProjectExtensions />
+  <PropertyGroup>
+    <PreBuildEvent>CScript "$(ProjectDir)/BuildManifestProcessor.js" "$(ProjectPath)"</PreBuildEvent>
+  </PropertyGroup>
+  <PropertyGroup>
+    <PostBuildEvent>
+    </PostBuildEvent>
+  </PropertyGroup>
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/CordovaExample.sln
----------------------------------------------------------------------
diff --git a/example/CordovaExample.sln b/example/CordovaExample.sln
new file mode 100644
index 0000000..17566e5
--- /dev/null
+++ b/example/CordovaExample.sln
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010 Express for Windows Phone
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CordovaExample", "CordovaExample.csproj", "{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+		{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}.Release|Any CPU.Build.0 = Release|Any CPU
+		{0C6DFC84-A3BE-4581-BAAD-85B8CCC17FF8}.Release|Any CPU.Deploy.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/CordovaSourceDictionary.xml
----------------------------------------------------------------------
diff --git a/example/CordovaSourceDictionary.xml b/example/CordovaSourceDictionary.xml
index f191da9..9373112 100644
--- a/example/CordovaSourceDictionary.xml
+++ b/example/CordovaSourceDictionary.xml
@@ -1,6 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- This file is auto-generated, do not edit! -jm -->
 <CordovaSourceDictionary>
+    <FilePath Value="www\network.html"/>
+    <FilePath Value="www\notification.html"/>
+    <FilePath Value="www\storage.html"/>
     <FilePath Value="www\accelerometer.html"/>
     <FilePath Value="www\accelerometer2.html"/>
     <FilePath Value="www\audio.html"/>
@@ -9,14 +12,10 @@
     <FilePath Value="www\capture.html"/>
     <FilePath Value="www\compass.html"/>
     <FilePath Value="www\contacts.html"/>
-    <FilePath Value="www\cordova-1.5.0.js"/>
-    <FilePath Value="www\cordova.js"/>
+    <FilePath Value="www\cordova-1.7.0.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/d20ea8dc/example/GapExample.csproj
----------------------------------------------------------------------
diff --git a/example/GapExample.csproj b/example/GapExample.csproj
deleted file mode 100644
index 37698bc..0000000
--- a/example/GapExample.csproj
+++ /dev/null
@@ -1,173 +0,0 @@
-<?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>{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}</ProjectGuid>
-    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
-    <OutputType>Library</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>GapExample</RootNamespace>
-    <AssemblyName>GapExample</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
-    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
-    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
-    <SilverlightApplication>true</SilverlightApplication>
-    <SupportedCultures>
-    </SupportedCultures>
-    <XapOutputs>true</XapOutputs>
-    <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
-    <XapFilename>GapExample.xap</XapFilename>
-    <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
-    <SilverlightAppEntry>GapExample.App</SilverlightAppEntry>
-    <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>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
-    <NoStdLib>true</NoStdLib>
-    <NoConfig>true</NoConfig>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="Microsoft.Phone" />
-    <Reference Include="Microsoft.Phone.Interop" />
-    <Reference Include="System.Runtime.Serialization" />
-    <Reference Include="System.Windows" />
-    <Reference Include="system" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Net" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="App.xaml.cs">
-      <DependentUpon>App.xaml</DependentUpon>
-    </Compile>
-    <Compile Include="Calculator.cs" />
-    <Compile Include="MainPage.xaml.cs">
-      <DependentUpon>MainPage.xaml</DependentUpon>
-    </Compile>
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <ItemGroup>
-    <ApplicationDefinition Include="App.xaml">
-      <SubType>Designer</SubType>
-      <Generator>MSBuild:Compile</Generator>
-    </ApplicationDefinition>
-    <Page Include="MainPage.xaml">
-      <SubType>Designer</SubType>
-      <Generator>MSBuild:Compile</Generator>
-    </Page>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="ManifestProcessor.js" />
-    <Content Include="CordovaSourceDictionary.xml" />
-    <Content Include="www\accelerometer.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\accelerometer2.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\audio.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\calculator.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\camera.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\capture.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\compass.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\contacts.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\cordova-1.5.0.js" />
-    <Content Include="www\cordova.js" />
-    <Content Include="www\events.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\file.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\index.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-      <SubType>Designer</SubType>
-    </Content>
-    <Content Include="www\location.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\master.css">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\network.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\notification.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="www\storage.html">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <None Include="Properties\AppManifest.xml">
-      <SubType>Designer</SubType>
-    </None>
-    <None Include="Properties\WMAppManifest.xml">
-      <SubType>Designer</SubType>
-    </None>
-  </ItemGroup>
-  <ItemGroup>
-    <Content Include="ApplicationIcon.png">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="Background.png">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
-    <Content Include="SplashScreenImage.jpg" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\framework\WP7CordovaClassLib.csproj">
-      <Project>{FC6A1A70-892D-46AD-9E4A-9793F72AF780}</Project>
-      <Name>WP7CordovaClassLib</Name>
-    </ProjectReference>
-  </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" />
-  <!-- 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>
-  -->
-  <ProjectExtensions />
-  <PropertyGroup>
-    <PreBuildEvent>CScript "$(ProjectDir)/ManifestProcessor.js" "$(ProjectPath)"</PreBuildEvent>
-  </PropertyGroup>
-  <PropertyGroup>
-    <PostBuildEvent>
-    </PostBuildEvent>
-  </PropertyGroup>
-</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/GapExample.sln
----------------------------------------------------------------------
diff --git a/example/GapExample.sln b/example/GapExample.sln
deleted file mode 100644
index fdb4fd0..0000000
--- a/example/GapExample.sln
+++ /dev/null
@@ -1,28 +0,0 @@
-
-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}") = "WP7CordovaClassLib", "..\framework\WP7CordovaClassLib.csproj", "{FC6A1A70-892D-46AD-9E4A-9793F72AF780}"
-EndProject
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Any CPU = Debug|Any CPU
-		Release|Any CPU = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
-		{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|Any CPU.Build.0 = Release|Any CPU
-		{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|Any CPU.Deploy.0 = Release|Any CPU
-		{FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Release|Any CPU.Build.0 = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/GapLib/WP7CordovaClassLib.dll
----------------------------------------------------------------------
diff --git a/example/GapLib/WP7CordovaClassLib.dll b/example/GapLib/WP7CordovaClassLib.dll
new file mode 100644
index 0000000..9aa98ca
Binary files /dev/null and b/example/GapLib/WP7CordovaClassLib.dll differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/MainPage.xaml
----------------------------------------------------------------------
diff --git a/example/MainPage.xaml b/example/MainPage.xaml
index 7a37b1d..e79e14e 100644
--- a/example/MainPage.xaml
+++ b/example/MainPage.xaml
@@ -1,26 +1,34 @@
 <phone:PhoneApplicationPage 
-    x:Class="GapExample.MainPage"
+    x:Class="CordovaExample.MainPage"
     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"
     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}"
+    Background="Black"
     SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
-    shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480">
-    <Grid x:Name="LayoutRoot" >
+    shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480" 
+    xmlns:my="clr-namespace:WP7CordovaClassLib;assembly=WP7CordovaClassLib">
+    <Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch">
         <Grid.RowDefinitions>
             <RowDefinition Height="*"/>
         </Grid.RowDefinitions>
-        
         <my:CordovaView HorizontalAlignment="Stretch" 
                    Margin="0,0,0,0"  
                    Name="PGView" 
                    VerticalAlignment="Stretch" />
+        <Image Source="SplashScreenImage.jpg"
+          x:Name="SplashImage"
+          VerticalAlignment="Center"
+          HorizontalAlignment="Stretch">
+            <Image.Projection>
+                <PlaneProjection x:Name="SplashProjector"  CenterOfRotationX="0"/>
+            </Image.Projection>
+        </Image>
     </Grid>
 
-</phone:PhoneApplicationPage>
\ No newline at end of file
+</phone:PhoneApplicationPage>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/MainPage.xaml.cs
----------------------------------------------------------------------
diff --git a/example/MainPage.xaml.cs b/example/MainPage.xaml.cs
index 106331a..f1ba38c 100644
--- a/example/MainPage.xaml.cs
+++ b/example/MainPage.xaml.cs
@@ -15,7 +15,7 @@ using System.Windows.Media.Imaging;
 using System.Windows.Resources;
 
 
-namespace GapExample
+namespace CordovaExample
 {
     public partial class MainPage : PhoneApplicationPage
     {
@@ -23,11 +23,30 @@ namespace GapExample
         public MainPage()
         {
             InitializeComponent();
+            this.PGView.Loaded += GapBrowser_Loaded;
         }
 
         private void GapBrowser_Loaded(object sender, RoutedEventArgs e)
         {
-            
+            this.PGView.Loaded -= GapBrowser_Loaded;
+            Storyboard _storyBoard = new Storyboard();
+            DoubleAnimation animation = new DoubleAnimation()
+            {
+                From = 0,
+                Duration = TimeSpan.FromSeconds(0.6),
+                To = 90
+            };
+            Storyboard.SetTarget(animation, SplashProjector);
+            Storyboard.SetTargetProperty(animation, new PropertyPath("RotationY"));
+            _storyBoard.Children.Add(animation);
+            _storyBoard.Begin();
+            _storyBoard.Completed += Splash_Completed;
+        }
+
+        void Splash_Completed(object sender, EventArgs e)
+        {
+            (sender as Storyboard).Completed -= Splash_Completed;
+            LayoutRoot.Children.Remove(SplashImage);
         }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/example/ManifestProcessor.js b/example/ManifestProcessor.js
deleted file mode 100644
index d794e70..0000000
--- a/example/ManifestProcessor.js
+++ /dev/null
@@ -1,65 +0,0 @@
-
-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("..\\..\\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('<CordovaSourceDictionary>');
-
-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/d20ea8dc/example/Plugins/Calculator.cs
----------------------------------------------------------------------
diff --git a/example/Plugins/Calculator.cs b/example/Plugins/Calculator.cs
new file mode 100644
index 0000000..2532926
--- /dev/null
+++ b/example/Plugins/Calculator.cs
@@ -0,0 +1,29 @@
+
+
+using System.Runtime.Serialization;
+using WP7CordovaClassLib.Cordova;
+using WP7CordovaClassLib.Cordova.Commands;
+using WP7CordovaClassLib.Cordova.JSON;
+
+namespace Cordova.Extension.Commands
+{
+    public class Calculator : BaseCommand
+    {
+
+        [DataContract]
+        public class CalculateParameters
+        {
+            [DataMember]
+            public double x { get; set; }
+            [DataMember]
+            public double y { get; set; }
+        }
+
+        public void sum(string args)
+        {
+            CalculateParameters calcParam = JsonHelper.Deserialize<CalculateParameters> (args);
+
+            this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, calcParam.x + calcParam.y));
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/example/Properties/AssemblyInfo.cs b/example/Properties/AssemblyInfo.cs
index 49e1f27..9b6cbd9 100644
--- a/example/Properties/AssemblyInfo.cs
+++ b/example/Properties/AssemblyInfo.cs
@@ -1,19 +1,22 @@
 using System.Reflection;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
+using System.Resources;
 
 // 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("GapExample")]
+[assembly: AssemblyTitle("CordovaExample")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("GapExample")]
+[assembly: AssemblyProduct("CordovaExample")]
 [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
 
+[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
 // Setting ComVisible to false makes the types in this assembly not visible 
 // to COM components.  If you need to access a type in this assembly from 
 // COM, set the ComVisible attribute to true on that type.

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/Properties/WMAppManifest.xml
----------------------------------------------------------------------
diff --git a/example/Properties/WMAppManifest.xml b/example/Properties/WMAppManifest.xml
index 4978e3a..4f13f33 100644
--- a/example/Properties/WMAppManifest.xml
+++ b/example/Properties/WMAppManifest.xml
@@ -1,37 +1,39 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
-  <App xmlns="" ProductID="{16782d49-b494-4f58-bec6-7d2e7846e16b}" Title="GapExample" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="GapExample author" Description="Sample description" Publisher="GapExample">
+  <App xmlns="" ProductID="{252f4997-3d6c-4d7a-9d5b-59818888a810}" Title="CordovaExample" 
+       RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal"  
+       Author="CordovaExample author" 
+       Description="PhoneGap for Windows Phone 7" 
+       Publisher="CordovaExample">
+    
     <IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
     <Capabilities>
-      <!--<Capability Name="ID_CAP_APPOINTMENTS"/>-->
-      <Capability Name="ID_CAP_CAMERA"/>
-      <Capability Name="ID_CAP_CONTACTS"/>
-      <!--<Capability Name="ID_CAP_FILEVIEWER"/>-->
-      <!--<Capability Name="ID_CAP_GAMERSERVICES" />-->
       <Capability Name="ID_CAP_IDENTITY_DEVICE" />
       <Capability Name="ID_CAP_IDENTITY_USER" />
-      <!--<Capability Name="ID_CAP_INTEROPSERVICES"/>-->
-      <!--<Capability Name="ID_CAP_ISV_CAMERA"/>-->      
       <Capability Name="ID_CAP_LOCATION" />
-      <Capability Name="ID_CAP_MEDIALIB" />
-      <Capability Name="ID_CAP_MICROPHONE" />
       <Capability Name="ID_CAP_NETWORKING" />
-
-      <Capability Name="ID_CAP_PHONEDIALER" />
-      <Capability Name="ID_CAP_PUSH_NOTIFICATION" />
-      <Capability Name="ID_CAP_RINGTONE_ADD"/>
-      <Capability Name="ID_CAP_SENSORS" />
       <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
+      <Capability Name="ID_CAP_APPOINTMENTS"/>
+      <Capability Name="ID_CAP_CAMERA"/>
+      <Capability Name="ID_CAP_CONTACTS"/>
+      <Capability Name="ID_CAP_ISV_CAMERA"/>
+      <Capability Name="ID_CAP_MEDIALIB"/>
+      <Capability Name="ID_CAP_MICROPHONE"/>
+      <Capability Name="ID_CAP_PHONEDIALER"/>
+      <Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
+      <Capability Name="ID_CAP_SENSORS"/>
+      <Capability Name="ID_HW_FRONTCAMERA"/>      
     </Capabilities>
+    
     <Tasks>
       <DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
     </Tasks>
     <Tokens>
-      <PrimaryToken TokenID="GapExampleToken" TaskName="_default">
+      <PrimaryToken TokenID="CordovaExampleToken" TaskName="_default">
         <TemplateType5>
           <BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI>
           <Count>0</Count>
-          <Title>GapExample</Title>
+          <Title>CordovaExample</Title>
         </TemplateType5>
       </PrimaryToken>
     </Tokens>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/accelerometer.html
----------------------------------------------------------------------
diff --git a/example/www/accelerometer.html b/example/www/accelerometer.html
index c72aea7..cbec655 100644
--- a/example/www/accelerometer.html
+++ b/example/www/accelerometer.html
@@ -1,32 +1,16 @@
 <!DOCTYPE html>
 <html>
   <head>
-   
+
     <meta name="viewport" content="width=device-width, height=device-height, 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"/>
-    
-    	<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)
-			{
-				console.log("window.onerror ::" + JSON.stringify(e));
-			};
-			
-			console.log("Installed console ! ");
-	</script>
-    
-    
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>      
-
-      
+
+
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
+
 <script type="text/javascript" charset="utf-8">
 
   var deviceReady = false;
@@ -140,23 +124,23 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
+
     <h1>Acceleration</h1>
     <div id="info">
         <div id="accel_status">Stopped</div>
         <div><table width="100%">
-            <tr><td width="20%">X:</td><td id="x">&nbsp;</td></tr>
-            <tr><td width="20%">Y:</td><td id="y">&nbsp;</td></tr>
-            <tr><td width="20%">Z:</td><td id="z">&nbsp;</td></tr>
+            <tr><td width="20%">X:</td><td id="x"> </td></tr>
+            <tr><td width="20%">Y:</td><td id="y"> </td></tr>
+            <tr><td width="20%">Z:</td><td id="z"> </td></tr>
         </table></div>
     </div>
-    
+
 
 
     <h2>Action</h2>
     <a href="#" class="btn large" onclick="getAccel();">Get Acceleration</a>
     <a href="#" class="btn large" onclick="watchAccel();">Start Watch</a>
     <a href="#" class="btn large" onclick="stopAccel();">Clear Watch</a>
-    <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
+    <h2> </h2><a href="index.html" class="backBtn">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/accelerometer2.html
----------------------------------------------------------------------
diff --git a/example/www/accelerometer2.html b/example/www/accelerometer2.html
index 0d8dec4..a7210d3 100644
--- a/example/www/accelerometer2.html
+++ b/example/www/accelerometer2.html
@@ -6,27 +6,12 @@
     <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"/>
-    
-    	<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)
-			{
-				console.log("window.onerror ::" + JSON.stringify(e));
-			};
-			
-			console.log("Installed console ! ");
-	</script>
-    
-    
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>      
-
-      
+
+
+
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
+
 <script type="text/javascript" charset="utf-8">
 
 
@@ -121,7 +106,7 @@
 		border-radius:10px;
 		background-color:#FFF;
 	}
-	
+
 	#playfield
 	{
 		position:absolute;
@@ -129,22 +114,22 @@
 		top:220px;
 		width:220px;
 		height:220px;
-		background-color:#ff8800;	
+		background-color:#ff8800;
 	}
-	
+
 	.dButton
 	{
 		width:80px;
 		height:40px;
 		display:inline;
 		float:left;
-		clear:none;	
+		clear:none;
 		border-style:solid;
 		border-width:1px;
 		border-radius:2px;
 		line-height:40px;
 	}
-	
+
 	.backBtnz
 	{
 		position:absolute;
@@ -154,19 +139,19 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
+
     <div id="playfield">
     	<div id="ball">
-        
+
         </div>
     </div>
 
     <h2>Actions</h2>
-    
+
     <div class="dButton" onclick="watchAccel();">Start</div>
     <div class="dButton" onclick="stopAccel();">Stop</div>
-    
+
     <div/>
     <a href="index.html" class="backBtn backBtnz">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/audio.html
----------------------------------------------------------------------
diff --git a/example/www/audio.html b/example/www/audio.html
index 1c8cf9b..1e2bfe3 100644
--- a/example/www/audio.html
+++ b/example/www/audio.html
@@ -7,9 +7,9 @@
     <title>Cordova</title>
     <link rel="stylesheet" href="master.css" type="text/css" media="screen">
 
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>      
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
 
-      
 <script type="text/javascript" charset="utf-8">
 
 
@@ -27,7 +27,7 @@
     function playAudio(path) {
         console.log("playAudio()");
         console.log(" -- media="+media1);
-        var src = path; 
+        var src = path;
 
         // Stop playing if src is different from currently playing source
         if (src != audioSrc) {
@@ -63,10 +63,10 @@
         document.getElementById('audio_duration').innerHTML = "";
         // Play audio
         media1.play();
-        
+
         document.getElementById('play_caption').innerHTML = "Now playing: ";
         document.getElementById('file_name').innerHTML = path;
-        
+
         if (media1Timer == null && media1.getCurrentPosition) {
             media1Timer = setInterval(
                 function() {
@@ -101,8 +101,8 @@
                     document.getElementById('audio_duration').innerHTML = dur + " sec";
                 }
             }, 100);
-            
-    }    
+
+    }
 
     /**
      * Pause audio playback
@@ -226,12 +226,12 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
-    <h1>Audio</h1>  
-    <div id="info">    
+
+    <h1>Audio</h1>
+    <div id="info">
         <table width="100%">
-        <tr><td id="play_caption">Now playing:</td><td id="file_name">&nbsp;</td></tr>
-        <tr><td>Status:</td><td id="audio_status">&nbsp;</td></tr>
+        <tr><td id="play_caption">Now playing:</td><td id="file_name"> </td></tr>
+        <tr><td>Status:</td><td id="audio_status"> </td></tr>
         <tr><td>Duration:</td><td id="audio_duration"></td></tr>
         <tr><td>Position:</td><td id="audio_position"></td></tr>
         </table>
@@ -243,7 +243,7 @@
     <a href="#" class="btn large" onClick="recordAudio();">Record Audio for 10 sec</a>
     <a href="#" class="btn large" onClick="playRecording();">Play/Unpause Recording</a>
     <a href="#" class="btn large" onClick="seekTo();">Seek To 15 sec</a>
-      <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
-    
+      <h2> </h2><a href="index.html" class="backBtn">Back</a>
+
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/calculator.html
----------------------------------------------------------------------
diff --git a/example/www/calculator.html b/example/www/calculator.html
index 86570dc..162fc60 100644
--- a/example/www/calculator.html
+++ b/example/www/calculator.html
@@ -6,28 +6,15 @@
     <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"/>
-   
-    <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) {
-            console.log("window.onerror ::" + JSON.stringify(e));
-        };
 
-        console.log("Installed console ! ");
-    </script>
-   
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
 
-      
 <script type="text/javascript" charset="utf-8">
 
     var deviceReady = false;
-    
+
     /**
     * Function called when page has finished loading.
     */
@@ -45,7 +32,7 @@
 
     function calculateSum() {
 
-        Cordova.exec(
+        cordova.exec(
             function (res) {
                 document.getElementById('res').innerHTML = res;
             },
@@ -61,19 +48,19 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
+
     <h1>Calculator</h1>
-    <div id="info">        
+    <div id="info">
         <span class='tb-label'>X</span> <span id="Span1"></span>
         <input type="text" id="x" value="1" style="width:250px;height:20px;"/>
         <br/>
         <span class='tb-label'>Y</span> <span id="Span2"></span>
-        <input type="text" id="y" value="2" style="width:250px;height:20px;"/>        
+        <input type="text" id="y" value="2" style="width:250px;height:20px;"/>
         <br/>
         Sum: <span id="res"></span>
     </div>
     <h2>Action</h2>
     <a href="#" class="btn large" onclick="calculateSum();">Calculate</a>
-    <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
+    <h2> </h2><a href="index.html" class="backBtn">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/camera.html
----------------------------------------------------------------------
diff --git a/example/www/camera.html b/example/www/camera.html
index 318d279..432732b 100644
--- a/example/www/camera.html
+++ b/example/www/camera.html
@@ -6,40 +6,27 @@
     <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"/>
-   
-    <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) {
-            console.log("window.onerror ::" + JSON.stringify(e));
-        };
 
-        console.log("Installed console ! ");
-    </script>
-   
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>   
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
 
-      
 <script type="text/javascript" charset="utf-8">
 
     var deviceReady = false;
 
     //-------------------------------------------------------------------------
-    // Camera 
+    // Camera
     //-------------------------------------------------------------------------
 
     /**
      * Capture picture
      */
     function getPicture() {
-        
-        //navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50, 
+
+        //navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
         //    destinationType: Camera.DestinationType.FILE_URI, sourceType : Camera.PictureSourceType.CAMERA });
-        
+
         navigator.camera.getPicture(
             function(data) {
                 var img = document.getElementById('camera_image');
@@ -76,7 +63,7 @@
             { quality: 50, destinationType: navigator.camera.DestinationType.FILE_URI, sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY });
     };
 
-    
+
     /**
      * Function called when page has finished loading.
      */
@@ -96,7 +83,7 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
+
     <h1>Camera</h1>
     <div id="info">
         Status: <span id="camera_status"></span><br>
@@ -105,6 +92,6 @@
     <h2>Action</h2>
     <a href="#" class="btn large" onclick="getPicture();">Take Picture</a>
     <a href="#" class="btn large" onclick="getImage();">Select Image from Library</a>
-    <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
+    <h2> </h2><a href="index.html" class="backBtn">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/capture.html
----------------------------------------------------------------------
diff --git a/example/www/capture.html b/example/www/capture.html
index 5319270..410d747 100644
--- a/example/www/capture.html
+++ b/example/www/capture.html
@@ -7,10 +7,10 @@
     <title>Cordova</title>
     <link rel="stylesheet" href="master.css" type="text/css" media="screen"/>
 
-   
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>   
 
-      
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
+
 <script type="text/javascript" charset="utf-8">
 
 
@@ -88,7 +88,7 @@
 
                 var player = document.getElementById('audio_player');
                 player.setAttribute('style', 'visibility:visible;');
-                player.src = mediaFile.fullPath; 
+                player.src = mediaFile.fullPath;
                 //player.play();
             },
             function (e) {
@@ -159,7 +159,7 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
+
     <h1>Capture</h1>
     <div id="info">
         Status: <span id="capture_status"></span><br/>
@@ -172,11 +172,11 @@
 
 
         <div><table width="100%">
-            <tr><td width="20%">Name:</td><td id="name">&nbsp;</td></tr>
-            <tr><td width="20%">FullPath:</td><td id="fullPath">&nbsp;</td></tr>
-            <tr><td width="20%">Type:</td><td id="type">&nbsp;</td></tr>
-            <tr><td width="20%">Size:</td><td id="size">&nbsp;</td></tr>
-            <tr><td width="20%">Modified:</td><td id="lastModifiedDate">&nbsp;</td></tr>            
+            <tr><td width="20%">Name:</td><td id="name"> </td></tr>
+            <tr><td width="20%">FullPath:</td><td id="fullPath"> </td></tr>
+            <tr><td width="20%">Type:</td><td id="type"> </td></tr>
+            <tr><td width="20%">Size:</td><td id="size"> </td></tr>
+            <tr><td width="20%">Modified:</td><td id="lastModifiedDate"> </td></tr>
         </table></div>
 
     </div>
@@ -184,6 +184,6 @@
     <a href="#" class="btn large" onclick="captureImage();">Capture Image</a>
     <a href="#" class="btn large" onclick="captureAudio();">Capture Audio</a>
     <a href="#" class="btn large" onclick="captureVideo();">Capture Video</a>
-    <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
+    <h2> </h2><a href="index.html" class="backBtn">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/compass.html
----------------------------------------------------------------------
diff --git a/example/www/compass.html b/example/www/compass.html
index 78c2e37..0c12980 100644
--- a/example/www/compass.html
+++ b/example/www/compass.html
@@ -7,26 +7,11 @@
     <title>Cordova</title>
     <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!
-        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)
-        {
-        console.log("window.onerror ::" + JSON.stringify(e));
-        };
 
-        console.log("Installed console ! ");
-      </script>
-      
-      
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
 
-      
 <script type="text/javascript" charset="utf-8">
 
     var deviceReady = false;
@@ -110,7 +95,7 @@
     var setCompassStatus = function(status) {
         document.getElementById('compass_status').innerHTML = status;
     };
-    
+
     /**
      * Function called when page has finished loading.
      */
@@ -130,18 +115,18 @@
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
+
     <h1>Compass</h1>
     <div id="info">
         Status: <span id="compass_status">Stopped</span>
         <table width="100%"><tr>
-            <td width="33%">Heading: <span id="compassHeading">&nbsp;</td>
+            <td width="33%">Heading: <span id="compassHeading"> </td>
         </tr></table>
     </div>
     <h2>Action</h2>
     <a href="#" class="btn large" onClick="getCompass();">Get Compass</a>
     <a href="#" class="btn large" onClick="watchCompass();">Start Watching Compass</a>
     <a href="#" class="btn large" onClick="stopCompass();">Stop Watching Compass</a>
-    <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
+    <h2> </h2><a href="index.html" class="backBtn">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/d20ea8dc/example/www/contacts.html
----------------------------------------------------------------------
diff --git a/example/www/contacts.html b/example/www/contacts.html
index 5bca8c8..f05bdb5 100644
--- a/example/www/contacts.html
+++ b/example/www/contacts.html
@@ -7,27 +7,14 @@
     <title>Cordova</title>
     <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!
-        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) {
-        console.log("window.onerror ::" + JSON.stringify(e));
-        };
-
-        console.log("Installed console ! ");
-      </script>
-      
-      
-    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
-
-    
+
+
+    <script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
+
+
 <script type="text/javascript" charset="utf-8">
 
-  
+
     var deviceReady = false;
 
     //-------------------------------------------------------------------------
@@ -38,21 +25,21 @@
         obj.filter = ""; //Brooks";
         obj.multiple = true;
         navigator.contacts.find(["displayName", "name", "phoneNumbers", "emails", "urls", "note"],
-            function(contacts) 
+            function(contacts)
 			{
 				console.log("received contacts :: " + contacts.length);
 				console.log("contacts[0] = " + contacts[0]);
-				
+
                 var s = "";
-                if (contacts.length == 0) 
+                if (contacts.length == 0)
 				{
                     s = "No contacts found";
                 }
-                else 
+                else
 				{
                     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
 						{
@@ -61,17 +48,17 @@
 						catch(e)
 						{
 							console.log(e.message + " " + contacts[i]);
-							continue;	
+							continue;
 						}
                         s = s + "<tr><td>" + contact.displayName + "</td><td>";
-						
-                        if (contact.phoneNumbers && contact.phoneNumbers.length > 0) 
+
+                        if (contact.phoneNumbers && contact.phoneNumbers.length > 0)
 						{
                             s = s + contact.phoneNumbers[0];
                         }
                         s = s + "</td><td>"
-						
-                        if (contact.emails && contact.emails.length > 0) 
+
+                        if (contact.emails && contact.emails.length > 0)
 						{
                             s = s + contact.emails[0];
                         }
@@ -146,19 +133,19 @@
   }
 
                     </script>
-  
+
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
-  
-    <h1>Contacts</h1>    
+
+    <h1>Contacts</h1>
     <div id="info">
         Results:<br/>
-        <span id="contacts_results">&nbsp;</span>
+        <span id="contacts_results"> </span>
     </div>
     <h2>Action</h2>
     <a href="#" class="btn large" onClick="getContacts();">Get phone's contacts</a>
     <a href="#" class="btn large" onClick="addContact();">Add a new contact 'Dooney Evans'</a>
-    <h2>&nbsp;</h2><a href="index.html" class="backBtn">Back</a>
+    <h2> </h2><a href="index.html" class="backBtn">Back</a>
   </body>
-</html>      
\ No newline at end of file
+</html>
\ No newline at end of file


Mime
View raw message