incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [46/50] [abbrv] wp7 commit: removed stuff
Date Thu, 23 Feb 2012 22:29:31 GMT
removed stuff


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

Branch: refs/heads/master
Commit: 559134670118fba4904a2adf74bf2106b4ab0eb0
Parents: 39e1266
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Feb 10 18:02:46 2012 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Feb 10 18:02:46 2012 -0800

----------------------------------------------------------------------
 framework/PGView.xaml                |   32 -
 framework/PGView.xaml.cs             |  400 ---
 framework/WP7GapClassLib.csproj      |  158 --
 templates/full/ManifestProcessor.js  |   65 -
 templates/full/www/phonegap-1.4.1.js | 3812 -----------------------------
 5 files changed, 0 insertions(+), 4467 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/55913467/framework/PGView.xaml
----------------------------------------------------------------------
diff --git a/framework/PGView.xaml b/framework/PGView.xaml
deleted file mode 100644
index 4c3e8b1..0000000
--- a/framework/PGView.xaml
+++ /dev/null
@@ -1,32 +0,0 @@
-<UserControl x:Class="WP7GapClassLib.PGView"
-    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="GapBrowser" 
-                          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/55913467/framework/PGView.xaml.cs
----------------------------------------------------------------------
diff --git a/framework/PGView.xaml.cs b/framework/PGView.xaml.cs
deleted file mode 100644
index f85dc26..0000000
--- a/framework/PGView.xaml.cs
+++ /dev/null
@@ -1,400 +0,0 @@
-/*  
-	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 WP7GapClassLib.Cordova.Commands;
-using System.Diagnostics;
-using System.Text;
-using WP7GapClassLib.Cordova;
-using System.Threading;
-using Microsoft.Phone.Shell;
-
-
-
-namespace WP7GapClassLib
-{
-    public partial class PGView : 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 GapBrowser;
-            }
-        }
-
-        /*
-         * 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 PGView()
-        {
-            
-            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.GapBrowser);
-        }
-
-        
-
-        void AppClosing(object sender, ClosingEventArgs e)
-        {
-            Debug.WriteLine("AppClosing");
-        }
-
-        void AppDeactivated(object sender, DeactivatedEventArgs e)
-        {
-            Debug.WriteLine("AppDeactivated");
-
-            try
-            {
-                GapBrowser.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
-            {
-                GapBrowser.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.GapBrowser);
-
-            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("GapSourceDictionary.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?");
-                            }
-                        }
-                    }
-                }
-
-                GapBrowser.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.GapBrowser, page);

-
-                }
-            }
-        }
-
-        void page_BackKeyPress(object sender, CancelEventArgs e)
-        {
-            if (OverrideBackButton)
-            {
-                try
-                {
-                    GapBrowser.InvokeScript("CordovaCommandResult", new string[] { "backbutton"
});
-                    e.Cancel = true;
-                }
-                catch (Exception)
-                {
-
-                }
-            }
-        }
-
-        void GapBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs
e)
-        {
-            this.GapBrowser.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/55913467/framework/WP7GapClassLib.csproj
----------------------------------------------------------------------
diff --git a/framework/WP7GapClassLib.csproj b/framework/WP7GapClassLib.csproj
deleted file mode 100644
index 3f0dca2..0000000
--- a/framework/WP7GapClassLib.csproj
+++ /dev/null
@@ -1,158 +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>{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>WP7GapClassLib</RootNamespace>
-    <AssemblyName>WP7GapClassLib</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="PGView.xaml.cs">
-      <DependentUpon>PGView.xaml</DependentUpon>
-    </Compile>
-  </ItemGroup>
-  <ItemGroup>
-    <Page Include="PGView.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/55913467/templates/full/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/full/ManifestProcessor.js b/templates/full/ManifestProcessor.js
deleted file mode 100644
index 18c2163..0000000
--- a/templates/full/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("..\\..\\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('</GapSourceDictionary>');
-


Mime
View raw message