Commit 59e85018 by Sebastián Katzer

Update project

parent 8cd74e5b
/out /out
/gen /gen
/platforms/android/CordovaLib/build /platforms/android/CordovaLib/build
/platforms/windows/build
...@@ -9,4 +9,5 @@ ...@@ -9,4 +9,5 @@
</author> </author>
<content src="index.html" /> <content src="index.html" />
<access origin="*" /> <access origin="*" />
<preference name="windows-target-version" value="10.0" />
</widget> </widget>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<!-- update --> <!-- update -->
<h2 class="section">Update</h2> <h2 class="section">Update</h2>
<div class="container"> <div class="container">
<div onclick="update()">Title<br /><span>update(1)</span></div> <div onclick="update()">Text<br /><span>update(1)</span></div>
<div onclick="updateInterval()">Interval<br /><span>update(1, every:minute)</span></div> <div onclick="updateInterval()">Interval<br /><span>update(1, every:minute)</span></div>
</div> </div>
...@@ -249,6 +249,8 @@ ...@@ -249,6 +249,8 @@
cordova.plugins.notification.local.update({ cordova.plugins.notification.local.update({
id: 1, id: 1,
text: 'Updated Message 1', text: 'Updated Message 1',
icon: 'res://icon',
color: 'FF0000',
json: { updated: true } json: { updated: true }
}); });
}; };
......
...@@ -442,6 +442,9 @@ exports.registerPermission = function (callback, scope) { ...@@ -442,6 +442,9 @@ exports.registerPermission = function (callback, scope) {
*/ */
exports.on = function (event, callback, scope) { exports.on = function (event, callback, scope) {
if (typeof callback !== "function")
return;
if (!this._listener[event]) { if (!this._listener[event]) {
this._listener[event] = []; this._listener[event] = [];
} }
......
...@@ -65,7 +65,8 @@ exports.applyPlatformSpecificOptions = function () { ...@@ -65,7 +65,8 @@ exports.applyPlatformSpecificOptions = function () {
defaults.smallIcon = undefined; defaults.smallIcon = undefined;
defaults.ongoing = false; defaults.ongoing = false;
defaults.autoClear = true; defaults.autoClear = true;
defaults.led = 'FFFFFF'; defaults.led = 'FF0000';
defaults.color = undefined;
break; break;
} }
......
...@@ -442,6 +442,9 @@ exports.registerPermission = function (callback, scope) { ...@@ -442,6 +442,9 @@ exports.registerPermission = function (callback, scope) {
*/ */
exports.on = function (event, callback, scope) { exports.on = function (event, callback, scope) {
if (typeof callback !== "function")
return;
if (!this._listener[event]) { if (!this._listener[event]) {
this._listener[event] = []; this._listener[event] = [];
} }
......
...@@ -61,11 +61,12 @@ exports.applyPlatformSpecificOptions = function () { ...@@ -61,11 +61,12 @@ exports.applyPlatformSpecificOptions = function () {
switch (device.platform) { switch (device.platform) {
case 'Android': case 'Android':
defaults.icon = 'res://icon'; defaults.icon = 'res://ic_popup_reminder';
defaults.smallIcon = 'res://ic_popup_reminder'; defaults.smallIcon = undefined;
defaults.ongoing = false; defaults.ongoing = false;
defaults.autoClear = true; defaults.autoClear = true;
defaults.led = 'FFFFFF'; defaults.led = 'FF0000';
defaults.color = undefined;
break; break;
} }
......
...@@ -19,4 +19,5 @@ ...@@ -19,4 +19,5 @@
</author> </author>
<content src="index.html" /> <content src="index.html" />
<access origin="*" /> <access origin="*" />
<preference name="windows-target-version" value="10.0" />
</widget> </widget>
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
0867D690FE84028FC02AAC07 /* Project object */ = { 0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
LastUpgradeCheck = 0510; LastUpgradeCheck = 0720;
}; };
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "CordovaLib" */; buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "CordovaLib" */;
compatibilityVersion = "Xcode 3.2"; compatibilityVersion = "Xcode 3.2";
...@@ -432,6 +432,7 @@ ...@@ -432,6 +432,7 @@
CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = c99; GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0; GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = ""; GCC_PREPROCESSOR_DEFINITIONS = "";
......
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>English</string> <string>English</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
...@@ -61,20 +56,23 @@ ...@@ -61,20 +56,23 @@
<string>${PRODUCT_NAME}</string> <string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.0.1</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>0.0.1</string> <string>0.0.1</string>
<key>CFBundleShortVersionString</key>
<string>0.0.1</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSMainNibFile</key> <key>NSMainNibFile</key>
<string/> <string/>
<key>NSMainNibFile~ipad</key> <key>NSMainNibFile~ipad</key>
<string/> <string/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UILaunchImages</key> <key>UILaunchImages</key>
<array> <array>
<dict> <dict>
...@@ -178,5 +176,7 @@ ...@@ -178,5 +176,7 @@
<string>{768, 1024}</string> <string>{768, 1024}</string>
</dict> </dict>
</array> </array>
<key>UIRequiresFullScreen</key>
<true/>
</dict> </dict>
</plist> </plist>
\ No newline at end of file
...@@ -33,4 +33,5 @@ ...@@ -33,4 +33,5 @@
</author> </author>
<content src="index.html" /> <content src="index.html" />
<access origin="*" /> <access origin="*" />
<preference name="windows-target-version" value="10.0" />
</widget> </widget>
...@@ -441,6 +441,9 @@ exports.registerPermission = function (callback, scope) { ...@@ -441,6 +441,9 @@ exports.registerPermission = function (callback, scope) {
*/ */
exports.on = function (event, callback, scope) { exports.on = function (event, callback, scope) {
if (typeof callback !== "function")
return;
if (!this._listener[event]) { if (!this._listener[event]) {
this._listener[event] = []; this._listener[event] = [];
} }
......
...@@ -60,11 +60,12 @@ exports.applyPlatformSpecificOptions = function () { ...@@ -60,11 +60,12 @@ exports.applyPlatformSpecificOptions = function () {
switch (device.platform) { switch (device.platform) {
case 'Android': case 'Android':
defaults.icon = 'res://icon'; defaults.icon = 'res://ic_popup_reminder';
defaults.smallIcon = 'res://ic_popup_reminder'; defaults.smallIcon = undefined;
defaults.ongoing = false; defaults.ongoing = false;
defaults.autoClear = true; defaults.autoClear = true;
defaults.led = 'FFFFFF'; defaults.led = 'FF0000';
defaults.color = undefined;
break; break;
} }
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<!-- update --> <!-- update -->
<h2 class="section">Update</h2> <h2 class="section">Update</h2>
<div class="container"> <div class="container">
<div onclick="update()">Title<br /><span>update(1)</span></div> <div onclick="update()">Text<br /><span>update(1)</span></div>
<div onclick="updateInterval()">Interval<br /><span>update(1, every:minute)</span></div> <div onclick="updateInterval()">Interval<br /><span>update(1, every:minute)</span></div>
</div> </div>
...@@ -188,7 +188,8 @@ ...@@ -188,7 +188,8 @@
cordova.plugins.notification.local.schedule({ cordova.plugins.notification.local.schedule({
id: 1, id: 1,
text: 'Test Message 1', text: 'Test Message 1',
icon: 'http://www.optimizeordie.de/wp-content/plugins/social-media-widget/images/default/64/googleplus.png', icon: 'http://3.bp.blogspot.com/-Qdsy-GpempY/UU_BN9LTqSI/AAAAAAAAAMA/LkwLW2yNBJ4/s1600/supersu.png',
smallIcon: 'res://cordova',
sound: null, sound: null,
data: { test: id } data: { test: id }
}); });
...@@ -197,13 +198,18 @@ ...@@ -197,13 +198,18 @@
scheduleMultiple = function () { scheduleMultiple = function () {
cordova.plugins.notification.local.schedule([{ cordova.plugins.notification.local.schedule([{
id: 1, id: 1,
text: 'Multi Message 1' text: 'Multi Message 1',
icon: 'res://cordova'
}, { }, {
id: 2, id: 2,
text: 'Multi Message 2' text: 'Multi Message 2',
icon: 'res://icon',
smallIcon: 'ic_media_play'
}, { }, {
id: 3, id: 3,
text: 'Multi Message 3' text: 'Multi Message 3',
icon: 'res://icon',
smallIcon: 'ic_media_pause'
}]); }]);
}; };
...@@ -230,7 +236,9 @@ ...@@ -230,7 +236,9 @@
id: 1, id: 1,
text: 'Scheduled every minute', text: 'Scheduled every minute',
every: 'minute', every: 'minute',
sound: sound sound: sound,
icon: 'res://icon',
smallIcon: 'res://ic_popup_sync'
}); });
}; };
</script> </script>
...@@ -241,6 +249,8 @@ ...@@ -241,6 +249,8 @@
cordova.plugins.notification.local.update({ cordova.plugins.notification.local.update({
id: 1, id: 1,
text: 'Updated Message 1', text: 'Updated Message 1',
icon: 'res://icon',
color: 'FF0000',
json: { updated: true } json: { updated: true }
}); });
}; };
......
...@@ -60,11 +60,12 @@ exports.applyPlatformSpecificOptions = function () { ...@@ -60,11 +60,12 @@ exports.applyPlatformSpecificOptions = function () {
switch (device.platform) { switch (device.platform) {
case 'Android': case 'Android':
defaults.icon = 'res://icon'; defaults.icon = 'res://ic_popup_reminder';
defaults.smallIcon = 'res://ic_popup_reminder'; defaults.smallIcon = undefined;
defaults.ongoing = false; defaults.ongoing = false;
defaults.autoClear = true; defaults.autoClear = true;
defaults.led = 'FFFFFF'; defaults.led = 'FF0000';
defaults.color = undefined;
break; break;
} }
......
<?xml version='1.0' encoding='utf-8'?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!--
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="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<OutputPath>build\phone\$(Configuration)\$(Platform)\</OutputPath> <OutputPath>build\phone\$(Configuration)\$(Platform)\</OutputPath>
<IntermediateOutputPath>build\phone\bld\</IntermediateOutputPath> <IntermediateOutputPath>build\phone\bld\</IntermediateOutputPath>
...@@ -41,7 +59,11 @@ ...@@ -41,7 +59,11 @@
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<ProjectGuid>31b67a35-9503-4213-857e-f44eb42ae549</ProjectGuid> <ProjectGuid>31b67a35-9503-4213-857e-f44eb42ae549</ProjectGuid>
</PropertyGroup> </PropertyGroup>
<Import Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> <PropertyGroup Label="CordovaBuildParameters" Condition="'$(CordovaBundlePlatforms)' != ''">
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>$(CordovaBundlePlatforms)</AppxBundlePlatforms>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0'"> <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0'">
<VisualStudioVersion>12.0</VisualStudioVersion> <VisualStudioVersion>12.0</VisualStudioVersion>
</PropertyGroup> </PropertyGroup>
...@@ -53,18 +75,26 @@ ...@@ -53,18 +75,26 @@
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion> <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
<PropertyGroup>
<DefaultLanguage>en-US</DefaultLanguage>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<AppxManifest Include="package.phone.appxmanifest"> <AppxManifest Include="package.phone.appxmanifest">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</AppxManifest> </AppxManifest>
<Content Exclude="images\*.scale-180.*" Include="images\*.png" /> <Content Include="images\*.png" Exclude="images\*.scale-180.*" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<SDKReference Include="Microsoft.Phone.WinJS.2.1, Version=1.0" /> <SDKReference Include="Microsoft.Phone.WinJS.2.1, Version=1.0" />
</ItemGroup> </ItemGroup>
<Import Label="Shared" Project="CordovaApp.projitems" /> <Import Project="CordovaApp.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
</Project> <!-- To modify your build process, add your task inside one of the targets below then uncomment
that target and the DisableFastUpToDateCheck PropertyGroup.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<PropertyGroup>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
-->
</Project>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!--
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="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<OutputPath>build\windows\$(Configuration)\$(Platform)\</OutputPath> <OutputPath>build\windows\$(Configuration)\$(Platform)\win8.1\</OutputPath>
<IntermediateOutputPath>build\windows\bld\</IntermediateOutputPath> <IntermediateOutputPath>build\windows\bld\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup Label="ProjectConfigurations"> <ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU"> <ProjectConfiguration Include="Debug|AnyCPU">
...@@ -41,7 +59,11 @@ ...@@ -41,7 +59,11 @@
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<ProjectGuid>58950fb6-2f93-4963-b9cd-637f83f3efbf</ProjectGuid> <ProjectGuid>58950fb6-2f93-4963-b9cd-637f83f3efbf</ProjectGuid>
</PropertyGroup> </PropertyGroup>
<Import Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> <PropertyGroup Label="CordovaBuildParameters" Condition="'$(CordovaBundlePlatforms)' != ''">
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>$(CordovaBundlePlatforms)</AppxBundlePlatforms>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0'"> <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0'">
<VisualStudioVersion>12.0</VisualStudioVersion> <VisualStudioVersion>12.0</VisualStudioVersion>
</PropertyGroup> </PropertyGroup>
...@@ -52,19 +74,27 @@ ...@@ -52,19 +74,27 @@
<TargetPlatformVersion>8.1</TargetPlatformVersion> <TargetPlatformVersion>8.1</TargetPlatformVersion>
<RequiredPlatformVersion>8.1</RequiredPlatformVersion> <RequiredPlatformVersion>8.1</RequiredPlatformVersion>
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion> <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<AppxManifest Include="package.windows.appxmanifest"> <AppxManifest Include="package.windows.appxmanifest">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</AppxManifest> </AppxManifest>
<Content Exclude="images\*.scale-240.*" Include="images\*.png" /> <Content Include="images\*.png" Exclude="images\*.scale-240.*" />
<None Include="CordovaApp_TemporaryKey.pfx" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<SDKReference Include="Microsoft.WinJS.2.0, Version=1.0" /> <SDKReference Include="Microsoft.WinJS.2.0, Version=1.0" />
</ItemGroup> </ItemGroup>
<Import Label="Shared" Project="CordovaApp.projitems" /> <Import Project="CordovaApp.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
</Project> <!-- To modify your build process, add your task inside one of the targets below then uncomment
that target and the DisableFastUpToDateCheck PropertyGroup.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<PropertyGroup>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
-->
</Project>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputPath>build\windows\$(Configuration)\$(Platform)\win10\</OutputPath>
<IntermediateOutputPath>build\windows\bld\</IntermediateOutputPath>
<AppxPackageSigningEnabled>true</AppxPackageSigningEnabled>
</PropertyGroup>
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x86">
<Configuration>Debug</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x86">
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>f9b0ae20-c91c-42b9-9c6e-d3bc28b4509e</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
<Optimize>true</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(CordovaBundlePlatforms)' != ''" Label="CordovaBuildParameters">
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>$(CordovaBundlePlatforms)</AppxBundlePlatforms>
</PropertyGroup>
<Import Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0'">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
<PropertyGroup>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<UapDefaultAssetScale>100</UapDefaultAssetScale>
</PropertyGroup>
<PropertyGroup Condition="'$(VisualStudioVersion)' &lt; '14.0'">
<TargetPlatformVersion>10.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0</TargetPlatformMinVersion>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="package.windows10.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<Content Exclude="images\*.scale-240.*" Include="images\*.png" />
</ItemGroup>
<Import Label="Shared" Project="CordovaApp.projitems" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>WindowsPhoneEmulatorDebugger</DebuggerFlavor>
<WindowsPhoneEmulatorID>2DDADD82-5910-40E6-894F-17EB5CD463EF;Mobile Emulator 10.0.10240.0 720p 5 inch 1GB</WindowsPhoneEmulatorID>
</PropertyGroup>
<PropertyGroup>
<ReferenceCachePath>C:\Users\katze\AppData\Local\Temp\luyvizjb_CordovaApp.Windows10_refcache</ReferenceCachePath>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!--
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> <PropertyGroup>
<OutputPath>build\windows80\$(Configuration)\$(Platform)\</OutputPath> <OutputPath>build\windows80\$(Configuration)\$(Platform)\</OutputPath>
<IntermediateOutputPath>build\windows80\bld\</IntermediateOutputPath> <IntermediateOutputPath>build\windows80\bld\</IntermediateOutputPath>
...@@ -44,32 +62,22 @@ ...@@ -44,32 +62,22 @@
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0'"> <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0'">
<VisualStudioVersion>11.0</VisualStudioVersion> <VisualStudioVersion>11.0</VisualStudioVersion>
</PropertyGroup> </PropertyGroup>
<Import Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
<PropertyGroup> <PropertyGroup>
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier> <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
<TargetPlatformVersion>8.0</TargetPlatformVersion> <TargetPlatformVersion>8.0</TargetPlatformVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<PackageCertificateKeyFile>CordovaApp_TemporaryKey.pfx</PackageCertificateKeyFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<AppxManifest Include="package.windows80.appxmanifest"> <AppxManifest Include="package.windows80.appxmanifest">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</AppxManifest> </AppxManifest>
<Content Exclude="images\*.scale-240.*" Include="images\*.png" /> <Content Include="images\*.png" Exclude="images\*.scale-240.*" />
<None Include="CordovaApp_TemporaryKey.pfx" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" /> <SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
</ItemGroup> </ItemGroup>
<Import Label="Shared" Project="CordovaApp.projitems" /> <Import Project="CordovaApp.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
<PropertyGroup>
<BuildFromCordovaTooling>false</BuildFromCordovaTooling>
<PreBuildEvent Condition="$(BuildFromCordovaTooling) != true">
cd /d $(MSBuildThisFileDirectory)
node -e "require('./cordova/lib/prepare.js').applyPlatformConfig()"
</PreBuildEvent>
</PropertyGroup>
</Project> </Project>
...@@ -11,4 +11,6 @@ ...@@ -11,4 +11,6 @@
<ItemGroup> <ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)config.xml" /> <Content Include="$(MSBuildThisFileDirectory)config.xml" />
</ItemGroup> </ItemGroup>
<Import Condition="Exists('$(MSBuildThisFileDirectory)CordovaAppDebug.projitems') And '$(Configuration)'=='Debug'" Project="CordovaAppDebug.projitems" />
<Import Condition="Exists('$(MSBuildThisFileDirectory)CordovaAppRelease.projitems') And '$(Configuration)'!='Debug'" Project="CordovaAppRelease.projitems" />
</Project> </Project>
...@@ -21,6 +21,40 @@ ...@@ -21,6 +21,40 @@
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<ProjectGuid>{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}</ProjectGuid> <ProjectGuid>{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}</ProjectGuid>
</PropertyGroup> </PropertyGroup>
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x86">
<Configuration>Debug</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x86">
<Configuration>Release</Configuration>
<Platform>x86</Platform>
</ProjectConfiguration>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
......
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013 # Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
# #
# Licensed to the Apache Software Foundation (ASF) under one # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file # or more contributor license agreements. See the NOTICE file
...@@ -19,24 +21,22 @@ Microsoft Visual Studio Solution File, Format Version 12.00 ...@@ -19,24 +21,22 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # under the License.
# #
VisualStudioVersion = 12.0.30324.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CordovaApp", "CordovaApp", "{3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CordovaApp", "CordovaApp", "{3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}"
EndProject EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CordovaApp", "CordovaApp.shproj", "{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}" Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CordovaApp", "CordovaApp.shproj", "{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}"
EndProject EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows8.0", "CordovaApp.Windows80.jsproj", "{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}"
EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows", "CordovaApp.Windows.jsproj", "{58950FB6-2F93-4963-B9CD-637F83F3EFBF}" Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows", "CordovaApp.Windows.jsproj", "{58950FB6-2F93-4963-B9CD-637F83F3EFBF}"
EndProject EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Phone", "CordovaApp.Phone.jsproj", "{31B67A35-9503-4213-857E-F44EB42AE549}" Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Phone", "CordovaApp.Phone.jsproj", "{31B67A35-9503-4213-857E-F44EB42AE549}"
EndProject EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows10", "CordovaApp.Windows10.jsproj", "{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}"
EndProject
Global Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution GlobalSection(SharedMSBuildProjectFiles) = preSolution
CordovaApp.projitems*{58950fb6-2f93-4963-b9cd-637f83f3efbf}*SharedItemsImports = 5 CordovaApp.projitems*{58950fb6-2f93-4963-b9cd-637f83f3efbf}*SharedItemsImports = 5
CordovaApp.projitems*{efffab2f-bfc5-4eda-b545-45ef4995f55a}*SharedItemsImports = 5 CordovaApp.projitems*{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}*SharedItemsImports = 14
CordovaApp.projitems*{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}*SharedItemsImports = 13
CordovaApp.projitems*{31b67a35-9503-4213-857e-f44eb42ae549}*SharedItemsImports = 5 CordovaApp.projitems*{31b67a35-9503-4213-857e-f44eb42ae549}*SharedItemsImports = 5
CordovaApp.projitems*{f9B0ae20-c91c-42b9-9c6e-d3bc28b4509e}*SharedItemsImports = 5
EndGlobalSection EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
...@@ -97,30 +97,30 @@ Global ...@@ -97,30 +97,30 @@ Global
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.ActiveCfg = Release|x86 {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.ActiveCfg = Release|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Build.0 = Release|x86 {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Build.0 = Release|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Deploy.0 = Release|x86 {31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Deploy.0 = Release|x86
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|Any CPU.Build.0 = Debug|Any CPU {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.ActiveCfg = Debug|ARM {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|ARM.ActiveCfg = Debug|ARM
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.Build.0 = Debug|ARM {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|ARM.Build.0 = Debug|ARM
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|ARM.Deploy.0 = Debug|ARM {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|ARM.Deploy.0 = Debug|ARM
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.ActiveCfg = Debug|x64 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x64.ActiveCfg = Debug|x64
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.Build.0 = Debug|x64 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x64.Build.0 = Debug|x64
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x64.Deploy.0 = Debug|x64 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x64.Deploy.0 = Debug|x64
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.ActiveCfg = Debug|x86 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x86.ActiveCfg = Debug|x86
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.Build.0 = Debug|x86 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x86.Build.0 = Debug|x86
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Debug|x86.Deploy.0 = Debug|x86 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x86.Deploy.0 = Debug|x86
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|Any CPU.ActiveCfg = Release|Any CPU {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|Any CPU.Build.0 = Release|Any CPU {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|Any CPU.Build.0 = Release|Any CPU
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|Any CPU.Deploy.0 = Release|Any CPU {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|Any CPU.Deploy.0 = Release|Any CPU
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.ActiveCfg = Release|ARM {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|ARM.ActiveCfg = Release|ARM
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.Build.0 = Release|ARM {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|ARM.Build.0 = Release|ARM
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|ARM.Deploy.0 = Release|ARM {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|ARM.Deploy.0 = Release|ARM
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.ActiveCfg = Release|x64 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x64.ActiveCfg = Release|x64
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.Build.0 = Release|x64 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x64.Build.0 = Release|x64
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x64.Deploy.0 = Release|x64 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x64.Deploy.0 = Release|x64
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.ActiveCfg = Release|x86 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x86.ActiveCfg = Release|x86
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.Build.0 = Release|x86 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x86.Build.0 = Release|x86
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A}.Release|x86.Deploy.0 = Release|x86 {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
...@@ -129,6 +129,6 @@ Global ...@@ -129,6 +129,6 @@ Global
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944} {9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
{58950FB6-2F93-4963-B9CD-637F83F3EFBF} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944} {58950FB6-2F93-4963-B9CD-637F83F3EFBF} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
{31B67A35-9503-4213-857E-F44EB42AE549} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944} {31B67A35-9503-4213-857E-F44EB42AE549} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
{EFFFAB2F-BFC5-4EDA-B545-45EF4995F55A} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944} {F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 14 for Windows
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CordovaApp", "CordovaApp", "{3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CordovaApp", "CordovaApp.shproj", "{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}"
EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows", "CordovaApp.Windows.jsproj", "{58950FB6-2F93-4963-B9CD-637F83F3EFBF}"
EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Phone", "CordovaApp.Phone.jsproj", "{31B67A35-9503-4213-857E-F44EB42AE549}"
EndProject
Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "CordovaApp.Windows10", "CordovaApp.Windows10.jsproj", "{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
CordovaApp.projitems*{f9b0ae20-c91c-42b9-9c6e-d3bc28b4509e}*SharedItemsImports = 5
CordovaApp.projitems*{58950fb6-2f93-4963-b9cd-637f83f3efbf}*SharedItemsImports = 5
CordovaApp.projitems*{9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9}*SharedItemsImports = 13
CordovaApp.projitems*{31b67a35-9503-4213-857e-f44eb42ae549}*SharedItemsImports = 5
EndGlobalSection
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
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Debug|ARM.ActiveCfg = Debug|ARM
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Debug|x64.ActiveCfg = Debug|x64
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Debug|x86.ActiveCfg = Debug|x86
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Release|ARM.ActiveCfg = Release|ARM
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Release|x64.ActiveCfg = Release|x64
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9}.Release|x86.ActiveCfg = Release|x86
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|ARM.ActiveCfg = Debug|ARM
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|ARM.Build.0 = Debug|ARM
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|ARM.Deploy.0 = Debug|ARM
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x64.ActiveCfg = Debug|x64
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x64.Build.0 = Debug|x64
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x64.Deploy.0 = Debug|x64
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x86.ActiveCfg = Debug|x86
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x86.Build.0 = Debug|x86
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Debug|x86.Deploy.0 = Debug|x86
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|Any CPU.Build.0 = Release|Any CPU
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|Any CPU.Deploy.0 = Release|Any CPU
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|ARM.ActiveCfg = Release|ARM
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|ARM.Build.0 = Release|ARM
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|ARM.Deploy.0 = Release|ARM
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x64.ActiveCfg = Release|x64
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x64.Build.0 = Release|x64
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x64.Deploy.0 = Release|x64
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x86.ActiveCfg = Release|x86
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x86.Build.0 = Release|x86
{58950FB6-2F93-4963-B9CD-637F83F3EFBF}.Release|x86.Deploy.0 = Release|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|ARM.ActiveCfg = Debug|ARM
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|ARM.Build.0 = Debug|ARM
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|ARM.Deploy.0 = Debug|ARM
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x64.ActiveCfg = Debug|x64
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x64.Build.0 = Debug|x64
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x64.Deploy.0 = Debug|x64
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x86.ActiveCfg = Debug|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x86.Build.0 = Debug|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Debug|x86.Deploy.0 = Debug|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|Any CPU.Build.0 = Release|Any CPU
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|Any CPU.Deploy.0 = Release|Any CPU
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|ARM.ActiveCfg = Release|ARM
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|ARM.Build.0 = Release|ARM
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|ARM.Deploy.0 = Release|ARM
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x64.ActiveCfg = Release|x64
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x64.Build.0 = Release|x64
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x64.Deploy.0 = Release|x64
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.ActiveCfg = Release|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Build.0 = Release|x86
{31B67A35-9503-4213-857E-F44EB42AE549}.Release|x86.Deploy.0 = Release|x86
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|ARM.ActiveCfg = Debug|ARM
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|ARM.Build.0 = Debug|ARM
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|ARM.Deploy.0 = Debug|ARM
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x64.ActiveCfg = Debug|x64
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x64.Build.0 = Debug|x64
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x64.Deploy.0 = Debug|x64
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x86.ActiveCfg = Debug|x86
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x86.Build.0 = Debug|x86
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Debug|x86.Deploy.0 = Debug|x86
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|Any CPU.Build.0 = Release|Any CPU
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|Any CPU.Deploy.0 = Release|Any CPU
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|ARM.ActiveCfg = Release|ARM
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|ARM.Build.0 = Release|ARM
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|ARM.Deploy.0 = Release|ARM
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x64.ActiveCfg = Release|x64
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x64.Build.0 = Release|x64
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x64.Deploy.0 = Release|x64
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x86.ActiveCfg = Release|x86
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x86.Build.0 = Release|x86
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9EBDB27F-D75B-4D8C-B53F-7BE4A1FE89F9} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
{58950FB6-2F93-4963-B9CD-637F83F3EFBF} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
{31B67A35-9503-4213-857E-F44EB42AE549} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
{F9B0AE20-C91C-42B9-9C6E-D3BC28B4509E} = {3A47E08D-7EA5-4F3F-AA6D-1D4A41F26944}
EndGlobalSection
EndGlobal
<?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.
-->
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:build="http://schemas.microsoft.com/developer/appx/2012/build" IgnorableNamespaces="build">
<!--
DIESE PAKETMANIFESTDATEI WIRD DURCH DEN BUILDVORGANG GENERIERT.
Änderungen an dieser Datei gehen verloren, wenn sie erneut erstellt wird. Um Fehler in dieser Datei zu beheben, bearbeiten Sie die '.appxmanifest'-Quelldatei.
Weitere Informationen zu Paketmanifestdateien finden Sie unter http://go.microsoft.com/fwlink/?LinkID=241727
-->
<Identity Name="1482d0c0-f943-11e4-ad39-81ab0f14e62c" Version="1.0.0.0" Publisher="CN=$username$" ProcessorArchitecture="neutral" />
<mp:PhoneIdentity PhoneProductId="1482d0c0-f943-11e4-ad39-81ab0f14e62c" PhonePublisherId="db093ed5-53b1-45f7-af72-751e8f36ab80" />
<Properties>
<DisplayName>NotificationExample</DisplayName>
<PublisherDisplayName>$username$</PublisherDisplayName>
<Logo>images\StoreLogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.3.1</OSMinVersion>
<OSMaxVersionTested>6.3.1</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="EN-US" />
</Resources>
<Applications>
<Application Id="de.appplant.localnotification.example" StartPage="www/index.html">
<m3:VisualElements ToastCapable="true" DisplayName="NotificationExample" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png" Description="CordovaApp" ForegroundText="light" BackgroundColor="transparent">
<m3:DefaultTile Wide310x150Logo="images\Wide310x150Logo.png" Square71x71Logo="images\Square71x71Logo.png">
<m3:ShowNameOnTiles>
<m3:ShowOn Tile="square150x150Logo" />
<m3:ShowOn Tile="wide310x150Logo" />
</m3:ShowNameOnTiles>
</m3:DefaultTile>
<m3:SplashScreen Image="images\SplashScreenPhone.png" />
</m3:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClientServer" />
</Capabilities>
<Dependencies>
<PackageDependency Name="Microsoft.Phone.WinJS.2.1" MinVersion="1.0.9651.0" />
</Dependencies>
<build:Metadata>
<build:Item Name="SharedGUID" Value="9ebdb27f-d75b-4d8c-b53f-7be4a1fe89f9" />
<build:Item Name="CodeSharingProject" Value="248F659F-DAC5-46E8-AC09-60EC9FC95053" />
<build:Item Name="VisualStudio" Version="12.0" />
<build:Item Name="VisualStudioEdition" Value="Microsoft Visual Studio Express 2013 für Windows" />
<build:Item Name="OperatingSystem" Version="6.3.9600.16384 (winblue_rtm.130821-1623)" />
<build:Item Name="Microsoft.Build.AppxPackage.dll" Version="12.0.31101.0" />
<build:Item Name="ProjectGUID" Value="31b67a35-9503-4213-857e-f44eb42ae549" />
<build:Item Name="MakePri.exe" Version="6.3.9600.17298 (winblue.141024-1500)" />
</build:Metadata>
</Package>
\ No newline at end of file
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\Debug\AnyCPU\ReverseMap\resources.pri
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\Debug\AnyCPU\AppxManifest.xml
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\Debug\AnyCPU\CordovaApp.Phone.build.appxrecipe
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\priconfig.xml
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\priconfig.xml.intermediate
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\layout.resfiles
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\layout.resfiles.intermediate
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\resources.resfiles
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\resources.resfiles.intermediate
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\pri.resfiles
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\pri.resfiles.intermediate
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\qualifiers.txt
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\qualifiers.txt.intermediate
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\MultipleQualifiersPerDimensionFound.txt
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\build\phone\bld\ProjectArchitectures.txt
Y:\Documents\github\cordova-example-local-notifications\platforms\windows\CordovaApp.Phone.jsproj;neutral
config.xml
images\SplashScreen.scale-100.png
images\SplashScreenPhone.scale-240.png
images\Square150x150Logo.scale-100.png
images\Square150x150Logo.scale-240.png
images\Square30x30Logo.scale-100.png
images\Square310x310Logo.scale-100.png
images\Square44x44Logo.scale-240.png
images\Square70x70Logo.scale-100.png
images\Square71x71Logo.scale-240.png
images\StoreLogo.scale-100.png
images\StoreLogo.scale-240.png
images\Wide310x150Logo.scale-100.png
images\Wide310x150Logo.scale-240.png
www\beep.caf
www\cordova.js
www\cordova_plugins.js
www\css\index.css
www\img\logo.png
www\index.html
www\js\index.js
www\plugins\de.appplant.cordova.plugin.local-notification\src\windows\LocalNotificationCore.js
www\plugins\de.appplant.cordova.plugin.local-notification\src\windows\LocalNotificationProxy.js
www\plugins\de.appplant.cordova.plugin.local-notification\src\windows\LocalNotificationUtil.js
www\plugins\de.appplant.cordova.plugin.local-notification\www\local-notification.js
www\plugins\de.appplant.cordova.plugin.local-notification\www\local-notification-core.js
www\plugins\de.appplant.cordova.plugin.local-notification\www\local-notification-util.js
www\plugins\nl.x-services.plugins.toast\test\tests.js
www\plugins\nl.x-services.plugins.toast\www\Toast.js
www\plugins\org.apache.cordova.device\src\windows\DeviceProxy.js
www\plugins\org.apache.cordova.device\www\device.js
www\sound.mp3
config.xml
images\SplashScreen.scale-100.png
images\SplashScreenPhone.scale-240.png
images\Square150x150Logo.scale-100.png
images\Square150x150Logo.scale-240.png
images\Square30x30Logo.scale-100.png
images\Square310x310Logo.scale-100.png
images\Square44x44Logo.scale-240.png
images\Square70x70Logo.scale-100.png
images\Square71x71Logo.scale-240.png
images\StoreLogo.scale-100.png
images\StoreLogo.scale-240.png
images\Wide310x150Logo.scale-100.png
images\Wide310x150Logo.scale-240.png
www\beep.caf
www\cordova.js
www\cordova_plugins.js
www\css\index.css
www\img\logo.png
www\index.html
www\js\index.js
www\plugins\de.appplant.cordova.plugin.local-notification\src\windows\LocalNotificationCore.js
www\plugins\de.appplant.cordova.plugin.local-notification\src\windows\LocalNotificationProxy.js
www\plugins\de.appplant.cordova.plugin.local-notification\src\windows\LocalNotificationUtil.js
www\plugins\de.appplant.cordova.plugin.local-notification\www\local-notification.js
www\plugins\de.appplant.cordova.plugin.local-notification\www\local-notification-core.js
www\plugins\de.appplant.cordova.plugin.local-notification\www\local-notification-util.js
www\plugins\nl.x-services.plugins.toast\test\tests.js
www\plugins\nl.x-services.plugins.toast\www\Toast.js
www\plugins\org.apache.cordova.device\src\windows\DeviceProxy.js
www\plugins\org.apache.cordova.device\www\device.js
www\sound.mp3
<?xml version="1.0" encoding="utf-8"?>
<resources targetOsVersion="6.3.1" targetPlatform="WindowsPhone" majorVersion="1">
<index root="\" startIndexAt="build\phone\bld\layout.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="240" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Theme" value="Dark" />
<qualifier name="AlternateForm" value="" />
</default>
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
<index root="\" startIndexAt="build\phone\bld\resources.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="240" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Theme" value="Dark" />
<qualifier name="AlternateForm" value="" />
</default>
<indexer-config type="RESW" convertDotsToSlashes="true" />
<indexer-config type="RESJSON" />
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
<index root="\" startIndexAt="build\phone\bld\pri.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="240" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Theme" value="Dark" />
<qualifier name="AlternateForm" value="" />
</default>
<indexer-config type="PRI" />
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources targetOsVersion="6.3.1" targetPlatform="WindowsPhone" majorVersion="1">
<index root="\" startIndexAt="build\phone\bld\layout.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="240" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Theme" value="Dark" />
<qualifier name="AlternateForm" value="" />
</default>
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
<index root="\" startIndexAt="build\phone\bld\resources.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="240" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Theme" value="Dark" />
<qualifier name="AlternateForm" value="" />
</default>
<indexer-config type="RESW" convertDotsToSlashes="true" />
<indexer-config type="RESJSON" />
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
<index root="\" startIndexAt="build\phone\bld\pri.resfiles">
<default>
<qualifier name="Language" value="en-US" />
<qualifier name="Contrast" value="standard" />
<qualifier name="Scale" value="240" />
<qualifier name="HomeRegion" value="001" />
<qualifier name="TargetSize" value="256" />
<qualifier name="LayoutDirection" value="LTR" />
<qualifier name="DXFeatureLevel" value="DX9" />
<qualifier name="Theme" value="Dark" />
<qualifier name="AlternateForm" value="" />
</default>
<indexer-config type="PRI" />
<indexer-config type="RESFILES" qualifierDelimiter="." />
</index>
</resources>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="de.appplant.localnotification.example" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="de.appplant.localnotification.example" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="windows-target-version" value="8.0" /> <preference name="WindowsToastCapable" value="true" />
<preference name="windows-phone-target-version" value="8.1" />
<name>NotificationExample</name> <name>NotificationExample</name>
<description> <description>
A sample Apache Cordova application that responds to the deviceready event. A sample Apache Cordova application that responds to the deviceready event.
...@@ -11,4 +10,5 @@ ...@@ -11,4 +10,5 @@
</author> </author>
<content src="index.html" /> <content src="index.html" />
<access origin="*" /> <access origin="*" />
<preference name="windows-target-version" value="10.0" />
</widget> </widget>
#!/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 check_reqs = require('./lib/check_reqs');
// check for help flag
if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) > -1) {
check_reqs.help();
} else {
check_reqs.run().done(function success(msbuild) {
console.log('Environment is supported; found MSBuild Tools version ' + msbuild.version + ' at ' + msbuild.path);
}, function (err) {
console.error('Environment is not supported: ' + err);
process.exit(2);
});
}
:: 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
@ECHO OFF
SET script_path="%~dp0check_reqs"
IF EXIST %script_path% (
node "%script_path%" %*
) ELSE (
ECHO.
ECHO ERROR: Could not find 'check_reqs' script in 'bin' folder, aborting...>&2
EXIT /B 1
)
\ No newline at end of file
...@@ -20,6 +20,5 @@ ...@@ -20,6 +20,5 @@
# #
--> -->
<widget xmlns="http://www.w3.org/ns/widgets"> <widget xmlns="http://www.w3.org/ns/widgets">
<preference name="windows-target-version" value="8.0" />
<preference name="windows-phone-target-version" value="8.1" />
</widget> </widget>
...@@ -90,6 +90,9 @@ ConfigParser.prototype = { ...@@ -90,6 +90,9 @@ ConfigParser.prototype = {
version: function() { version: function() {
return this.doc.getroot().attrib['version']; return this.doc.getroot().attrib['version'];
}, },
windows_packageVersion: function() {
return this.doc.getroot().attrib['windows-packageVersion'];
},
android_versionCode: function() { android_versionCode: function() {
return this.doc.getroot().attrib['android-versionCode']; return this.doc.getroot().attrib['android-versionCode'];
}, },
...@@ -113,6 +116,17 @@ ConfigParser.prototype = { ...@@ -113,6 +116,17 @@ ConfigParser.prototype = {
}); });
return ret; return ret;
}, },
getMatchingPreferences: function(regexp) {
var preferences = this.doc.findall('preference');
var result = [];
preferences.forEach(function(preference) {
if (regexp.test(preference.attrib.name)) {
result.push({ name: preference.attrib.name, value: preference.attrib.value });
}
});
return result;
},
/** /**
* Returns all resources. * Returns all resources.
* @param {string} resourceName Type of static resources to return. * @param {string} resourceName Type of static resources to return.
...@@ -163,7 +177,49 @@ ConfigParser.prototype = { ...@@ -163,7 +177,49 @@ ConfigParser.prototype = {
}); });
return ret; return ret;
}, },
/**
* Returns all <allow-navigation> rules.
* @return {string[]} Array of allow-navigation rules.
*/
getNavigationWhitelistRules: function() {
var rules = this.doc.getroot().findall('allow-navigation');
var result = [];
rules.forEach(function(rule) {
if (rule.attrib.href) {
result.push(rule.attrib.href);
}
});
return result;
},
getWindowsTargetVersion: function() {
var preference = this.getPreference('windows-target-version');
if (!preference)
preference = '8.1'; // default is 8.1.
return preference;
},
getWindowsPhoneTargetVersion: function() {
// This is a little more complicated than the previous one.
// 1. Check for an explicit preference. If the preference is set explicitly, return that, irrespective of whether it is valid
// 2. Get the Windows baseline version. If it's equivalent to 8.0, bump it to 8.1.
// 3. Return the Windows baseline version.
var explicitPreference = this.getPreference('windows-phone-target-version');
if (explicitPreference)
return explicitPreference;
var windowsTargetVersion = this.getWindowsTargetVersion();
if (windowsTargetVersion === '8' || windowsTargetVersion === '8.0')
windowsTargetVersion = '8.1';
return windowsTargetVersion;
},
// Returns the widget defaultLocale // Returns the widget defaultLocale
defaultLocale: function() { defaultLocale: function() {
return this.doc.getroot().attrib['defaultlocale']; return this.doc.getroot().attrib['defaultlocale'];
......
...@@ -17,25 +17,33 @@ ...@@ -17,25 +17,33 @@
under the License. under the License.
*/ */
var Q = require('Q'), var Q = require('q'),
path = require('path'), path = require('path'),
exec = require('./exec'), exec = require('./exec'),
spawn = require('./spawn'); shell = require('shelljs'),
spawn = require('./spawn'),
Version = require('./Version');
function MSBuildTools (version, path) { function MSBuildTools (version, path) {
this.version = version; this.version = version;
this.path = path; this.path = path;
} }
MSBuildTools.prototype.buildProject = function(projFile, buildType, buildarch) { MSBuildTools.prototype.buildProject = function(projFile, buildType, buildarch, otherConfigProperties) {
console.log('Building project: ' + projFile); console.log('Building project: ' + projFile);
console.log('\tConfiguration : ' + buildType); console.log('\tConfiguration : ' + buildType);
console.log('\tPlatform : ' + buildarch); console.log('\tPlatform : ' + buildarch);
var args = ['/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal', '/nologo', var args = ['/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal', '/nologo',
'/p:Configuration=' + buildType, '/p:Configuration=' + buildType,
'/p:Platform=' + buildarch, '/p:Platform=' + buildarch];
'/p:BuildFromCordovaTooling=' + true];
if (otherConfigProperties) {
var keys = Object.keys(otherConfigProperties);
keys.forEach(function(key) {
args.push('/p:' + key + '=' + otherConfigProperties[key]);
});
}
return spawn(path.join(this.path, 'msbuild'), [projFile].concat(args)); return spawn(path.join(this.path, 'msbuild'), [projFile].concat(args));
}; };
...@@ -52,6 +60,16 @@ module.exports.findAvailableVersion = function () { ...@@ -52,6 +60,16 @@ module.exports.findAvailableVersion = function () {
}); });
}; };
module.exports.findAllAvailableVersions = function () {
var versions = ['14.0', '12.0', '4.0'];
return Q.all(versions.map(checkMSBuildVersion)).then(function(unprocessedResults) {
return unprocessedResults.filter(function(item) {
return !!item;
});
});
};
function checkMSBuildVersion(version) { function checkMSBuildVersion(version) {
var deferred = Q.defer(); var deferred = Q.defer();
exec('reg query HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\' + version + ' /v MSBuildToolsPath') exec('reg query HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\' + version + ' /v MSBuildToolsPath')
...@@ -59,7 +77,13 @@ function checkMSBuildVersion(version) { ...@@ -59,7 +77,13 @@ function checkMSBuildVersion(version) {
// fetch msbuild path from 'reg' output // fetch msbuild path from 'reg' output
var path = /MSBuildToolsPath\s+REG_SZ\s+(.*)/i.exec(output); var path = /MSBuildToolsPath\s+REG_SZ\s+(.*)/i.exec(output);
if (path) { if (path) {
deferred.resolve(new MSBuildTools(version, path[1])); path = path[1];
// CB-9565: Windows 10 invokes .NET Native compiler, which only runs on x86 arch,
// so if we're running an x64 Node, make sure to use x86 tools.
if (version === '14.0' && path.indexOf('amd64') > -1) {
path = require('path').join(path, '..');
}
deferred.resolve(new MSBuildTools(version, path));
return; return;
} }
deferred.resolve(null); // not found deferred.resolve(null); // not found
...@@ -68,4 +92,31 @@ function checkMSBuildVersion(version) { ...@@ -68,4 +92,31 @@ function checkMSBuildVersion(version) {
deferred.resolve(null); deferred.resolve(null);
}); });
return deferred.promise; return deferred.promise;
} }
\ No newline at end of file
/// returns an array of available UAP Versions
function getAvailableUAPVersions() {
/*jshint -W069 */
var programFilesFolder = process.env['ProgramFiles(x86)'] || process.env['ProgramFiles'];
// No Program Files folder found, so we won't be able to find UAP SDK
if (!programFilesFolder) return [];
var uapFolderPath = path.join(programFilesFolder, 'Windows Kits', '10', 'Platforms', 'UAP');
if (!shell.test('-e', uapFolderPath)) {
return []; // No UAP SDK exists on this machine
}
var result = [];
shell.ls(uapFolderPath).filter(function(uapDir) {
return shell.test('-d', path.join(uapFolderPath, uapDir));
}).map(function(folder) {
return Version.tryParse(folder);
}).forEach(function(version, index) {
if (version) {
result.push(version);
}
});
return result;
}
module.exports.getAvailableUAPVersions = getAvailableUAPVersions;
/*
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.
*/
function Version(major, minor, build, qfe) {
this.major = major;
this.minor = zeroIfUndefined(minor);
this.build = zeroIfUndefined(build);
this.qfe = zeroIfUndefined(qfe);
}
function zeroIfUndefined(val) {
if (typeof val === 'undefined')
return 0;
return val;
}
Version.Expression = /^\d{1,8}(\.\d{1,8}){0,3}$/;
Version.fromString = function(str) {
var result = Version.tryParse(str);
if (!result)
throw new RangeError('Could not parse a version from the provided value "' + str + '".');
return result;
};
Version.tryParse = function(str) {
if (Version.Expression.test(str)) {
var parts = str.split('.').map(function(part) {
return parseInt(part, 10);
});
var result = new Version(parts[0], parts[1], parts[2], parts[3]);
return result;
}
return false;
};
Version.comparer = function(a, b) {
if (a.constructor !== Version || b.constructor !== Version)
throw new TypeError('Must compare only Versions');
if (a.gt(b))
return 1;
else if (a.eq(b))
return 0;
return -1;
};
Version.prototype.gt = function(other) {
if (other.constructor !== Version)
throw new TypeError('other is not a Version.');
if (this.major > other.major) return true;
if (this.major < other.major) return false;
if (this.minor > other.minor) return true;
if (this.minor < other.minor) return false;
if (this.build > other.build) return true;
if (this.build < other.build) return false;
if (this.qfe > other.qfe) return true;
if (this.qfe < other.qfe) return false;
return false;
};
Version.prototype.gte = function(other) {
if (other.constructor !== Version)
throw new TypeError('other is not a Version.');
if (this.major > other.major) return true;
if (this.major < other.major) return false;
if (this.minor > other.minor) return true;
if (this.minor < other.minor) return false;
if (this.build > other.build) return true;
if (this.build < other.build) return false;
if (this.qfe > other.qfe) return true;
if (this.qfe < other.qfe) return false;
return true;
};
Version.prototype.eq = function(other) {
if (other.constructor !== Version)
throw new TypeError('other is not a Version.');
if (this.major === other.major && this.minor === other.minor && this.build === other.build && this.qfe === other.qfe)
return true;
return false;
};
Version.prototype.toString = function() {
return this.major + '.' + this.minor + '.' + this.build + '.' + this.qfe;
};
module.exports = Version;
...@@ -129,6 +129,24 @@ function Install-App { ...@@ -129,6 +129,24 @@ function Install-App {
} }
} }
function Install-AppFromDirectory {
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
[string] $Path <# Full path to actual AppxManifest.xml #>
)
Add-AppxPackage -Path $Path -Register -ForceApplicationShutdown
}
function Install-AppFromAppx {
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
[string] $Path <# Full path to actual .appx #>
)
Add-AppxPackage -Path $Path -ForceApplicationShutdown
}
function Start-Locally { function Start-Locally {
param( param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)] [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
......
...@@ -22,8 +22,8 @@ var Q = require('q'), ...@@ -22,8 +22,8 @@ var Q = require('q'),
path = require('path'), path = require('path'),
build = require('./build'), build = require('./build'),
utils = require('./utils'), utils = require('./utils'),
ConfigParser = require('./ConfigParser'), packages = require('./package'),
packages = require('./package'); execSync = require('child_process').execSync;
var ROOT = path.join(__dirname, '..', '..'); var ROOT = path.join(__dirname, '..', '..');
...@@ -32,10 +32,15 @@ module.exports.run = function (argv) { ...@@ -32,10 +32,15 @@ module.exports.run = function (argv) {
return Q.reject('Could not find project at ' + ROOT); return Q.reject('Could not find project at ' + ROOT);
} }
// parse args // Check if ran from admin prompt and fail quickly if CLI has administrative permissions
// http://stackoverflow.com/a/11995662/64949
if (ranWithElevatedPermissions())
return Q.reject('Can not run this platform with administrative permissions. Please run from a non-admin prompt.');
// parse arg
var args = nopt({'debug': Boolean, 'release': Boolean, 'nobuild': Boolean, var args = nopt({'debug': Boolean, 'release': Boolean, 'nobuild': Boolean,
'device': Boolean, 'emulator': Boolean, 'target': String, 'archs': String, 'device': Boolean, 'emulator': Boolean, 'target': String, 'archs': String,
'phone': Boolean, 'win': Boolean}, {'r' : '--release'}, argv); 'phone': Boolean, 'win': Boolean, 'appx': String, 'win10tools': Boolean }, {'r' : '--release'}, argv);
// Validate args // Validate args
if (args.debug && args.release) { if (args.debug && args.release) {
...@@ -51,30 +56,62 @@ module.exports.run = function (argv) { ...@@ -51,30 +56,62 @@ module.exports.run = function (argv) {
// Get build/deploy options // Get build/deploy options
var buildType = args.release ? 'release' : 'debug', var buildType = args.release ? 'release' : 'debug',
buildArchs = args.archs ? args.archs.split(' ') : ['anycpu'], buildArchs = args.archs ? args.archs.split(' ') : ['anycpu'],
projectType = args.phone ? 'phone' : 'windows', deployTarget = args.target ? args.target : (args.emulator ? 'emulator' : 'device');
deployTarget = args.target ? args.target : args.device ? 'device' : 'emulator';
var buildTargets = build.getBuildTargets(args.win, args.phone, args.appx);
if (!buildTargets || buildTargets.lenght <= 0) {
return Q.reject('Unable to determine deploy target.');
}
// we deploy the first build target so we use buildTargets[0] to determine
// what project type we should deploy
var projectType = projFileToType(buildTargets[0]);
// for win switch we should correctly handle 8.0 and 8.1 version as per configuration if (projectType === 'windows80' && argv.indexOf('--bundle') > -1) {
if (projectType == 'windows' && getWindowsTargetVersion() == '8.0') { // Don't enable bundling for Windows 8.
projectType = 'windows80'; // Assumes the commander only enters the --bundle param once
argv.splice(argv.indexOf('--bundle'), 1);
} }
// if --nobuild isn't specified then build app first // if --nobuild isn't specified then build app first
var buildPackages = args.nobuild ? Q() : build.run(argv); var buildPackages = args.nobuild ? packages.getPackage(projectType, buildType, buildArchs) : build.run(argv);
return buildPackages.then(function () { // buildPackages also deploys bundles
return packages.getPackage(projectType, buildType, buildArchs[0]); return buildPackages.then(function(pkg) {
}).then(function(pkg) { console.log('\nDeploying ' + pkg.type + ' package to ' + deployTarget + ':\n' + pkg.appx);
console.log('\nDeploying ' + pkg.type + ' package to ' + deployTarget + ':\n' + pkg.file); switch (pkg.type) {
return pkg.type == 'phone' ? case 'phone':
packages.deployToPhone(pkg.file, deployTarget) : return packages.deployToPhone(pkg, deployTarget, args.win10tools).catch(function(e) {
packages.deployToDesktop(pkg.file, deployTarget); if (args.target || args.emulator || args.device) {
throw e; // Explicit target, carry on
}
// 'device' was inferred initially, because no target was specified
return packages.deployToPhone(pkg, 'emulator', args.win10tools);
});
case 'windows10':
if (args.phone) {
// Win10 emulator launch is not currently supported, always force device
if (args.emulator || args.target === 'emulator') {
console.warn('Windows 10 Phone emulator is currently not supported.');
console.warn('If you want to deploy to emulator, please use Visual Studio instead.');
console.warn('Attempting to deploy to device...');
}
return packages.deployToPhone(pkg, deployTarget, true);
}
else {
return packages.deployToDesktop(pkg, deployTarget, projectType);
}
break;
default: // 'windows'
return packages.deployToDesktop(pkg, deployTarget, projectType);
}
}); });
}; };
module.exports.help = function () { module.exports.help = function () {
console.log('\nUsage: run [ --device | --emulator | --target=<id> ] [ --debug | --release | --nobuild ]'); console.log('\nUsage: run [ --device | --emulator | --target=<id> ] [ --debug | --release | --nobuild ]');
console.log(' [ --x86 | --x64 | --arm ] [--phone | --win]'); console.log(' [ --x86 | --x64 | --arm | --archs="list" ] [--bundle] [--phone | --win]');
console.log(' --device : Deploys and runs the project on the connected device.'); console.log(' --device : Deploys and runs the project on the connected device.');
console.log(' --emulator : Deploys and runs the project on an emulator.'); console.log(' --emulator : Deploys and runs the project on an emulator.');
console.log(' --target=<id> : Deploys and runs the project on the specified target.'); console.log(' --target=<id> : Deploys and runs the project on the specified target.');
...@@ -82,9 +119,17 @@ module.exports.help = function () { ...@@ -82,9 +119,17 @@ module.exports.help = function () {
console.log(' --release : Builds project in release mode.'); console.log(' --release : Builds project in release mode.');
console.log(' --nobuild : Uses pre-built package, or errors if project is not built.'); console.log(' --nobuild : Uses pre-built package, or errors if project is not built.');
console.log(' --archs : Specific chip architectures (`anycpu`, `arm`, `x86`, `x64`).'); console.log(' --archs : Specific chip architectures (`anycpu`, `arm`, `x86`, `x64`).');
console.log(' Separate multiple choices with a space and, if choosing');
console.log(' multiple choices, enclose in quotes (").');
console.log(' --bundle : Generates an .appxbundle. Not valid if anycpu AND chip-specific');
console.log(' architectures are used.');
console.log(' --phone, --win'); console.log(' --phone, --win');
console.log(' : Specifies project type to deploy'); console.log(' : Specifies project type to deploy');
console.log(''); console.log(' --appx=<8.1-win|8.1-phone|uap>');
console.log(' : Overrides windows-target-version to build Windows 8.1, ');
console.log(' Windows Phone 8.1, or Windows 10.');
console.log(' --win10tools : Uses Windows 10 deployment tools (used for a Windows 8.1 app when');
console.log(' being deployed to a Windows 10 device)');
console.log('Examples:'); console.log('Examples:');
console.log(' run'); console.log(' run');
console.log(' run --emulator'); console.log(' run --emulator');
...@@ -92,21 +137,35 @@ module.exports.help = function () { ...@@ -92,21 +137,35 @@ module.exports.help = function () {
console.log(' run --target=7988B8C3-3ADE-488d-BA3E-D052AC9DC710'); console.log(' run --target=7988B8C3-3ADE-488d-BA3E-D052AC9DC710');
console.log(' run --device --release'); console.log(' run --device --release');
console.log(' run --emulator --debug'); console.log(' run --emulator --debug');
console.log(' run --archs="x64 x86 arm" --no-bundle');
console.log(' run --device --appx=phone-8.1');
console.log(' run --device --archs="x64 x86 arm"');
console.log(''); console.log('');
process.exit(0); process.exit(0);
}; };
// Retrieves project type for the project file specified.
// @param {String} projFile Project file, for example 'CordovaApp.Windows10.jsproj'
// @returns {String} Proejct type, for example 'windows10'
function projFileToType(projFile)
{
return projFile.replace(/CordovaApp|jsproj|\./gi, '').toLowerCase();
}
function getWindowsTargetVersion() { /**
var config = new ConfigParser(path.join(ROOT, 'config.xml')); * Checks if current process is an with administrative permissions (e.g. from
var windowsTargetVersion = config.getPreference('windows-target-version'); * elevated command prompt).
switch(windowsTargetVersion) { *
case '8': * @return {Boolean} true if elevated permissions detected, otherwise false
case '8.0': */
return '8.0'; function ranWithElevatedPermissions () {
case '8.1': try {
return '8.1'; // Check if ran from admin prompt and fail quickly if CLI has administrative permissions
default: // http://stackoverflow.com/a/11995662/64949
throw new Error('Unsupported windows-target-version value: ' + windowsTargetVersion); execSync('net session', {'stdio': 'ignore'});
return true;
} catch (e) {
return false;
} }
} }
\ No newline at end of file
...@@ -17,20 +17,21 @@ ...@@ -17,20 +17,21 @@
under the License. under the License.
*/ */
var devices = require('./package'), var deploy = require('./deployment'),
args = process.argv.slice(2); args = process.argv.slice(2);
// help/usage function // help/usage function
function help() { function help() {
console.log(''); console.log('');
console.log('Usage: node target-list.js [ --emulators | --devices | --started_emulators | --all ]'); console.log('Usage: node target-list.js [--win10] [ --emulators | --devices | --started_emulators | --all ]');
console.log(' --win10 : Chooses to list Windows 10 devices (Windows 8.1 is default).');
console.log(' --emulators : List the possible target emulators availible.'); console.log(' --emulators : List the possible target emulators availible.');
console.log(' --devices : List the possible target devices availible. *NOT IMPLEMENTED YET*'); console.log(' --devices : List the possible target devices availible.');
console.log(' --started_emulators : List any started emulators availible. *NOT IMPLEMENTED YET*'); console.log(' --started_emulators : List any started emulators availible. *NOT IMPLEMENTED YET*');
console.log(' --all : List all available devices'); console.log(' --all : List all available devices');
console.log('examples:'); console.log('examples:');
console.log(' node target-list.js --emulators'); console.log(' node target-list.js --emulators');
console.log(' node target-list.js --devices'); console.log(' node target-list.js --win10 --devices');
console.log(' node target-list.js --started_emulators'); console.log(' node target-list.js --started_emulators');
console.log(' node target-list.js --all'); console.log(' node target-list.js --all');
console.log(''); console.log('');
...@@ -40,10 +41,42 @@ function help() { ...@@ -40,10 +41,42 @@ function help() {
if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[0]) > -1) { if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[0]) > -1) {
help(); help();
} else { } else {
devices.listDevices()
.then(function (deviceList) { var version = '8.1';
if (args.indexOf('--win10') >= 0) {
version = '10.0';
}
var onlyDevices = false;
if (args.indexOf('--devices') >= 0) {
onlyDevices = true;
}
var onlyEmulators = false;
if (args.indexOf('--emulators') >= 0) {
onlyEmulators = true;
}
if (onlyDevices && onlyEmulators) {
console.warn('Error: Cannot specify both --emulators and --devices');
help();
return;
}
var deploymentTool = deploy.getDeploymentTool(version);
deploymentTool.enumerateDevices().then(function (deviceList) {
if (onlyDevices || onlyEmulators) {
deviceList = deviceList.filter(function(device) {
return (onlyDevices && device.type === 'device') || (onlyEmulators && device.type === 'emulator');
});
}
deviceList.forEach(function (device) { deviceList.forEach(function (device) {
console.log(device); console.log(device.toString());
}); });
if (deviceList.length === 0) {
console.log('No devices found matching the specified criteria.');
}
}); });
} }
\ No newline at end of file
...@@ -19,11 +19,12 @@ ...@@ -19,11 +19,12 @@
/* jshint sub:true */ /* jshint sub:true */
var Q = require('Q'), var Q = require('q'),
fs = require('fs'), fs = require('fs'),
path = require('path'), path = require('path'),
exec = require('./exec'), exec = require('./exec'),
spawn = require('./spawn'); spawn = require('./spawn'),
deploy = require('./deployment');
// returns full path to msbuild tools required to build the project and tools version // returns full path to msbuild tools required to build the project and tools version
module.exports.getMSBuildTools = function () { module.exports.getMSBuildTools = function () {
...@@ -57,7 +58,6 @@ module.exports.getAppStoreUtils = function () { ...@@ -57,7 +58,6 @@ module.exports.getAppStoreUtils = function () {
if (!fs.existsSync (appStoreUtils)) { if (!fs.existsSync (appStoreUtils)) {
return Q.reject('Can\'t unblock AppStoreUtils script'); return Q.reject('Can\'t unblock AppStoreUtils script');
} }
//console.log("Removing execution restrictions from AppStoreUtils...");
return spawn('powershell', ['Unblock-File', module.exports.quote(appStoreUtils)]).then(function () { return spawn('powershell', ['Unblock-File', module.exports.quote(appStoreUtils)]).then(function () {
return Q.resolve(appStoreUtils); return Q.resolve(appStoreUtils);
}).fail(function (err) { }).fail(function (err) {
...@@ -66,15 +66,15 @@ module.exports.getAppStoreUtils = function () { ...@@ -66,15 +66,15 @@ module.exports.getAppStoreUtils = function () {
}; };
// returns path to AppDeploy util from Windows Phone 8.1 SDK // returns path to AppDeploy util from Windows Phone 8.1 SDK
module.exports.getAppDeployUtils = function () { module.exports.getAppDeployUtils = function (targetWin10) {
var appDeployUtils = path.join((process.env['ProgramFiles(x86)'] || process.env['ProgramFiles']), var version = targetWin10 ? '10.0' : '8.1';
'Microsoft SDKs', 'Windows Phone', 'v8.1', 'Tools', 'AppDeploy', 'AppDeployCmd.exe'); var tool = deploy.getDeploymentTool(version);
// Check if AppDeployCmd is exists
if (!fs.existsSync(appDeployUtils)) { if (!tool.isAvailable()) {
console.warn('WARNING: AppDeploy tool (AppDeployCmd.exe) didn\'t found. Assume that it\'s in %PATH%'); return Q.reject('App deployment utilities: "' + tool.path + '", not found. Ensure the Windows SDK is installed.');
return Q.resolve('AppDeployCmd');
} }
return Q.resolve(appDeployUtils);
return Q.resolve(tool);
}; };
// checks to see if a .jsproj file exists in the project root // checks to see if a .jsproj file exists in the project root
......
#!/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 log = require('./lib/log'),
Q = require('q'),
args = process.argv;
// Usage support for when args are given
Q().then(function() {
var argsToPass = [];
if (args.length > 2) {
argsToPass = args.slice(2);
}
log.run(argsToPass);
}, function(err) {
console.error('ERROR: ' + err);
process.exit(2);
});
...@@ -5,15 +5,22 @@ ...@@ -5,15 +5,22 @@
:: to you under the Apache License, Version 2.0 (the :: to you under the Apache License, Version 2.0 (the
:: "License"); you may not use this file except in compliance :: "License"); you may not use this file except in compliance
:: with the License. You may obtain a copy of the License at :: with the License. You may obtain a copy of the License at
:: ::
:: http://www.apache.org/licenses/LICENSE-2.0 :: http://www.apache.org/licenses/LICENSE-2.0
:: ::
:: Unless required by applicable law or agreed to in writing, :: Unless required by applicable law or agreed to in writing,
:: software distributed under the License is distributed on an :: software distributed under the License is distributed on an
:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
:: KIND, either express or implied. See the License for the :: KIND, either express or implied. See the License for the
:: specific language governing permissions and limitations :: specific language governing permissions and limitations
:: under the License :: under the License.
@ECHO OFF @ECHO OFF
ECHO Sorry, logging is not supported for Windows. 1>&2 SET script_path="%~dp0log"
EXIT /B 1 IF EXIST %script_path% (
\ No newline at end of file node %script_path% %*
) ELSE (
ECHO.
ECHO ERROR: Could not find 'log' script in 'cordova' folder, aborting...>&2
EXIT /B 1
)
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
var fs = require("fs"),
sys = require("sys"),
path = require("path"),
xml = fs.cat(path.join(__dirname, "test.xml")),
sax = require("../lib/sax"),
strict = sax.parser(true),
loose = sax.parser(false, {trim:true}),
inspector = function (ev) { return function (data) {
// sys.error("");
// sys.error(ev+": "+sys.inspect(data));
// for (var i in data) sys.error(i+ " "+sys.inspect(data[i]));
// sys.error(this.line+":"+this.column);
}};
xml.addCallback(function (xml) {
// strict.write(xml);
sax.EVENTS.forEach(function (ev) {
loose["on"+ev] = inspector(ev);
});
loose.onend = function () {
// sys.error("end");
// sys.error(sys.inspect(loose));
};
// do this one char at a time to verify that it works.
// (function () {
// if (xml) {
// loose.write(xml.substr(0,1000));
// xml = xml.substr(1000);
// process.nextTick(arguments.callee);
// } else loose.close();
// })();
for (var i = 0; i < 1000; i ++) {
loose.write(xml);
loose.close();
}
});
// pull out /GeneralSearchResponse/categories/category/items/product tags
// the rest we don't care about.
var sax = require("../lib/sax.js")
var fs = require("fs")
var path = require("path")
var xmlFile = path.resolve(__dirname, "shopping.xml")
var util = require("util")
var http = require("http")
fs.readFile(xmlFile, function (er, d) {
http.createServer(function (req, res) {
if (er) throw er
var xmlstr = d.toString("utf8")
var parser = sax.parser(true)
var products = []
var product = null
var currentTag = null
parser.onclosetag = function (tagName) {
if (tagName === "product") {
products.push(product)
currentTag = product = null
return
}
if (currentTag && currentTag.parent) {
var p = currentTag.parent
delete currentTag.parent
currentTag = p
}
}
parser.onopentag = function (tag) {
if (tag.name !== "product" && !product) return
if (tag.name === "product") {
product = tag
}
tag.parent = currentTag
tag.children = []
tag.parent && tag.parent.children.push(tag)
currentTag = tag
}
parser.ontext = function (text) {
if (currentTag) currentTag.children.push(text)
}
parser.onend = function () {
var out = util.inspect(products, false, 3, true)
res.writeHead(200, {"content-type":"application/json"})
res.end("{\"ok\":true}")
// res.end(JSON.stringify(products))
}
parser.write(xmlstr).end()
}).listen(1337)
})
require("http").createServer(function (req, res) {
res.writeHead(200, {"content-type":"application/json"})
res.end(JSON.stringify({ok: true}))
}).listen(1337)
<root>
something<else> blerm <slurm
attrib =
"blorg" ></else><!-- COMMENT!
--><![CDATA[processing...]]> <selfclosing tag="blr>&quot;"/> a bit down here</root>
var sax = require("../lib/sax")
, printer = sax.createStream(false, {lowercasetags:true, trim:true})
, fs = require("fs")
function entity (str) {
return str.replace('"', '&quot;')
}
printer.tabstop = 2
printer.level = 0
printer.indent = function () {
print("\n")
for (var i = this.level; i > 0; i --) {
for (var j = this.tabstop; j > 0; j --) {
print(" ")
}
}
}
printer.on("opentag", function (tag) {
this.indent()
this.level ++
print("<"+tag.name)
for (var i in tag.attributes) {
print(" "+i+"=\""+entity(tag.attributes[i])+"\"")
}
print(">")
})
printer.on("text", ontext)
printer.on("doctype", ontext)
function ontext (text) {
this.indent()
print(text)
}
printer.on("closetag", function (tag) {
this.level --
this.indent()
print("</"+tag+">")
})
printer.on("cdata", function (data) {
this.indent()
print("<![CDATA["+data+"]]>")
})
printer.on("comment", function (comment) {
this.indent()
print("<!--"+comment+"-->")
})
printer.on("error", function (error) {
console.error(error)
throw error
})
if (!process.argv[2]) {
throw new Error("Please provide an xml file to prettify\n"+
"TODO: read from stdin or take a file")
}
var xmlfile = require("path").join(process.cwd(), process.argv[2])
var fstr = fs.createReadStream(xmlfile, { encoding: "utf8" })
function print (c) {
if (!process.stdout.write(c)) {
fstr.pause()
}
}
process.stdout.on("drain", function () {
fstr.resume()
})
fstr.pipe(printer)
#!/usr/local/bin/node-bench
var Promise = require("events").Promise;
var xml = require("posix").cat("test.xml").wait(),
path = require("path"),
sax = require("../lib/sax"),
saxT = require("../lib/sax-trampoline"),
parser = sax.parser(false, {trim:true}),
parserT = saxT.parser(false, {trim:true}),
sys = require("sys");
var count = exports.stepsPerLap = 500,
l = xml.length,
runs = 0;
exports.countPerLap = 1000;
exports.compare = {
"switch" : function () {
// sys.debug("switch runs: "+runs++);
// for (var x = 0; x < l; x += 1000) {
// parser.write(xml.substr(x, 1000))
// }
// for (var i = 0; i < count; i ++) {
parser.write(xml);
parser.close();
// }
// done();
},
trampoline : function () {
// sys.debug("trampoline runs: "+runs++);
// for (var x = 0; x < l; x += 1000) {
// parserT.write(xml.substr(x, 1000))
// }
// for (var i = 0; i < count; i ++) {
parserT.write(xml);
parserT.close();
// }
// done();
},
};
sys.debug("rock and roll...");
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<title>testing the parser</title>
</head>
<body>
<p>hello
<script>
</script>
</body>
</html>
// set this really low so that I don't have to put 64 MB of xml in here.
var sax = require("../lib/sax")
var bl = sax.MAX_BUFFER_LENGTH
sax.MAX_BUFFER_LENGTH = 5;
require(__dirname).test({
expect : [
["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 15\nChar: "],
["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 30\nChar: "],
["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 45\nChar: "],
["opentag", {
"name": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ",
"attributes": {}
}],
["text", "yo"],
["closetag", "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"]
]
}).write("<abcdefghijklmn")
.write("opqrstuvwxyzABC")
.write("DEFGHIJKLMNOPQR")
.write("STUVWXYZ>")
.write("yo")
.write("</abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ>")
.close();
sax.MAX_BUFFER_LENGTH = bl
require(__dirname).test({
expect : [
["opentag", {"name": "R","attributes": {}}],
["opencdata", undefined],
["cdata", " this is character data  "],
["closecdata", undefined],
["closetag", "R"]
]
}).write("<r><![CDATA[ this is ").write("character data  ").write("]]></r>").close();
require(__dirname).test({
expect : [
["opentag", {"name": "R","attributes": {}}],
["opencdata", undefined],
["cdata", " this is "],
["closecdata", undefined],
["closetag", "R"]
]
})
.write("<r><![CDATA[ this is ]")
.write("]>")
.write("</r>")
.close();
var p = require(__dirname).test({
expect : [
["opentag", {"name": "R","attributes": {}}],
["opencdata", undefined],
["cdata", "[[[[[[[[]]]]]]]]"],
["closecdata", undefined],
["closetag", "R"]
]
})
var x = "<r><![CDATA[[[[[[[[[]]]]]]]]]]></r>"
for (var i = 0; i < x.length ; i ++) {
p.write(x.charAt(i))
}
p.close();
var p2 = require(__dirname).test({
expect : [
["opentag", {"name": "R","attributes": {}}],
["opencdata", undefined],
["cdata", "[[[[[[[[]]]]]]]]"],
["closecdata", undefined],
["closetag", "R"]
]
})
var x = "<r><![CDATA[[[[[[[[[]]]]]]]]]]></r>"
p2.write(x).close();
require(__dirname).test({
expect : [
["opentag", {"name": "R","attributes": {}}],
["opencdata", undefined],
["cdata", " this is "],
["closecdata", undefined],
["opencdata", undefined],
["cdata", "character data  "],
["closecdata", undefined],
["closetag", "R"]
]
}).write("<r><![CDATA[ this is ]]>").write("<![CDA").write("T").write("A[")
.write("character data  ").write("]]></r>").close();
require(__dirname).test({
xml : "<r><![CDATA[ this is character data  ]]></r>",
expect : [
["opentag", {"name": "R","attributes": {}}],
["opencdata", undefined],
["cdata", " this is character data  "],
["closecdata", undefined],
["closetag", "R"]
]
});
var globalsBefore = JSON.stringify(Object.keys(global))
, util = require("util")
, assert = require("assert")
, fs = require("fs")
, path = require("path")
, sax = require("../lib/sax")
exports.sax = sax
// handy way to do simple unit tests
// if the options contains an xml string, it'll be written and the parser closed.
// otherwise, it's assumed that the test will write and close.
exports.test = function test (options) {
var xml = options.xml
, parser = sax.parser(options.strict, options.opt)
, expect = options.expect
, e = 0
sax.EVENTS.forEach(function (ev) {
parser["on" + ev] = function (n) {
if (process.env.DEBUG) {
console.error({ expect: expect[e]
, actual: [ev, n] })
}
if (e >= expect.length && (ev === "end" || ev === "ready")) return
assert.ok( e < expect.length,
"expectation #"+e+" "+util.inspect(expect[e])+"\n"+
"Unexpected event: "+ev+" "+(n ? util.inspect(n) : ""))
var inspected = n instanceof Error ? "\n"+ n.message : util.inspect(n)
assert.equal(ev, expect[e][0],
"expectation #"+e+"\n"+
"Didn't get expected event\n"+
"expect: "+expect[e][0] + " " +util.inspect(expect[e][1])+"\n"+
"actual: "+ev+" "+inspected+"\n")
if (ev === "error") assert.equal(n.message, expect[e][1])
else assert.deepEqual(n, expect[e][1],
"expectation #"+e+"\n"+
"Didn't get expected argument\n"+
"expect: "+expect[e][0] + " " +util.inspect(expect[e][1])+"\n"+
"actual: "+ev+" "+inspected+"\n")
e++
if (ev === "error") parser.resume()
}
})
if (xml) parser.write(xml).close()
return parser
}
if (module === require.main) {
var running = true
, failures = 0
function fail (file, er) {
util.error("Failed: "+file)
util.error(er.stack || er.message)
failures ++
}
fs.readdir(__dirname, function (error, files) {
files = files.filter(function (file) {
return (/\.js$/.exec(file) && file !== 'index.js')
})
var n = files.length
, i = 0
console.log("0.." + n)
files.forEach(function (file) {
// run this test.
try {
require(path.resolve(__dirname, file))
var globalsAfter = JSON.stringify(Object.keys(global))
if (globalsAfter !== globalsBefore) {
var er = new Error("new globals introduced\n"+
"expected: "+globalsBefore+"\n"+
"actual: "+globalsAfter)
globalsBefore = globalsAfter
throw er
}
console.log("ok " + (++i) + " - " + file)
} catch (er) {
console.log("not ok "+ (++i) + " - " + file)
fail(file, er)
}
})
if (!failures) return console.log("#all pass")
else return console.error(failures + " failure" + (failures > 1 ? "s" : ""))
})
}
require(__dirname).test
( { xml :
"<compileClassesResponse>"+
"<result>"+
"<bodyCrc>653724009</bodyCrc>"+
"<column>-1</column>"+
"<id>01pG0000002KoSUIA0</id>"+
"<line>-1</line>"+
"<name>CalendarController</name>"+
"<success>true</success>"+
"</result>"+
"</compileClassesResponse>"
, expect :
[ [ "opentag", { name: "COMPILECLASSESRESPONSE", attributes: {} } ]
, [ "opentag", { name : "RESULT", attributes: {} } ]
, [ "opentag", { name: "BODYCRC", attributes: {} } ]
, [ "text", "653724009" ]
, [ "closetag", "BODYCRC" ]
, [ "opentag", { name: "COLUMN", attributes: {} } ]
, [ "text", "-1" ]
, [ "closetag", "COLUMN" ]
, [ "opentag", { name: "ID", attributes: {} } ]
, [ "text", "01pG0000002KoSUIA0" ]
, [ "closetag", "ID" ]
, [ "opentag", {name: "LINE", attributes: {} } ]
, [ "text", "-1" ]
, [ "closetag", "LINE" ]
, [ "opentag", {name: "NAME", attributes: {} } ]
, [ "text", "CalendarController" ]
, [ "closetag", "NAME" ]
, [ "opentag", {name: "SUCCESS", attributes: {} } ]
, [ "text", "true" ]
, [ "closetag", "SUCCESS" ]
, [ "closetag", "RESULT" ]
, [ "closetag", "COMPILECLASSESRESPONSE" ]
]
, strict : false
, opt : {}
}
)
// https://github.com/isaacs/sax-js/issues/33
require(__dirname).test
( { xml : "<xml>\n"+
"<!-- \n"+
" comment with a single dash- in it\n"+
"-->\n"+
"<data/>\n"+
"</xml>"
, expect :
[ [ "opentag", { name: "xml", attributes: {} } ]
, [ "text", "\n" ]
, [ "comment", " \n comment with a single dash- in it\n" ]
, [ "text", "\n" ]
, [ "opentag", { name: "data", attributes: {} } ]
, [ "closetag", "data" ]
, [ "text", "\n" ]
, [ "closetag", "xml" ]
]
, strict : true
, opt : {}
}
)
// https://github.com/isaacs/sax-js/issues/35
require(__dirname).test
( { xml : "<xml>&#Xd;&#X0d;\n"+
"</xml>"
, expect :
[ [ "opentag", { name: "xml", attributes: {} } ]
, [ "text", "\r\r\n" ]
, [ "closetag", "xml" ]
]
, strict : true
, opt : {}
}
)
// https://github.com/isaacs/sax-js/issues/47
require(__dirname).test
( { xml : '<a href="query.svc?x=1&y=2&z=3"/>'
, expect : [
[ "attribute", { name:'href', value:"query.svc?x=1&y=2&z=3"} ],
[ "opentag", { name: "a", attributes: { href:"query.svc?x=1&y=2&z=3"} } ],
[ "closetag", "a" ]
]
, strict : true
, opt : {}
}
)
// https://github.com/isaacs/sax-js/issues/49
require(__dirname).test
( { xml : "<xml><script>hello world</script></xml>"
, expect :
[ [ "opentag", { name: "xml", attributes: {} } ]
, [ "opentag", { name: "script", attributes: {} } ]
, [ "text", "hello world" ]
, [ "closetag", "script" ]
, [ "closetag", "xml" ]
]
, strict : false
, opt : { lowercasetags: true, noscript: true }
}
)
require(__dirname).test
( { xml : "<xml><script><![CDATA[hello world]]></script></xml>"
, expect :
[ [ "opentag", { name: "xml", attributes: {} } ]
, [ "opentag", { name: "script", attributes: {} } ]
, [ "opencdata", undefined ]
, [ "cdata", "hello world" ]
, [ "closecdata", undefined ]
, [ "closetag", "script" ]
, [ "closetag", "xml" ]
]
, strict : false
, opt : { lowercasetags: true, noscript: true }
}
)
var sax = require("../lib/sax"),
assert = require("assert")
function testPosition(chunks, expectedEvents) {
var parser = sax.parser();
expectedEvents.forEach(function(expectation) {
parser['on' + expectation[0]] = function() {
for (var prop in expectation[1]) {
assert.equal(parser[prop], expectation[1][prop]);
}
}
});
chunks.forEach(function(chunk) {
parser.write(chunk);
});
};
testPosition(['<div>abcdefgh</div>'],
[ ['opentag', { position: 5, startTagPosition: 1 }]
, ['text', { position: 19, startTagPosition: 14 }]
, ['closetag', { position: 19, startTagPosition: 14 }]
]);
testPosition(['<div>abcde','fgh</div>'],
[ ['opentag', { position: 5, startTagPosition: 1 }]
, ['text', { position: 19, startTagPosition: 14 }]
, ['closetag', { position: 19, startTagPosition: 14 }]
]);
require(__dirname).test({
xml : "<html><head><script>if (1 < 0) { console.log('elo there'); }</script></head></html>",
expect : [
["opentag", {"name": "HTML","attributes": {}}],
["opentag", {"name": "HEAD","attributes": {}}],
["opentag", {"name": "SCRIPT","attributes": {}}],
["script", "if (1 < 0) { console.log('elo there'); }"],
["closetag", "SCRIPT"],
["closetag", "HEAD"],
["closetag", "HTML"]
]
});
require(__dirname).test({
xml :
"<root>"+
"<child>" +
"<haha />" +
"</child>" +
"<monkey>" +
"=(|)" +
"</monkey>" +
"</root>",
expect : [
["opentag", {
"name": "root",
"attributes": {}
}],
["opentag", {
"name": "child",
"attributes": {}
}],
["opentag", {
"name": "haha",
"attributes": {}
}],
["closetag", "haha"],
["closetag", "child"],
["opentag", {
"name": "monkey",
"attributes": {}
}],
["text", "=(|)"],
["closetag", "monkey"],
["closetag", "root"],
["end"],
["ready"]
],
strict : true,
opt : {}
});
require(__dirname).test({
xml :
"<root>"+
"<child>" +
"<haha />" +
"</child>" +
"<monkey>" +
"=(|)" +
"</monkey>" +
"</root>",
expect : [
["opentag", {
"name": "ROOT",
"attributes": {}
}],
["opentag", {
"name": "CHILD",
"attributes": {}
}],
["opentag", {
"name": "HAHA",
"attributes": {}
}],
["closetag", "HAHA"],
["closetag", "CHILD"],
["opentag", {
"name": "MONKEY",
"attributes": {}
}],
["text", "=(|)"],
["closetag", "MONKEY"],
["closetag", "ROOT"],
["end"],
["ready"]
],
strict : false,
opt : {}
});
require(__dirname).test({
xml :
"<root> "+
"<haha /> "+
"<haha/> "+
"<monkey> "+
"=(|) "+
"</monkey>"+
"</root> ",
expect : [
["opentag", {name:"ROOT", attributes:{}}],
["opentag", {name:"HAHA", attributes:{}}],
["closetag", "HAHA"],
["opentag", {name:"HAHA", attributes:{}}],
["closetag", "HAHA"],
// ["opentag", {name:"HAHA", attributes:{}}],
// ["closetag", "HAHA"],
["opentag", {name:"MONKEY", attributes:{}}],
["text", "=(|)"],
["closetag", "MONKEY"],
["closetag", "ROOT"]
],
opt : { trim : true }
});
\ No newline at end of file
// stray ending tags should just be ignored in non-strict mode.
// https://github.com/isaacs/sax-js/issues/32
require(__dirname).test
( { xml :
"<a><b></c></b></a>"
, expect :
[ [ "opentag", { name: "A", attributes: {} } ]
, [ "opentag", { name: "B", attributes: {} } ]
, [ "text", "</c>" ]
, [ "closetag", "B" ]
, [ "closetag", "A" ]
]
, strict : false
, opt : {}
}
)
require(__dirname).test({
xml : "<span>Welcome,</span> to monkey land",
expect : [
["opentag", {
"name": "SPAN",
"attributes": {}
}],
["text", "Welcome,"],
["closetag", "SPAN"],
["text", " to monkey land"],
["end"],
["ready"]
],
strict : false,
opt : {}
});
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment