You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/09/19 00:49:45 UTC
[10/27] moving stuff around
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/CordovaWP8AppProj.csproj
----------------------------------------------------------------------
diff --git a/wp8/template/CordovaWP8AppProj.csproj b/wp8/template/CordovaWP8AppProj.csproj
deleted file mode 100644
index 66126e4..0000000
--- a/wp8/template/CordovaWP8AppProj.csproj
+++ /dev/null
@@ -1,245 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
--->
-<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>$safeprojectname$</RootNamespace>
- <AssemblyName>$safeprojectname$</AssemblyName>
- <TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
- <SilverlightVersion>
- </SilverlightVersion>
- <TargetFrameworkProfile>
- </TargetFrameworkProfile>
- <TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
- <SilverlightApplication>true</SilverlightApplication>
- <SupportedCultures>en-US</SupportedCultures>
- <XapOutputs>true</XapOutputs>
- <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
- <XapFilename>CordovaAppProj_$(Configuration)_$(Platform).xap</XapFilename>
- <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
- <SilverlightAppEntry>$safeprojectname$.App</SilverlightAppEntry>
- <ValidateXaml>true</ValidateXaml>
- <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
- <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
- <BackgroundAgentType />
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>Bin\Debug</OutputPath>
- <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;WP8</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <Prefer32Bit>false</Prefer32Bit>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>Bin\Release</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE;WP8</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <Prefer32Bit>false</Prefer32Bit>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
- <DebugSymbols>true</DebugSymbols>
- <OutputPath>Bin\x86\Debug</OutputPath>
- <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <DebugType>full</DebugType>
- <PlatformTarget>
- </PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
- <Optimize>false</Optimize>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
- <OutputPath>Bin\x86\Release</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <Optimize>true</Optimize>
- <NoStdLib>true</NoStdLib>
- <DebugType>pdbonly</DebugType>
- <PlatformTarget>
- </PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>false</Prefer32Bit>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
- <DebugSymbols>true</DebugSymbols>
- <OutputPath>Bin\ARM\Debug</OutputPath>
- <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <DebugType>full</DebugType>
- <PlatformTarget>
- </PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>false</Prefer32Bit>
- <Optimize>false</Optimize>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
- <OutputPath>Bin\ARM\Release</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <Optimize>true</Optimize>
- <NoStdLib>true</NoStdLib>
- <DebugType>pdbonly</DebugType>
- <PlatformTarget>
- </PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>false</Prefer32Bit>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
- <DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x64\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <DebugType>full</DebugType>
- <PlatformTarget>x64</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
- <OutputPath>bin\x64\Release\</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <Optimize>true</Optimize>
- <NoStdLib>true</NoStdLib>
- <DebugType>pdbonly</DebugType>
- <PlatformTarget>x64</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
- </PropertyGroup>
- <ItemGroup>
- <Compile Include="App.xaml.cs">
- <DependentUpon>App.xaml</DependentUpon>
- </Compile>
- <Compile Include="cordovalib\Commands\BaseCommand.cs" />
- <Compile Include="cordovalib\JSON\JsonHelper.cs" />
- <Compile Include="cordovalib\BrowserMouseHelper.cs" />
- <Compile Include="cordovalib\CommandFactory.cs" />
- <Compile Include="cordovalib\ConfigHandler.cs" />
- <Compile Include="cordovalib\ConsoleHelper.cs" />
- <Compile Include="cordovalib\CordovaCommandCall.cs" />
- <Compile Include="cordovalib\CordovaView.xaml.cs">
- <DependentUpon>CordovaView.xaml</DependentUpon>
- </Compile>
- <Compile Include="cordovalib\IBrowserDecorator.cs" />
- <Compile Include="cordovalib\ImageExifHelper.cs" />
- <Compile Include="cordovalib\MimeTypeMapper.cs" />
- <Compile Include="cordovalib\NativeExecution.cs" />
- <Compile Include="cordovalib\OrientationHelper.cs" />
- <Compile Include="cordovalib\PluginResult.cs" />
- <Compile Include="cordovalib\ScriptCallback.cs" />
- <Compile Include="cordovalib\XHRHelper.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="cordovalib\CordovaView.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="MainPage.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- </ItemGroup>
- <ItemGroup>
- <Content Include="config.xml" />
- <Content Include="www\**" />
- <Content Include="Images\appbar.back.rest.png" />
- <Content Include="Images\appbar.close.rest.png" />
- <Content Include="Images\appbar.feature.video.rest.png" />
- <Content Include="Images\appbar.next.rest.png" />
- <Content Include="Images\appbar.save.rest.png" />
- <Content Include="Images\appbar.stop.rest.png" />
- <None Include="cordova\lib\build.js" />
- <None Include="cordova\lib\clean.js" />
- <None Include="cordova\lib\target-list.js" />
- <None Include="cordova\build.bat" />
- <None Include="cordova\clean.bat" />
- <None Include="cordova\lib\install-device.bat" />
- <None Include="cordova\lib\install-emulator.bat" />
- <None Include="cordova\lib\list-devices.bat" />
- <None Include="cordova\lib\list-emulator-images.bat" />
- <None Include="cordova\lib\list-started-emulators.bat" />
- <None Include="cordova\lib\start-emulator.bat" />
- <None Include="cordova\log.bat" />
- <None Include="cordova\run.bat" />
- <None Include="cordova\version.bat" />
- <Content Include="VERSION" />
- <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>
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).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>
- </PropertyGroup>
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/CordovaWP8Solution.sln
----------------------------------------------------------------------
diff --git a/wp8/template/CordovaWP8Solution.sln b/wp8/template/CordovaWP8Solution.sln
deleted file mode 100644
index b1f6684..0000000
--- a/wp8/template/CordovaWP8Solution.sln
+++ /dev/null
@@ -1,64 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CordovaWP8AppProj", "CordovaWP8AppProj.csproj", "{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|ARM = Debug|ARM
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|Any CPU = Release|Any CPU
- Release|ARM = Release|ARM
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- 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}.Debug|ARM.ActiveCfg = Debug|ARM
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|ARM.Build.0 = Debug|ARM
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|ARM.Deploy.0 = Debug|ARM
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|x64.ActiveCfg = Debug|x64
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|x64.Build.0 = Debug|x64
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|x64.Deploy.0 = Debug|x64
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|x86.ActiveCfg = Debug|x86
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|x86.Build.0 = Debug|x86
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|x86.Deploy.0 = Debug|x86
- {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
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|ARM.ActiveCfg = Release|ARM
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|ARM.Build.0 = Release|ARM
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|ARM.Deploy.0 = Release|ARM
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|x64.ActiveCfg = Release|x64
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|x64.Build.0 = Release|x64
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|x64.Deploy.0 = Release|x64
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|x86.ActiveCfg = Release|x86
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|x86.Build.0 = Release|x86
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|x86.Deploy.0 = Release|x86
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Images/appbar.back.rest.png
----------------------------------------------------------------------
diff --git a/wp8/template/Images/appbar.back.rest.png b/wp8/template/Images/appbar.back.rest.png
deleted file mode 100644
index 4bc2b92..0000000
Binary files a/wp8/template/Images/appbar.back.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Images/appbar.close.rest.png
----------------------------------------------------------------------
diff --git a/wp8/template/Images/appbar.close.rest.png b/wp8/template/Images/appbar.close.rest.png
deleted file mode 100644
index 8166a1c..0000000
Binary files a/wp8/template/Images/appbar.close.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Images/appbar.feature.video.rest.png
----------------------------------------------------------------------
diff --git a/wp8/template/Images/appbar.feature.video.rest.png b/wp8/template/Images/appbar.feature.video.rest.png
deleted file mode 100644
index baff565..0000000
Binary files a/wp8/template/Images/appbar.feature.video.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Images/appbar.next.rest.png
----------------------------------------------------------------------
diff --git a/wp8/template/Images/appbar.next.rest.png b/wp8/template/Images/appbar.next.rest.png
deleted file mode 100644
index ed577d7..0000000
Binary files a/wp8/template/Images/appbar.next.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Images/appbar.save.rest.png
----------------------------------------------------------------------
diff --git a/wp8/template/Images/appbar.save.rest.png b/wp8/template/Images/appbar.save.rest.png
deleted file mode 100644
index d49940e..0000000
Binary files a/wp8/template/Images/appbar.save.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Images/appbar.stop.rest.png
----------------------------------------------------------------------
diff --git a/wp8/template/Images/appbar.stop.rest.png b/wp8/template/Images/appbar.stop.rest.png
deleted file mode 100644
index 4dd724f..0000000
Binary files a/wp8/template/Images/appbar.stop.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/MainPage.xaml
----------------------------------------------------------------------
diff --git a/wp8/template/MainPage.xaml b/wp8/template/MainPage.xaml
deleted file mode 100644
index 8b85fb6..0000000
--- a/wp8/template/MainPage.xaml
+++ /dev/null
@@ -1,45 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
--->
-<phone:PhoneApplicationPage
- x:Class="$safeprojectname$.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"
- 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"
- xmlns:my="clr-namespace:WPCordovaClassLib">
- <Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <my:CordovaView HorizontalAlignment="Stretch"
- Margin="0,0,0,0"
- x:Name="CordovaView"
- VerticalAlignment="Stretch" />
- </Grid>
-
-</phone:PhoneApplicationPage>
-
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/MainPage.xaml.cs
----------------------------------------------------------------------
diff --git a/wp8/template/MainPage.xaml.cs b/wp8/template/MainPage.xaml.cs
deleted file mode 100644
index 187228c..0000000
--- a/wp8/template/MainPage.xaml.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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;
-using System.Windows.Media.Imaging;
-using System.Windows.Resources;
-
-
-namespace $safeprojectname$
-{
- public partial class MainPage : PhoneApplicationPage
- {
- // Constructor
- public MainPage()
- {
- InitializeComponent();
- this.CordovaView.Loaded += CordovaView_Loaded;
- }
-
- private void CordovaView_Loaded(object sender, RoutedEventArgs e)
- {
- this.CordovaView.Loaded -= CordovaView_Loaded;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp8/template/MyTemplate.vstemplate b/wp8/template/MyTemplate.vstemplate
deleted file mode 100644
index 578b1ba..0000000
--- a/wp8/template/MyTemplate.vstemplate
+++ /dev/null
@@ -1,111 +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.
--->
-<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
- <TemplateData>
- <Name>CordovaWP8_3_6_1</Name>
- <Description>Starter project for building a Cordova app for Windows Phone 8 version: 3.6.1</Description>
- <ProjectType>CSharp</ProjectType>
- <ProjectSubType>
- </ProjectSubType>
- <SortOrder>1000</SortOrder>
- <CreateNewFolder>true</CreateNewFolder>
- <DefaultName>CordovaWP8_3.6.1</DefaultName>
- <ProvideDefaultName>true</ProvideDefaultName>
- <LocationField>Enabled</LocationField>
- <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
- <Icon>__TemplateIcon.png</Icon>
- <PreviewImage>__PreviewImage.jpg</PreviewImage>
- </TemplateData>
- <TemplateContent>
- <Project TargetFileName="CordovaWP8AppProj.csproj" File="CordovaWP8AppProj.csproj" ReplaceParameters="true">
- <ProjectItem ReplaceParameters="true" TargetFileName="App.xaml">App.xaml</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="App.xaml.cs">App.xaml.cs</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="ApplicationIcon.png">ApplicationIcon.png</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="Background.png">Background.png</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="config.xml">config.xml</ProjectItem>
- <Folder Name="cordova" TargetFolderName="cordova">
- <ProjectItem ReplaceParameters="false" TargetFileName="build.bat">build.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="clean.bat">clean.bat</ProjectItem>
- <Folder Name="lib" TargetFolderName="lib">
- <ProjectItem ReplaceParameters="true" TargetFileName="build.js">build.js</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="clean.js">clean.js</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="install-device.bat">install-device.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="install-emulator.bat">install-emulator.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="list-devices.bat">list-devices.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="list-emulator-images.bat">list-emulator-images.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="list-started-emulators.bat">list-started-emulators.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="start-emulator.bat">start-emulator.bat</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="target-list.js">target-list.js</ProjectItem>
- </Folder>
- <ProjectItem ReplaceParameters="false" TargetFileName="log.bat">log.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="run.bat">run.bat</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="version.bat">version.bat</ProjectItem>
- </Folder>
- <Folder Name="cordovalib" TargetFolderName="cordovalib">
- <Folder Name="Commands" TargetFolderName="Commands">
- <ProjectItem ReplaceParameters="true" TargetFileName="BaseCommand.cs">BaseCommand.cs</ProjectItem>
- </Folder>
- <Folder Name="JSON" TargetFolderName="JSON">
- <ProjectItem ReplaceParameters="true" TargetFileName="JsonHelper.cs">JsonHelper.cs</ProjectItem>
- </Folder>
- <ProjectItem ReplaceParameters="true" TargetFileName="BrowserMouseHelper.cs">BrowserMouseHelper.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="CommandFactory.cs">CommandFactory.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="ConfigHandler.cs">ConfigHandler.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="ConsoleHelper.cs">ConsoleHelper.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="CordovaCommandCall.cs">CordovaCommandCall.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml">CordovaView.xaml</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml.cs">CordovaView.xaml.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="IBrowserDecorator.cs">IBrowserDecorator.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="ImageExifHelper.cs">ImageExifHelper.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="MimeTypeMapper.cs">MimeTypeMapper.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="NativeExecution.cs">NativeExecution.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="OrientationHelper.cs">OrientationHelper.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="PluginResult.cs">PluginResult.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="ScriptCallback.cs">ScriptCallback.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="XHRHelper.cs">XHRHelper.cs</ProjectItem>
- </Folder>
- <Folder Name="Images" TargetFolderName="Images">
- <ProjectItem ReplaceParameters="false" TargetFileName="appbar.back.rest.png">appbar.back.rest.png</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="appbar.close.rest.png">appbar.close.rest.png</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="appbar.feature.video.rest.png">appbar.feature.video.rest.png</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="appbar.next.rest.png">appbar.next.rest.png</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="appbar.save.rest.png">appbar.save.rest.png</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="appbar.stop.rest.png">appbar.stop.rest.png</ProjectItem>
- </Folder>
- <ProjectItem ReplaceParameters="true" TargetFileName="MainPage.xaml">MainPage.xaml</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="MainPage.xaml.cs">MainPage.xaml.cs</ProjectItem>
- <Folder Name="Properties" TargetFolderName="Properties">
- <ProjectItem ReplaceParameters="true" TargetFileName="AppManifest.xml">AppManifest.xml</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="WMAppManifest.xml">WMAppManifest.xml</ProjectItem>
- </Folder>
- <Folder Name="Service References" TargetFolderName="Service References"/>
- <ProjectItem ReplaceParameters="false" TargetFileName="SplashScreenImage.jpg">SplashScreenImage.jpg</ProjectItem>
- <ProjectItem ReplaceParameters="false" TargetFileName="VERSION">VERSION</ProjectItem>
- <Folder Name="www" TargetFolderName="www">
- <ProjectItem ReplaceParameters="true" TargetFileName="cordova.js">cordova.js</ProjectItem>
- <Folder Name="css" TargetFolderName="css">
- <ProjectItem ReplaceParameters="true" TargetFileName="index.css">index.css</ProjectItem>
- </Folder>
- <Folder Name="img" TargetFolderName="img">
- <ProjectItem ReplaceParameters="false" TargetFileName="logo.png">logo.png</ProjectItem>
- </Folder>
- <ProjectItem ReplaceParameters="true" TargetFileName="index.html">index.html</ProjectItem>
- <Folder Name="js" TargetFolderName="js">
- <ProjectItem ReplaceParameters="true" TargetFileName="index.js">index.js</ProjectItem>
- </Folder>
- </Folder>
- </Project>
- </TemplateContent>
-</VSTemplate>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Properties/AppManifest.xml
----------------------------------------------------------------------
diff --git a/wp8/template/Properties/AppManifest.xml b/wp8/template/Properties/AppManifest.xml
deleted file mode 100644
index 547c354..0000000
--- a/wp8/template/Properties/AppManifest.xml
+++ /dev/null
@@ -1,19 +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.
--->
-<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
->
- <Deployment.Parts>
- </Deployment.Parts>
-</Deployment>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/wp8/template/Properties/AssemblyInfo.cs b/wp8/template/Properties/AssemblyInfo.cs
deleted file mode 100644
index 04907da..0000000
--- a/wp8/template/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,52 +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.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("CordovaAppProj")]
-[assembly: AssemblyDescription("2.0.0.0")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Apache Cordova")]
-[assembly: AssemblyProduct("CordovaAppProj")]
-[assembly: AssemblyCopyright("Copyright © Apache Cordova 2013")]
-[assembly: AssemblyTrademark("Apache Cordova")]
-[assembly: AssemblyCulture("")]
-
-
-[assembly: NeutralResourcesLanguageAttribute("en-US")]
-
-// 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.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("9e27b972-0825-4386-ba17-63c695262c3d")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/Properties/WMAppManifest.xml
----------------------------------------------------------------------
diff --git a/wp8/template/Properties/WMAppManifest.xml b/wp8/template/Properties/WMAppManifest.xml
deleted file mode 100644
index 40787d1..0000000
--- a/wp8/template/Properties/WMAppManifest.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.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.
--->
- <DefaultLanguage xmlns="" code="en-US" />
- <Languages xmlns="">
- <Language code="en-US" />
- </Languages>
- <App xmlns="" ProductID="{$guid1$}" Title="$safeprojectname$" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="$safeprojectname$ author" BitsPerPixel="32" Description="Apache Cordova for Windows Phone" Publisher="$safeprojectname$" PublisherID="{db093ed5-53b1-45f7-af72-751e8f36ab80}">
- <IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
- <Capabilities>
- <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
- <Capability Name="ID_CAP_NETWORKING" />
- </Capabilities>
- <Tasks>
- <DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
- </Tasks>
- <Tokens>
- <PrimaryToken TokenID="$safeprojectname$Token" TaskName="_default">
- <TemplateFlip>
- <SmallImageURI IsResource="false" IsRelative="true">Background.png</SmallImageURI>
- <Count>0</Count>
- <BackgroundImageURI IsResource="false" IsRelative="true">Background.png</BackgroundImageURI>
- <Title>$safeprojectname$</Title>
- <BackContent></BackContent>
- <BackBackgroundImageURI></BackBackgroundImageURI>
- <BackTitle></BackTitle>
- <LargeBackgroundImageURI></LargeBackgroundImageURI>
- <LargeBackContent></LargeBackContent>
- <LargeBackBackgroundImageURI></LargeBackBackgroundImageURI>
- <DeviceLockImageURI></DeviceLockImageURI>
- <HasLarge>false</HasLarge>
- </TemplateFlip>
- </PrimaryToken>
- </Tokens>
- <ScreenResolutions>
- <ScreenResolution Name="ID_RESOLUTION_WVGA" />
- <ScreenResolution Name="ID_RESOLUTION_WXGA" />
- <ScreenResolution Name="ID_RESOLUTION_HD720P" />
- </ScreenResolutions>
- </App>
-</Deployment>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/SplashScreenImage.jpg
----------------------------------------------------------------------
diff --git a/wp8/template/SplashScreenImage.jpg b/wp8/template/SplashScreenImage.jpg
deleted file mode 100644
index d35501d..0000000
Binary files a/wp8/template/SplashScreenImage.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/__PreviewImage.jpg
----------------------------------------------------------------------
diff --git a/wp8/template/__PreviewImage.jpg b/wp8/template/__PreviewImage.jpg
deleted file mode 100644
index 1d72941..0000000
Binary files a/wp8/template/__PreviewImage.jpg and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/__TemplateIcon.png
----------------------------------------------------------------------
diff --git a/wp8/template/__TemplateIcon.png b/wp8/template/__TemplateIcon.png
deleted file mode 100644
index 75c17c7..0000000
Binary files a/wp8/template/__TemplateIcon.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/build
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/build b/wp8/template/cordova/build
deleted file mode 100644
index 8fbceae..0000000
--- a/wp8/template/cordova/build
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var build = require('./lib/build'),
- args = process.argv;
-
-// Handle help flag
-if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[2]) > -1) {
- build.help();
-} else {
- build.run(args).done(null, function(err) {
- var errorMessage = (err && err.stack) ? err.stack : err;
- console.error('ERROR: ' + errorMessage);
- process.exit(2);
- });
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/build.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/build.bat b/wp8/template/cordova/build.bat
deleted file mode 100644
index 61acb6e..0000000
--- a/wp8/template/cordova/build.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-SET script_path="%~dp0build"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'build' in cordova, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/clean
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/clean b/wp8/template/cordova/clean
deleted file mode 100644
index 71877fe..0000000
--- a/wp8/template/cordova/clean
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var clean = require('./lib/clean');
-
-clean.run(process.argv).done(null, function(err) {
- console.error('ERROR: ' + err);
- process.exit(2);
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/clean.bat b/wp8/template/cordova/clean.bat
deleted file mode 100644
index 8ca03ca..0000000
--- a/wp8/template/cordova/clean.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-SET script_path="%~dp0clean"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/defaults.xml
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/defaults.xml b/wp8/template/cordova/defaults.xml
deleted file mode 100644
index d9d355c..0000000
--- a/wp8/template/cordova/defaults.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
--->
-<widget xmlns="http://www.w3.org/ns/widgets">
- <access origin="*"/>
-</widget>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/MSBuildTools.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/MSBuildTools.js b/wp8/template/cordova/lib/MSBuildTools.js
deleted file mode 100644
index ba1ee79..0000000
--- a/wp8/template/cordova/lib/MSBuildTools.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('Q'),
- path = require('path'),
- utils = require('./utils');
-
-function MSBuildTools (version, path) {
- this.version = version;
- this.path = path;
-}
-
-MSBuildTools.prototype.buildProject = function(projFile, buildType, buildarch) {
- console.log("\nBuilding project: " + projFile);
- console.log("\tConfiguration : " + buildType);
- console.log("\tPlatform : " + buildarch);
-
- var args = ['/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal', '/nologo',
- '/p:Configuration=' + buildType,
- '/p:Platform=' + buildarch];
-
- return utils.spawn(path.join(this.path, 'msbuild'), [projFile].concat(args));
-};
-
-// returns full path to msbuild tools required to build the project and tools version
-module.exports.findAvailableVersion = function (searchFor32Bit) {
- var versions = ['12.0', '4.0'];
-
- return Q.all(versions.map(function (version) {
- return checkMSBuildVersion(version, searchFor32Bit);
- }))
- .then(function (versions) {
- // select first msbuild version available, and resolve promise with it
- var msbuildTools = versions[0] || versions[1];
- return msbuildTools ? Q.resolve(msbuildTools) : Q.reject('MSBuild tools not found');
- });
-};
-
-function checkMSBuildVersion(version, searchFor32Bit) {
- var deferred = Q.defer();
-
- var regRoot = searchFor32Bit ? 'HKLM\\SOFTWARE\\Wow6432Node' : 'HKLM\\SOFTWARE';
-
- utils.exec('reg query ' + regRoot + '\\Microsoft\\MSBuild\\ToolsVersions\\' + version + ' /v MSBuildToolsPath')
- .then(function(output) {
- // fetch msbuild path from 'reg' output
- var path = /MSBuildToolsPath\s+REG_SZ\s+(.*)/i.exec(output);
- if (path) {
- deferred.resolve(new MSBuildTools(version, path[1]));
- return;
- }
- deferred.resolve(null); // not found
- }, function () {
- deferred.resolve(null);
- });
- return deferred.promise;
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/build.js b/wp8/template/cordova/lib/build.js
deleted file mode 100644
index 90e07c0..0000000
--- a/wp8/template/cordova/lib/build.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('Q'),
- path = require('path'),
- nopt = require('nopt'),
- utils = require('./utils'),
- shell = require('shelljs'),
- MSBuildTools = require('./MSBuildTools');
-
-// Platform project root folder
-var ROOT = path.join(__dirname, '..', '..');
-
-function parseAndValidateArgs(argv) {
- // parse and validate args
- args = nopt({'debug': Boolean, 'release': Boolean, 'archs': [String]}, {'-r': '--release'}, argv);
- // Validate args
- if (args.debug && args.release) {
- return Q.reject('Only one of "debug"/"release" options should be specified');
- }
- // get build options/defaults and resolvew with buildopts object
- return Q.resolve({
- buildType: args.release ? 'release' : 'debug',
- buildArchs: args.archs ? args.archs.split(' ') : ['anycpu'],
- });
-}
-
-// help/usage function
-module.exports.help = function () {
- console.log("");
- console.log("Usage: build [ --debug | --release ] [--archs=\"<list of architectures...>\"]");
- console.log(" --help : Displays this dialog.");
- console.log(" --debug : Cleans and builds project in debug mode.");
- console.log(" --release : Cleans and builds project in release mode.");
- console.log(" --release : Cleans and builds project in release mode.");
- console.log(" --archs : Builds project binaries for specific chip architectures. `arm` and `x86` are supported for wp8");
- console.log("examples:");
- console.log(" build ");
- console.log(" build --debug");
- console.log(" build --release");
- console.log(" build --release --archs=\"arm x86\"");
- console.log("");
-};
-
-// builds cordova-windows application with parameters provided.
-// See 'help' function for args list
-module.exports.run = function (argv) {
- if (!utils.isCordovaProject(ROOT)){
- return Q.reject('Could not find project at ' + ROOT);
- }
-
- return parseAndValidateArgs(argv)
- .then(function (buildopts) {
- // WP8 requires x86 version of MSBuild, CB-6732
- var is64bitSystem = process.env["PROCESSOR_ARCHITECTURE"] != 'x86';
-
- // Get available msbuild tools
- return MSBuildTools.findAvailableVersion(is64bitSystem)
- .then(function (msbuildTools) {
- // then build all architectures specified
- // chain promises each after previous with reduce function
- return buildopts.buildArchs.reduce(function (promise, buildarch) {
- return promise.then(function () {
- buildarch = buildarch == "anycpu" ? "any cpu" : buildarch;
- // serach for first solution file found
- // this is performed due to solution file can be renamed in create
- var solutionFiles = shell.ls(path.join(ROOT, '*.sln'));
- if (solutionFiles && solutionFiles[0]) {
- return msbuildTools.buildProject(solutionFiles[0], buildopts.buildType, buildarch);
- }
- return Q.reject('No solution files found in project directory');
- });
- }, Q());
- });
- });
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/clean.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/clean.js b/wp8/template/cordova/lib/clean.js
deleted file mode 100644
index 6d1248c..0000000
--- a/wp8/template/cordova/lib/clean.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('q'),
- path = require('path'),
- shell = require('shelljs');
-
-var ROOT = path.join(__dirname, '..', '..');
-
-module.exports.run = function (argv) {
- var projectPath = ROOT;
- ['obj', 'Bin'].forEach(function(dir) {
- shell.rm('-rf', path.join(projectPath, dir));
- });
- return Q.resolve();
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/device.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/device.js b/wp8/template/cordova/lib/device.js
deleted file mode 100644
index f79a4fe..0000000
--- a/wp8/template/cordova/lib/device.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('q'),
- fs = require('fs'),
- path = require('path'),
- shell = require('shelljs'),
- utils = require('./utils');
-
-// returns one of available devices which name match with parovided string
-// return rejected promise if device with name specified not found
-module.exports.findDevice = function (target) {
- return module.exports.listDevices()
- .then(function(deviceList) {
- for (var idx in deviceList){
- if (deviceList[idx].indexOf(target) > -1) {
- return Q.resolve(idx);
- }
- }
- return Q.reject('Specified device not found');
- });
-};
-
-// returns array of available devices names
-module.exports.listDevices = function () {
- return utils.getXapDeploy()
- .then(function(xapDeploy) {
- return utils.exec('"' + xapDeploy + '" /enumeratedevices')
- .then(function(output) {
- return Q.resolve(output.split('\n').map(function(line) {
- var match = /\s*(\d)+\s+(.*)/.exec(line);
- return match && match[2];
- }).filter(function (line) {
- return line;
- }));
- });
- });
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/install-device.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/install-device.bat b/wp8/template/cordova/lib/install-device.bat
deleted file mode 100644
index 01dd232..0000000
--- a/wp8/template/cordova/lib/install-device.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-SET script_path="%~dp0\..\run"
-IF EXIST %script_path% (
- node %script_path% %* --device --nobuild
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'deploy' in cordova, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/install-emulator.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/install-emulator.bat b/wp8/template/cordova/lib/install-emulator.bat
deleted file mode 100644
index c3a2b73..0000000
--- a/wp8/template/cordova/lib/install-emulator.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-SET script_path="%~dp0\..\run"
-IF EXIST %script_path% (
- node %script_path% %* --emulator --nobuild
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'run' in cordova, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/list-devices.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/list-devices.bat b/wp8/template/cordova/lib/list-devices.bat
deleted file mode 100644
index 47e911d..0000000
--- a/wp8/template/cordova/lib/list-devices.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-SET script_path="%~dp0target-list.js"
-IF EXIST %script_path% (
- node %script_path% %* --devices
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'target-list.js' in cordova/lib, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/list-emulator-images.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/list-emulator-images.bat b/wp8/template/cordova/lib/list-emulator-images.bat
deleted file mode 100644
index 0232002..0000000
--- a/wp8/template/cordova/lib/list-emulator-images.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-SET script_path="%~dp0target-list.js"
-IF EXIST %script_path% (
- node %script_path% %* --emulators
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'target-list.js' in cordova/lib, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/list-started-emulators.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/list-started-emulators.bat b/wp8/template/cordova/lib/list-started-emulators.bat
deleted file mode 100644
index 7c5c7f9..0000000
--- a/wp8/template/cordova/lib/list-started-emulators.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-ECHO Sorry, list-started-emulators is not availible yet for Windows Phone. 1>&2
-EXIT /B 1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/package.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/package.js b/wp8/template/cordova/lib/package.js
deleted file mode 100644
index e7eeb89..0000000
--- a/wp8/template/cordova/lib/package.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('q'),
- fs = require('fs'),
- path = require('path'),
- shell = require('shelljs'),
- utils = require('./utils');
-
-function Package (packagepath) {
- this.packagePath = packagepath;
-}
-
-Package.prototype.deployTo = function (deployTarget) {
- var pkg = this;
- return utils.getXapDeploy()
- .then(function (xapDeploy) {
- var getTarget = deployTarget == "device" ? Q("de") :
- deployTarget == "emulator" ? Q("xd") : module.exports.findDevice(deployTarget);
-
- return getTarget.then(function (target) {
- return utils.spawn(xapDeploy, ['/installlaunch', pkg.packagePath, '/targetdevice:' + target]);
- });
- });
-};
-
-// returns full path to package with chip architecture, build and project types specified
-module.exports.getPackage = function (buildtype, buildarch) {
- var projectPath = path.resolve(path.join(__dirname, '..', '..'));
- var buildFolder = buildarch.toLowerCase() == 'anycpu' ?
- path.join(projectPath, 'Bin', buildtype) :
- path.join(projectPath, 'Bin', buildarch, buildtype);
-
- // reject promise if buildFolder folder doesn't exists
- if (!fs.existsSync(buildFolder)) {
- return Q.reject('Directory with build artefacts doesn\'t exists');
- }
-
- // search for first .appx file in specified folder
- var appxFiles = shell.ls(path.join(buildFolder, '*.xap'));
- if (appxFiles && appxFiles[0]) {
- // resolve with full path to file if found
- return Q.resolve(new Package(appxFiles[0]));
- }
- // else reject with error
- return Q.reject('Can\'t find package with ' + buildtype + ' build type and ' + buildarch + ' chip architecture');
-};
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/run.js b/wp8/template/cordova/lib/run.js
deleted file mode 100644
index c179ced..0000000
--- a/wp8/template/cordova/lib/run.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('q'),
- nopt = require('nopt'),
- path = require('path'),
- build = require('./build'),
- utils = require('./utils'),
- packages = require('./package');
-
-var ROOT = path.join(__dirname, '..', '..');
-
-module.exports.run = function (argv) {
- if (!utils.isCordovaProject(ROOT)){
- return Q.reject("Could not find project at " + ROOT);
- }
-
- // parse args
- var args = nopt({"debug": Boolean, "release": Boolean, "nobuild": Boolean,
- "device": Boolean, "emulator": Boolean, "target": String, "archs": String},
- {"r" : "--release"}, argv);
-
- // Validate args
- if (args.debug && args.release) {
- return Q.reject('Only one of "debug"/"release" options should be specified');
- }
- if ((args.device && args.emulator) || ((args.device || args.emulator) && args.target)) {
- return Q.reject('Only one of "device"/"emulator"/"target" options should be specified');
- }
-
- // Get build/deploy options
- var buildType = args.release ? "release" : "debug",
- buildArchs = args.archs ? args.archs.split(' ') : ["anycpu"],
- deployTarget = args.target ? args.target : args.device ? "device" : "emulator";
-
- // if --nobuild isn't specified then build app first
- var buildPackages = args.nobuild ? Q() : build.run(argv);
-
- return buildPackages
- .then(function () {
- return packages.getPackage(buildType, buildArchs[0]);
- })
- .then(function(builtPackage) {
- console.log('\nDeploying package to ' + deployTarget);
- return builtPackage.deployTo(deployTarget);
- });
-};
-
-module.exports.help = function () {
- console.log("");
- console.log("Usage:");
- console.log(" run [ --device || --emulator || --target=<id> ] ");
- console.log(" [ --debug || --release || --nobuild ]");
- console.log(" [--archs=\"<list of architectures...>\"]");
- console.log(" --device : Deploys and runs the project on the connected device.");
- console.log(" --emulator : [DEFAULT] Deploys and runs the project on an emulator.");
- console.log(" --target=<id> : Deploys and runs the project on the specified target.");
- console.log(" --debug : [DEFAULT] Builds project in debug mode.");
- console.log(" --release : Builds project in release mode.");
- console.log(" --nobuild : Ueses pre-built xap, or errors if project is not built.");
- console.log(" --archs : Builds project binaries for specific chip architectures.");
- console.log(" Deploys and runs package with first architecture specified.");
- console.log(" arm` and `x86` are supported for wp8");
- console.log("Examples:");
- console.log(" run");
- console.log(" run --emulator");
- console.log(" run --device");
- console.log(" run --target=7988B8C3-3ADE-488d-BA3E-D052AC9DC710");
- console.log(" run --device --release");
- console.log(" run --emulator --debug");
- console.log("");
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/start-emulator.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/start-emulator.bat b/wp8/template/cordova/lib/start-emulator.bat
deleted file mode 100644
index ca7c18e..0000000
--- a/wp8/template/cordova/lib/start-emulator.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-ECHO Sorry, start-emulator is not availible yet for Windows Phone. 1>&2
-EXIT /B 1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/target-list.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/target-list.js b/wp8/template/cordova/lib/target-list.js
deleted file mode 100644
index 9d85510..0000000
--- a/wp8/template/cordova/lib/target-list.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var devices = require('./device'),
- args = process.argv.slice(2);
-
-// help/usage function
-function help() {
- console.log("");
- console.log("Usage: node target-list.js [ --emulators | --devices | --started_emulators | --all ]");
- console.log(" --emulators : List the possible target emulators availible.");
- console.log(" --devices : List the possible target devices availible. *NOT IMPLEMENTED YET*");
- console.log(" --started_emulators : List any started emulators availible. *NOT IMPLEMENTED YET*");
- console.log(" --all : List all devices returned by CordovaDeploy.exe -devices ");
- console.log("examples:");
- console.log(" node target-list.js --emulators");
- console.log(" node target-list.js --devices");
- console.log(" node target-list.js --started_emulators");
- console.log(" node target-list.js --all");
- console.log("");
-}
-
-// Handle help flag
-if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[0]) > -1) {
- help();
-} else {
- devices.listDevices()
- .then(function (deviceList) {
- deviceList.forEach(function (device) {
- console.log(device);
- });
- });
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/utils.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/utils.js b/wp8/template/cordova/lib/utils.js
deleted file mode 100644
index 28fb018..0000000
--- a/wp8/template/cordova/lib/utils.js
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var Q = require('Q'),
- fs = require('fs'),
- path = require('path'),
- proc = require('child_process'),
- msbuildTools = require('./MSBuildTools');
-
-// returns path to XapDeploy util from Windows Phone 8.1 SDK
-module.exports.getXapDeploy = function () {
- var xapDeployUtils = path.join((process.env["ProgramFiles(x86)"] || process.env["ProgramFiles"]),
- 'Microsoft SDKs', 'Windows Phone', 'v8.0', 'Tools', 'Xap Deployment', 'XapDeployCmd.exe');
- // Check if XapDeployCmd is exists
- if (!fs.existsSync(xapDeployUtils)) {
- console.warn("WARNING: XapDeploy tool (XapDeployCmd.exe) didn't found. Assume that it's in %PATH%");
- return Q.resolve("XapDeployCmd");
- }
- return Q.resolve(xapDeployUtils);
-};
-
-module.exports.getOSVersion = function () {
- return module.exports.exec('reg query "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion" /v CurrentVersion')
- .then(function(output) {
- // fetch msbuild path from 'reg' output
- var version = /CurrentVersion\s+REG_SZ\s+(.*)/i.exec(output);
- if (version) {
- return Q.resolve(version[1]);
- }
- return Q.reject('Can\'t fetch version number from reg output');
- }, function (err) {
- return Q.reject('Failed to query OS version ' + err);
- });
-};
-
-module.exports.getSDKVersion = function () {
- var is64bitSystem = process.env["PROCESSOR_ARCHITECTURE"] != 'x86';
- return msbuildTools.findAvailableVersion(is64bitSystem)
- .then(function (msbuild) {
- return module.exports.exec(module.exports.quote(path.join(msbuild.path, 'msbuild')) + ' -version')
- .then(function (output) {
- var version = /\.NET\sFramework\,\s[a-z]+\s(\d+\.\d+\.\d+)/gi.exec(output);
- if (version) {
- return Q.resolve(version[1]);
- }
- return Q.reject('Unable to get the .NET Framework version');
- }, function (err) {
- return Q.reject('Unable to get the .NET Framework version: ' + err);
- });
- });
-};
-
-// checks to see if a .jsproj file exists in the project root
-module.exports.isCordovaProject = function (platformpath) {
- if (fs.existsSync(platformpath)) {
- var files = fs.readdirSync(platformpath);
- for (var i in files){
- if (path.extname(files[i]) == '.csproj'){
- return true;
- }
- }
- }
- return false;
-};
-
-// Takes a command and optional current working directory.
-// Returns a promise that either resolves with the stdout, or
-// rejects with an error message and the stderr.
-module.exports.exec = function(cmd, opt_cwd) {
- var d = Q.defer();
- try {
- proc.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function(err, stdout, stderr) {
- if (err) d.reject('Error executing "' + cmd + '": ' + stderr);
- else d.resolve(stdout);
- });
- } catch(e) {
- console.error('error caught: ' + e);
- d.reject(e);
- }
- return d.promise;
-};
-
-// Takes a command and optional current working directory.
-module.exports.spawn = function(cmd, args, opt_cwd) {
- var d = Q.defer();
- try {
- var child = proc.spawn(cmd, args, {cwd: opt_cwd, stdio: 'inherit'});
- child.on('exit', function(code) {
- if (code) {
- d.reject('Error code ' + code + ' for command: ' + cmd + ' with args: ' + args);
- } else {
- d.resolve();
- }
- });
- } catch(e) {
- console.error('error caught: ' + e);
- d.reject(e);
- }
- return d.promise;
-};
-
-module.exports.quote = function(str) {
- return '"' + str + '"';
-};
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/win_os_version.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/win_os_version.js b/wp8/template/cordova/lib/win_os_version.js
deleted file mode 100644
index c6d940f..0000000
--- a/wp8/template/cordova/lib/win_os_version.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var utils = require('./utils');
-
-utils.getOSVersion().then(function (version) {
- console.log(version);
-}, function (err) {
- console.error(err);
- process.exit(2);
-});
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/lib/win_sdk_version.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/win_sdk_version.js b/wp8/template/cordova/lib/win_sdk_version.js
deleted file mode 100644
index e624ac8..0000000
--- a/wp8/template/cordova/lib/win_sdk_version.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you 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.
-*/
-
-var utils = require('./utils');
-
-utils.getSDKVersion().then(function (version) {
- console.log(version);
-}, function (err) {
- console.error(err);
- process.exit(2);
-});
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/log.bat
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/log.bat b/wp8/template/cordova/log.bat
deleted file mode 100644
index 009e5b3..0000000
--- a/wp8/template/cordova/log.bat
+++ /dev/null
@@ -1,25 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-:endheader
-
-@ECHO OFF
-ECHO Sorry, logging is not supported for Windows Phone. 1>&2
-EXIT /B 1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/node_modules/.bin/nopt
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/node_modules/.bin/nopt b/wp8/template/cordova/node_modules/.bin/nopt
deleted file mode 100644
index 25995f3..0000000
--- a/wp8/template/cordova/node_modules/.bin/nopt
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=`dirname "$0"`
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@"
- ret=$?
-else
- node "$basedir/../nopt/bin/nopt.js" "$@"
- ret=$?
-fi
-exit $ret
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/node_modules/.bin/nopt.cmd
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/node_modules/.bin/nopt.cmd b/wp8/template/cordova/node_modules/.bin/nopt.cmd
deleted file mode 100644
index c8e8216..0000000
--- a/wp8/template/cordova/node_modules/.bin/nopt.cmd
+++ /dev/null
@@ -1,5 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\nopt\bin\nopt.js" %*
-) ELSE (
- node "%~dp0\..\nopt\bin\nopt.js" %*
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/node_modules/.bin/shjs
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/node_modules/.bin/shjs b/wp8/template/cordova/node_modules/.bin/shjs
deleted file mode 100644
index 9908675..0000000
--- a/wp8/template/cordova/node_modules/.bin/shjs
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=`dirname "$0"`
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../shelljs/bin/shjs" "$@"
- ret=$?
-else
- node "$basedir/../shelljs/bin/shjs" "$@"
- ret=$?
-fi
-exit $ret
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/node_modules/.bin/shjs.cmd
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/node_modules/.bin/shjs.cmd b/wp8/template/cordova/node_modules/.bin/shjs.cmd
deleted file mode 100644
index 9ce460a..0000000
--- a/wp8/template/cordova/node_modules/.bin/shjs.cmd
+++ /dev/null
@@ -1,5 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\shelljs\bin\shjs" %*
-) ELSE (
- node "%~dp0\..\shelljs\bin\shjs" %*
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c74fdafa/wp8/template/cordova/node_modules/nopt/.npmignore
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/node_modules/nopt/.npmignore b/wp8/template/cordova/node_modules/nopt/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/wp8/template/cordova/node_modules/nopt/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules