You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by be...@apache.org on 2013/07/31 01:38:32 UTC
[10/10] wp7 commit: Killed the cordova-wp7 master branch
Killed the cordova-wp7 master branch
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/5c361be6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/5c361be6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/5c361be6
Branch: refs/heads/master
Commit: 5c361be6812c9f8ca424d0e692e1df9a5c1355d4
Parents: a4315a2
Author: Benn Mapes <be...@gmail.com>
Authored: Tue Jul 30 16:36:30 2013 -0700
Committer: Benn Mapes <be...@gmail.com>
Committed: Tue Jul 30 16:36:30 2013 -0700
----------------------------------------------------------------------
LICENSE | 12 -
NOTICE | 5 -
README.md | 54 +-
VERSION | 1 -
bin/check_reqs | 24 -
bin/check_reqs.bat | 9 -
bin/check_reqs.js | 111 -
bin/create.bat | 9 -
bin/create.js | 267 -
bin/update.bat | 9 -
bin/update.js | 353 -
framework/Images/appbar.back.rest.png | Bin 375 -> 0 bytes
framework/Images/appbar.close.rest.png | Bin 359 -> 0 bytes
framework/Images/appbar.feature.video.rest.png | Bin 433 -> 0 bytes
framework/Images/appbar.next.rest.png | Bin 388 -> 0 bytes
framework/Images/appbar.save.rest.png | Bin 297 -> 0 bytes
framework/Images/appbar.stop.rest.png | Bin 350 -> 0 bytes
framework/Properties/AssemblyInfo.cs | 37 -
framework/WPCordovaClassLib.csproj | 297 -
framework/WPCordovaClassLib.sln | 20 -
framework/resources/notification-beep.wav | Bin 16630 -> 0 bytes
templates/standalone/App.xaml | 37 -
templates/standalone/App.xaml.cs | 154 -
templates/standalone/ApplicationIcon.png | Bin 4951 -> 0 bytes
templates/standalone/Background.png | Bin 10259 -> 0 bytes
templates/standalone/BuildManifestProcessor.js | 106 -
templates/standalone/CordovaAppProj.csproj | 238 -
templates/standalone/CordovaSolution.sln | 22 -
.../standalone/CordovaSourceDictionary.xml | 9 -
.../standalone/Images/appbar.back.rest.png | Bin 375 -> 0 bytes
.../standalone/Images/appbar.close.rest.png | Bin 359 -> 0 bytes
.../Images/appbar.feature.video.rest.png | Bin 433 -> 0 bytes
.../standalone/Images/appbar.next.rest.png | Bin 388 -> 0 bytes
.../standalone/Images/appbar.save.rest.png | Bin 297 -> 0 bytes
.../standalone/Images/appbar.stop.rest.png | Bin 350 -> 0 bytes
templates/standalone/MainPage.xaml | 35 -
templates/standalone/MainPage.xaml.cs | 72 -
templates/standalone/Plugins/Accelerometer.cs | 196 -
.../standalone/Plugins/AudioFormatsHelper.cs | 89 -
templates/standalone/Plugins/AudioPlayer.cs | 649 --
templates/standalone/Plugins/Battery.cs | 79 -
templates/standalone/Plugins/Camera.cs | 490 --
templates/standalone/Plugins/Capture.cs | 736 --
templates/standalone/Plugins/Compass.cs | 362 -
templates/standalone/Plugins/Contacts.cs | 669 --
templates/standalone/Plugins/DebugConsole.cs | 49 -
templates/standalone/Plugins/Device.cs | 135 -
templates/standalone/Plugins/File.cs | 1676 -----
templates/standalone/Plugins/FileTransfer.cs | 526 --
templates/standalone/Plugins/GeoLocation.cs | 34 -
templates/standalone/Plugins/Globalization.cs | 1178 ---
templates/standalone/Plugins/InAppBrowser.cs | 268 -
templates/standalone/Plugins/Media.cs | 532 --
templates/standalone/Plugins/MimeTypeMapper.cs | 99 -
templates/standalone/Plugins/NetworkStatus.cs | 129 -
templates/standalone/Plugins/Notification.cs | 367 -
.../standalone/Plugins/UI/AudioCaptureTask.cs | 107 -
.../standalone/Plugins/UI/AudioRecorder.xaml | 66 -
.../standalone/Plugins/UI/AudioRecorder.xaml.cs | 330 -
.../standalone/Plugins/UI/ImageCapture.xaml | 26 -
.../standalone/Plugins/UI/ImageCapture.xaml.cs | 109 -
.../standalone/Plugins/UI/NotificationBox.xaml | 62 -
.../Plugins/UI/NotificationBox.xaml.cs | 41 -
.../standalone/Plugins/UI/VideoCaptureTask.cs | 105 -
.../standalone/Plugins/UI/VideoRecorder.xaml | 52 -
.../standalone/Plugins/UI/VideoRecorder.xaml.cs | 405 --
templates/standalone/Properties/AppManifest.xml | 6 -
templates/standalone/Properties/AssemblyInfo.cs | 38 -
.../standalone/Properties/WMAppManifest.xml | 41 -
templates/standalone/README.md | 13 -
templates/standalone/SplashScreenImage.jpg | Bin 33248 -> 0 bytes
templates/standalone/VERSION | 1 -
templates/standalone/config.xml | 87 -
templates/standalone/cordova/build.bat | 9 -
templates/standalone/cordova/clean.bat | 9 -
.../cordova/lib/CordovaDeploy/CordovaDeploy.sln | 20 -
.../CordovaDeploy/CordovaDeploy.csproj | 79 -
.../lib/CordovaDeploy/CordovaDeploy/Program.cs | 235 -
.../CordovaDeploy/Properties/AssemblyInfo.cs | 36 -
templates/standalone/cordova/lib/build.js | 194 -
templates/standalone/cordova/lib/clean.js | 88 -
templates/standalone/cordova/lib/deploy.js | 337 -
.../standalone/cordova/lib/install-device.bat | 9 -
.../standalone/cordova/lib/install-emulator.bat | 9 -
.../standalone/cordova/lib/list-devices.bat | 9 -
.../cordova/lib/list-emulator-images.bat | 9 -
.../cordova/lib/list-started-emulators.bat | 3 -
templates/standalone/cordova/lib/log.js | 77 -
.../standalone/cordova/lib/start-emulator.bat | 3 -
templates/standalone/cordova/lib/target-list.js | 233 -
templates/standalone/cordova/log.bat | 3 -
templates/standalone/cordova/run.bat | 9 -
templates/standalone/cordova/version.bat | 9 -
templates/standalone/cordovalib/BaseCommand.cs | 187 -
.../standalone/cordovalib/BrowserMouseHelper.cs | 345 -
.../standalone/cordovalib/CommandFactory.cs | 112 -
.../standalone/cordovalib/ConfigHandler.cs | 268 -
.../standalone/cordovalib/CordovaCommandCall.cs | 98 -
.../standalone/cordovalib/CordovaView.xaml | 65 -
.../standalone/cordovalib/CordovaView.xaml.cs | 497 --
.../standalone/cordovalib/DOMStorageHelper.cs | 145 -
.../standalone/cordovalib/ImageExifHelper.cs | 209 -
.../standalone/cordovalib/JSON/JsonHelper.cs | 97 -
.../standalone/cordovalib/NativeExecution.cs | 246 -
.../standalone/cordovalib/OrientationHelper.cs | 128 -
templates/standalone/cordovalib/PluginResult.cs | 139 -
.../standalone/cordovalib/ScriptCallback.cs | 80 -
.../cordovalib/resources/notification-beep.wav | Bin 16630 -> 0 bytes
.../standalone/resources/notification-beep.wav | Bin 16630 -> 0 bytes
templates/standalone/www/cordova.js | 6791 ------------------
templates/standalone/www/css/index.css | 115 -
templates/standalone/www/img/logo.png | Bin 21814 -> 0 bytes
templates/standalone/www/index.html | 42 -
templates/standalone/www/js/index.js | 49 -
templates/vs/MyTemplateStandAlone.vstemplate | 143 -
templates/vs/description.txt | 4 -
templates/vs/pg_templateIcon.png | Bin 6546 -> 0 bytes
templates/vs/pg_templatePreview.jpg | Bin 25875 -> 0 bytes
tests/README.md | 7 -
tooling/scripts/buildjs.bat | 2 -
tooling/scripts/buildjs.js | 216 -
tooling/scripts/dist.bat | 2 -
tooling/scripts/dist.js | 224 -
tooling/scripts/new.bat | 2 -
tooling/scripts/new.js | 151 -
tooling/scripts/package.bat | 2 -
tooling/scripts/package.js | 257 -
tooling/scripts/reversion.bat | 2 -
tooling/scripts/reversion.js | 270 -
129 files changed, 1 insertion(+), 23907 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 6a504ba..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,12 +0,0 @@
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
deleted file mode 100644
index c38e7d7..0000000
--- a/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Apache Cordova
-Copyright 2012 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index f1da509..dc69fba 100644
--- a/README.md
+++ b/README.md
@@ -1,53 +1 @@
-###Project has been merged into the [cordova-wp8](https://github.com/apache/cordova-wp8) repository for now.
-
-
-Apache Cordova for Windows Phone 7
-===
-
-Apache Cordova WP7 is a .net application library that lets you create Apache Cordova applications targeting Windows Phone 7 devices.
-Apache Cordova based applications are, at the core, an application written with web technology: HTML, CSS and JavaScript.
-
-Requires
----
-
-- Windows Phone SDK 7.1 [http://create.msdn.com/en-us/home/getting_started]
-
-
-Getting Started
----
-
-- copy the file templates/CordovaStarter-x.x.x.zip to the folder : \My Documents\Visual Studio 2010\Templates\ProjectTemplates\
- - if you have just installed VisualStudio, you should launch it once to create this folder
- - if you prefer, you may add the project instead to the "Silverlight for Windows Phone" subfolder of "Visual C#". This is up to you, and only affects where the project template is shown when creating a new project. Also, You may need to create this folder.
-- Launch Visual Studio 2010 and select to create a new project
- - CordovaStarter should be listed as an option, give your new project a name
- - Note: The description will let you know the version of Cordova you are targeting, if you have multiple templates.
- - If you do not see it, you may have to select the top level 'Visual C#' to see it
-- Build and Run it!
-
-Important!!!
----
-
-When you add or remove files/folders in the www folder you will need to do the following :
-
-- ensure the new item is included in the project ( Content ) This includes ALL images/css/html/js/* and anything that you want available at runtime.
-- Do not modify the CordovaSourceDictionary.xml file which is included in the project, it is auto-generated for you when you build.
-
-Known Problem Areas
----
-
-Many of the Media APIs will not function as expected when debugging while connect to the device with the Zune software.
-To get around this, you need to use the Windows Phone Connect tool. For details, please check out this [MSDN blog article](http://blogs.msdn.com/b/jaimer/archive/2010/11/03/tips-for-debugging-wp7-media-apps-with-wpconnect.aspx).
-
-
-BUGS?
------
-File them at Apache Incubator
-https://issues.apache.org/jira/browse/CB
-
-
-Further Reading
----
-
-- [http://docs.cordova.io](http://docs.cordova.io)
-- [http://wiki.cordova.io](http://wiki.cordova.io)
+###Project has now been merged into the [cordova-wp8](https://github.com/apache/cordova-wp8) repository.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/VERSION
----------------------------------------------------------------------
diff --git a/VERSION b/VERSION
deleted file mode 100644
index c8e38b6..0000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-2.9.0
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/check_reqs
----------------------------------------------------------------------
diff --git a/bin/check_reqs b/bin/check_reqs
deleted file mode 100755
index d1b9bc0..0000000
--- a/bin/check_reqs
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /bin/sh
-
-#
-# 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 "ERROR: Cordova tooling for Windows Phone requires a Windows OS with the 'msbuild' command "
-echo " in the PATH environment variable as well as having .NET Framework 4.0 (from WP SDK's)"
-exit 1
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/check_reqs.bat
----------------------------------------------------------------------
diff --git a/bin/check_reqs.bat b/bin/check_reqs.bat
deleted file mode 100644
index 26e7393..0000000
--- a/bin/check_reqs.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-@ECHO OFF
-SET full_path=%~dp0
-IF EXIST %full_path%check_reqs.js (
- cscript "%full_path%check_reqs.js" %* //nologo
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'check_reqs.js' in 'bin' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/check_reqs.js
----------------------------------------------------------------------
diff --git a/bin/check_reqs.js b/bin/check_reqs.js
deleted file mode 100644
index 3dc1496..0000000
--- a/bin/check_reqs.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-
-var args = WScript.Arguments;
-var wscript_shell = WScript.CreateObject("WScript.Shell");
-
-var REQUIRE_GIT = false;
-
-function Usage() {
- Log("Usage: [ check_reqs | cscript check_reqs.js ]");
- Log("examples:");
- Log(" cscript C:\\Users\\anonymous\\cordova-wp7\\bin\\check_reqs.js");
- Log(" CordovaWindowsPhone\\bin\\check_reqs");
-
-}
-
-// log to stdout or stderr
-function Log(msg, error) {
- if (error) {
- WScript.StdErr.WriteLine(msg);
- }
- else {
- WScript.StdOut.WriteLine(msg);
- }
-}
-
-// gets the output from a command, failing with the given error message
-function check_command(cmd, fail_msg) {
- var out = wscript_shell.Exec(cmd);
- while (out.Status == 0) {
- WScript.Sleep(100);
- }
-
- //Check that command executed
- if (!out.StdErr.AtEndOfStream) {
- var line = out.StdErr.ReadLine();
- Log(fail_msg, true);
- Log('Output : ' + line, true);
- WScript.Quit(1);
- }
-
- if (!out.StdOut.AtEndOfStream) {
- var line = out.StdOut.ReadAll();
- return line;
- }
- else {
- Log('Unable to get output from command "' + cmd + '"', true);
- WScript.Quit(1);
- }
-}
-
-/* The tooling for cordova windows phone requires these commands
- * in the environment PATH variable.
- * - msbuild (C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319)
- * - git? (for dynamic cli loading of projects?)
- */
-function SystemRequiermentsMet() {
- var cmd = 'msbuild -version'
- var fail_msg = 'The command `msbuild` failed. Make sure you have the latest Windows Phone SDKs installed, and the `msbuild.exe` command (inside C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319) is added to your path.'
- var output = check_command(cmd, fail_msg);
- var msversion = output.match(/\.NET\sFramework\,\sversion\s4\.0/);
- if (!msversion) {
- Log('Please install the .NET Framwork v4.0.30319 (in the latest windows phone SDK\'s).', true);
- Log('Make sure the "msbuild" command in your path is pointing to v4.0.30319 of msbuild as well (inside C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).', true);
- WScript.Quit(1);
- }
-
- if(REQUIRE_GIT) {
- cmd = 'git --version';
- fail_msg = 'The command `git` failed. Make sure you have git installed as well ad in your PATH environment so the tool can use it';
- output = check_command(cmd, fail_msg);
- var gitVersion = output.match(/git\sversion\s1\./);
- if (!gitVersion) {
- Log('Please ensure you have at least git v1 installed and added to you PATH so this tool can use it to get the latest codova.');
- }
- }
-}
-
-
-if (args.Count() > 0) {
- // support help flags
- if (args(0) == "--help" || args(0) == "/?" ||
- args(0) == "help" || args(0) == "-help" || args(0) == "/help" || args(0) == "-h") {
- Usage();
- WScript.Quit(1);
- }
- else {
- Log('Error : Did not recognize argument ' + args(0), true)
- Usage();
- WScript.Quit(1);
- }
-}
-
-SystemRequiermentsMet();
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/create.bat
----------------------------------------------------------------------
diff --git a/bin/create.bat b/bin/create.bat
deleted file mode 100644
index 329048e..0000000
--- a/bin/create.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-@ECHO OFF
-SET full_path=%~dp0
-IF EXIST %full_path%create.js (
- cscript "%full_path%create.js" %* //nologo
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'create.js' in 'bin' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/create.js
----------------------------------------------------------------------
diff --git a/bin/create.js b/bin/create.js
deleted file mode 100644
index 93236f8..0000000
--- a/bin/create.js
+++ /dev/null
@@ -1,267 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-/*
- * create a cordova/wp7 project
- *
- * USAGE
- * ./create [path package activity]
-
- ./bin/create.bat C:\Users\Me\MyTestProj "test.proj" "TestProject"
- */
-
-
-var fso=WScript.CreateObject("Scripting.FileSystemObject");
-var wscript_shell = WScript.CreateObject("WScript.Shell");
-// working dir
-var ROOT = WScript.ScriptFullName.split('\\bin\\create.js').join('');
-
-var args = WScript.Arguments,
- FRAMEWORK_PATH = '\\framework',
- TOOLING_PATH = '\\tooling',
- TEMPLATES_PATH = '\\templates',
- // sub folder for standalone project
- STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
- // default template to use when creating the project
- CREATE_TEMPLATE = STANDALONE_PATH,
- USE_DLL = false,
- PROJECT_PATH,
- PACKAGE,
- NAME;
-
- // get version number
-var VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
-var BASE_VERSION = VERSION.split('rc', 1) + ".0";
-
-function Usage() {
- Log("Usage: create PathTONewProject [ PackageName AppName ]");
- Log(" PathTONewProject : The path to where you wish to create the project");
- Log(" PackageName : The namespace for the project (default is Cordova.Example)")
- Log(" AppName : The name of the application (default is CordovaAppProj)");
- Log("examples:");
- Log(" create C:\\Users\\anonymous\\Desktop\\MyProject");
- Log(" create C:\\Users\\anonymous\\Desktop\\MyProject io.Cordova.Example AnApp");
-}
-
-// logs messaged to stdout and stderr
-function Log(msg, error) {
- if (error) {
- WScript.StdErr.WriteLine(msg);
- }
- else {
- WScript.StdOut.WriteLine(msg);
- }
-}
-
-var ForReading = 1, ForWriting = 2, ForAppending = 8;
-var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
-
-function read(filename) {
- var f=fso.OpenTextFile(filename, 1,2);
- var s=f.ReadAll();
- f.Close();
- return s;
-}
-
-function write(filename, contents) {
- var f=fso.OpenTextFile(filename, ForWriting, TristateTrue);
- f.Write(contents);
- f.Close();
-}
-
-function replaceInFile(filename, regexp, replacement) {
- write(filename,read(filename).replace(regexp,replacement));
-}
-
-
-// executes a commmand in the shell
-function exec(command) {
- var oShell=wscript_shell.Exec(command);
- while (oShell.Status == 0) {
- WScript.sleep(100);
- }
-}
-
-// executes a commmand in the shell
-function exec_verbose(command) {
- //Log("Command: " + command);
- var oShell=wscript_shell.Exec(command);
- while (oShell.Status == 0) {
- //Wait a little bit so we're not super looping
- WScript.sleep(100);
- //Print any stdout output from the script
- if (!oShell.StdOut.AtEndOfStream) {
- var line = oShell.StdOut.ReadLine();
- Log(line);
- }
- }
- //Check to make sure our scripts did not encounter an error
- if (!oShell.StdErr.AtEndOfStream) {
- var line = oShell.StdErr.ReadAll();
- Log(line, true);
- WScript.Quit(1);
- }
-}
-
-//generate guid for the project
-function genGuid() {
- var TypeLib = WScript.CreateObject("Scriptlet.TypeLib");
- strGuid = TypeLib.Guid.split("}")[0]; // there is extra crap after the } that is causing file streams to break, probably an EOF ...
- strGuid = strGuid.replace(/[\{\}]/g,"");
- return strGuid;
-}
-
-// builds the new cordova dll from the framework
-function build_dll(path) {
- if (fso.FolderExists(path + FRAMEWORK_PATH + '\\Bin')) {
- fso.DeleteFolder(path + FRAMEWORK_PATH + '\\Bin');
- }
- if (fso.FolderExists(path + FRAMEWORK_PATH + '\\obj')) {
- fso.DeleteFolder(path + FRAMEWORK_PATH + '\\obj');
- }
- // move to framework directory
- wscript_shell.CurrentDirectory = path + FRAMEWORK_PATH;
- // build .dll in Release
- exec_verbose('msbuild /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Release;VersionNumber=' + VERSION + ';BaseVersionNumber=' + BASE_VERSION);
- //Check if file dll was created
- if (!fso.FileExists(path + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll')) {
- Log('ERROR: MSBuild failed to create .dll when building WPCordovaClassLib.dll', true);
- WScript.Quit(1);
- }
- Log("SUCCESS BUILDING DLL");
-}
-
-// creates new project in path, with the given package and app name
-function create(path, namespace, name) {
- Log("Creating Cordova-WP7 Project:");
- Log("\tApp Name : " + name);
- Log("\tNamespace : " + namespace);
- Log("\tPath : " + path);
-
- // Copy the template source files to the new destination
- fso.CopyFolder(ROOT + CREATE_TEMPLATE, path);
-
- var newProjGuid = genGuid();
- // replace the guid in the AppManifest
- replaceInFile(path + "\\Properties\\WMAppManifest.xml","$guid1$",newProjGuid);
- // replace safe-project-name in AppManifest
- replaceInFile(path + "\\Properties\\WMAppManifest.xml",/\$safeprojectname\$/g,name);
- replaceInFile(path + "\\Properties\\WMAppManifest.xml",/\$projectname\$/g,name);
-
-
- replaceInFile(path + "\\App.xaml",/\$safeprojectname\$/g,namespace);
- replaceInFile(path + "\\App.xaml.cs",/\$safeprojectname\$/g,namespace);
-
- replaceInFile(path + "\\MainPage.xaml",/\$safeprojectname\$/g,namespace);
- replaceInFile(path + "\\MainPage.xaml.cs",/\$safeprojectname\$/g,namespace);
- replaceInFile(path + "\\CordovaAppProj.csproj",/\$safeprojectname\$/g,namespace);
- if (name != "CordovaAppProj") {
- var valid_name = name.replace(/(\.\s|\s\.|\s+|\.+)/g, '_');
- replaceInFile(path + "\\CordovaSolution.sln", /CordovaAppProj/g, valid_name);
- // rename project and solution
- exec('%comspec% /c ren ' + path + "\\CordovaSolution.sln " + valid_name + '.sln');
- exec('%comspec% /c ren ' + path + "\\CordovaAppProj.csproj " + valid_name + '.csproj');
- }
-
- //copy .dll if necessary
- if (USE_DLL) {
- var dllPath = ROOT + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll';
- if (fso.FileExists(dllPath)) {
- Log("WPCordovaClassLib.dll Found, creating project");
- }
- else {
- Log("WPCordovaClassLib.dll was not Found in " + dllPath);
- Log('BUILDING: WPCordovaClassLib.dll');
- build_dll(ROOT);
- }
-
- if (!fso.FolderExists(path + '\\CordovaLib')) {
- fso.CreateFolder(path + '\\CordovaLib');
- }
- exec('%comspec% /c xcopy ' + ROOT + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll ' + path + '\\CordovaLib');
- if (!fso.FileExists(path + '\\CordovaLib\\WPCordovaClassLib.dll')) {
- Log('ERROR: Failed to copy WPCordovaClassLib.dll to project from', true);
- Log('\t' + ROOT + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll', true);
- Log('\tto', true);
- Log('\t' + path + '\\CordovaLib', true)
- WScript.Quit(1);
- }
- }
-
- //clean up any Bin/obj or other generated files
- exec('cscript ' + path + '\\cordova\\lib\\clean.js //nologo');
-
- // delete any .user and .sou files if any
- if (fso.FolderExists(path)) {
- var proj_folder = fso.GetFolder(path);
- var proj_files = new Enumerator(proj_folder.Files);
- for (;!proj_files.atEnd(); proj_files.moveNext()) {
- if (fso.GetExtensionName(proj_files.item()) == 'user') {
- fso.DeleteFile(proj_files.item());
- } else if (fso.GetExtensionName(proj_files.item()) == 'sou') {
- fso.DeleteFile(proj_files.item());
- }
- }
- }
-
- Log("CREATE SUCCESS : " + path);
-
- // TODO:
- // index.html title set to project name?
-}
-
-
-
-if (args.Count() > 0) {
- // support help flags
- if (args(0) == "--help" || args(0) == "/?" ||
- args(0) == "help" || args(0) == "-help" || args(0) == "/help" || args(0) == "-h") {
- Usage();
- WScript.Quit(1);
- }
-
- PROJECT_PATH = args(0);
- if (fso.FolderExists(PROJECT_PATH)) {
- Log("Project directory already exists:", true);
- Log("\t" + PROJECT_PATH, true);
- Log("CREATE FAILED.", true);
- WScript.Quit(1);
- }
-
- if (args.Count() > 1) {
- PACKAGE = args(1);
- }
- else {
- PACKAGE = "Cordova.Example";
- }
-
- if (args.Count() > 2) {
- NAME = args(2);
- }
- else {
- NAME = "CordovaAppProj";
- }
-
- create(PROJECT_PATH, PACKAGE, NAME);
-}
-else {
- Usage();
- WScript.Quit(1);
-}
-
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/update.bat
----------------------------------------------------------------------
diff --git a/bin/update.bat b/bin/update.bat
deleted file mode 100644
index 9da7e3c..0000000
--- a/bin/update.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-@ECHO OFF
-SET full_path=%~dp0
-IF EXIST %full_path%update.js (
- cscript "%full_path%update.js" %* //nologo
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'update.js' in 'bin' folder, aborting...>&2
- EXIT /B 1
-)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/bin/update.js
----------------------------------------------------------------------
diff --git a/bin/update.js b/bin/update.js
deleted file mode 100644
index 8ea38a8..0000000
--- a/bin/update.js
+++ /dev/null
@@ -1,353 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var fso = WScript.CreateObject("Scripting.FileSystemObject");
-var wscript_shell = WScript.CreateObject("WScript.Shell");
-var shell = WScript.CreateObject("shell.application");
-var args = WScript.Arguments;
-// working dir
-var ROOT = WScript.ScriptFullName.split('\\bin\\update.js').join('');
-//Get version number
-var VERSION = read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
-var plugins_folder = "\\Plugins";
-var template_folder = "\\templates\\standalone";
-// anything thats missing to the project
-var overwrite = false;
-var replace = false;
-
-// usage function
-function Usage() {
- Log("WARNING : Make sure to back up your project before updating!")
- Log("Usage: update Path-To-Project ");//[ -f | -r ] ");
- Log(" Path-To-Old-Project : The path the project you would like to update.");
- //Log(" -f : Will forcefully overwrite and add all core components of the application.");
- //Log(" -r : Will create an updated project, only keeping the www assets. *NOTE: no native code will be preserved*");
- Log("examples:");
- Log(" update C:\\Users\\anonymous\\Desktop\\MyProject");
-}
-
-// logs messaged to stdout and stderr
-function Log(msg, error) {
- if (error) {
- WScript.StdErr.WriteLine(msg);
- }
- else {
- WScript.StdOut.WriteLine(msg);
- }
-}
-
-// executes a commmand in the shell
-function exec(command) {
- //Log("Command : " + command);
- var oShell=wscript_shell.Exec(command);
- while (oShell.Status === 0) {
- WScript.sleep(100);
- }
-}
-
-// executes a commmand in the shell
-function exec_verbose(command) {
- Log("Command: " + command);
- var oShell=wscript_shell.Exec(command);
- while (oShell.Status == 0) {
- //Wait a little bit so we're not super looping
- WScript.sleep(100);
- //Print any stdout output from the script
- if (!oShell.StdOut.AtEndOfStream) {
- var line = oShell.StdOut.ReadAll();
- Log(line);
- }
- }
- //Check to make sure our scripts did not encounter an error
- if (!oShell.StdErr.AtEndOfStream) {
- var line = oShell.StdErr.ReadAll();
- Log(line, true);
- WScript.Quit(2);
- }
-}
-
-var ForReading = 1, ForWriting = 2, ForAppending = 8;
-var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
-
-// returns the contents of a file
-function read(filename) {
- if (fso.FileExists(filename)) {
- var f=fso.OpenTextFile(filename, 1, 2);
- var s=f.ReadAll();
- f.Close();
- return s;
- }
- else {
- Log('Cannot read non-existant file : ' + filename, true);
- WScript.Quit(2);
- }
- return null;
-}
-
-// writes the contents to the specified file
-function write(filename, contents) {
- var f=fso.OpenTextFile(filename, ForWriting, TristateTrue);
- f.Write(contents);
- f.Close();
-}
-
-// replaces the matches of regexp with replacement
-function replaceInFile(filename, regexp, replacement) {
- var text = read(filename).replace(regexp,replacement);
- write(filename,text);
-}
-
-// returns true if the given path is the root of a cordova windows phone project
-// currently returns true if the folder contains a .csproj file.
-function is_windows_phone_project(path) {
- if (fso.FolderExists(path)) {
- var proj_folder = fso.GetFolder(path);
- var proj_files = new Enumerator(proj_folder.Files);
- for (;!proj_files.atEnd(); proj_files.moveNext()) {
- if (fso.GetExtensionName(proj_files.item()) == 'csproj') {
- return true;
- }
- }
- }
- return false;
-}
-
-// returns the name of the application
-function get_app_name(path) {
- var WMAppManifest = read(path + '\\Properties\\WMAppManifest.xml').split('\n');
- for (line in WMAppManifest) {
- if (WMAppManifest[line].match(/Title\=\"/)) {
- return WMAppManifest[line].split('Title="')[1].split('"')[0];
- }
- }
- Log("Error : unable to find applicaiton name in the project.", true);
- Log(" Path : " + path, true);
- WScript.Quit(2);
-}
-
-// returns the name of the application package
-function get_package_name(path) {
- var WMAppManifest = read(path + '\\Properties\\WMAppManifest.xml').split('\n');
- for (line in WMAppManifest) {
- if (WMAppManifest[line].match(/Title\=\"/)) {
- return WMAppManifest[line].split('Title="')[1].split('"')[0];
- }
- }
- Log("Error : unable to find applicaiton name in the project.", true);
- Log(" Path : " + path, true);
- WScript.Quit(2);
-}
-
-// returns the GUID ame of the application
-function get_app_GUID(path) {
- var AppXAML = read(path + '\\App.xaml').split('\n');
- for (line in AppXAML) {
- if (AppXAML[line].match(/x\:Class\=\"/)) {
- return AppXAML[line].split('Class="')[1].split('"')[0];
- }
- }
- Log("Error : unable to find package name in the project.", true);
- Log(" Path : " + path, true);
- WScript.Quit(2);
-}
-
-// updates the cordova.js and all references in the given project with this repositories version
-function update_cordova_js(path) {
- // remove old cordova.js
- var www_contents = shell.NameSpace(path + '\\www').Items();
- for(i = 0; i < www_contents.Count; i++)
- {
- if(www_contents.Item(i).Name.match(/cordova\-(\d+)[.](\d+)[.](\d+)(rc\d)?[.]js/))
- {
- fso.DeleteFile(path + '\\www\\' + www_contents.Item(i).Name);
- }
- }
- // update version file
- copy_to(ROOT + "\\VERSION", path + "\\VERSION");
- // copy over new cordova.js
- copy_to(ROOT + template_folder + "\\www\\cordova.js", path + "\\www\\cordova.js");
-
- // update corodva references
- var cordova_regex = /cordova-(\d+)[.](\d+)[.](\d+)(rc\d)?/g; //Matches *first* cordova-x.x.x[rcx] (just ad g at end to make global)
- // update references in index.html
- replaceInFile(path + '\\www\\index.html', cordova_regex, "cordova");
- version_regex = /return\s*\"(\d+)[.](\d+)[.](\d+)(rc\d)?/; //Matches return "x.x.x[rcx]
- // update references in Device.cs
- replaceInFile(path + '\\Plugins\\Device.cs', version_regex, "return \"" + VERSION);
-}
-
-// Copies assets that need to be saved from source to desination.
-// TODO : Add all critical assets here
-function save_restore(source, destination) {
- fso.CreateFolder(destination + '\\www');
- copy_to(source + '\\www', destination + '\\www');
- copy_to(source + '\\SplashScreenImage.jpg', destination + '\\SplashScreenImage.jpg');
- copy_to(source + '\\Background.png', destination + '\\Background.png');
- copy_to(source + '\\ApplicationIcon.png', destination + '\\ApplicationIcon.png');
- copy_to(source + '\\config.xml', destination + '\\config.xml');
-}
-
-// deletes the path element if it exists
-function delete_if_exists(path) {
- if (fso.FolderExists(path)) {
- fso.DeleteFolder(path);
- }
- else if (fso.FileExists(path)) {
- fso.DeleteFile(path);
- }
-}
-
-// copies a folder or file from source to destination
-function copy_to(source, destination) {
- // check that source exists
- if (!fso.FolderExists(source)) {
- if (!fso.FileExists(source)) {
- Log("Error : Could not copy file/folder because it doesn't exist.", true);
- Log(" File/Folder : " + source, true);
- WScript.Quit(2);
- }
- }
- // if source is a folder, then copy all folder contents
- if (fso.FolderExists(source)) {
- fso.CopyFolder(source, destination, true);
- }
- // if it's a file, just copy it.
- else {
- exec('%comspec% /c copy /Y /V ' + source + ' ' + destination);
- }
-}
-
-// updates the cordova.js in project along with the cordova tooling.
-function update_project(path) {
- // update cordova folder
- delete_if_exists(path + '\\cordova');
- fso.CreateFolder(path + '\\cordova');
- copy_to(ROOT + template_folder + '\\cordova', path + '\\cordova');
- // clean project (all generated files)
- exec(path + '\\cordova\\clean.bat');
-
- // update core cordovalib
- delete_if_exists(path + '\\cordovalib');
- fso.CreateFolder(path + '\\cordovalib');
- copy_to(ROOT + template_folder + '\\cordovalib', path + '\\cordovalib');
-
- // update core plugins
- // TODO : Remove for 3.0.0
- delete_if_exists(path + '\\Plugins');
- fso.CreateFolder(path + '\\Plugins');
- copy_to(ROOT + template_folder + '\\Plugins', path + '\\Plugins');
-
- // update cordova.js
- update_cordova_js(path);
-}
-
-// Replaces the current project with a newly created project, keeping important assets to preserve the app.
-// TODO: Things that need to be kept other then www
-// - WMAppManifest (capabilities etc...)
-// - GUID (for marketplace apps etc...)
-// - Splashscreen and other images etc...
-// - Find more things that should be kept
-function replace_project(path) {
- //create new project and move www assets into it.
- Log("WARNING : Upgrading your app with the \'-r\' flag will delete all native and plugin");
- Log(" components of your application and replace them with the updated core components given");
- Log(" by this platforms \'bin\\create\' script. It is *HIGHLY RECOMMENDED* to back up your app");
- Log(" before continuing. The name and package name along with all of the www assets will be");
- Log(" preserved. Are you sure you wish to continue? (Y/N)");
- var response;
- while (response != 'Y') {
- response = WScript.StdIn.ReadLine();
- if (response == 'N') {
- WScript.Quit(2);
- } else if (response != "Y") {
- Log("Error : did not recognize '" + response + "'");
- Log("Are you sure you wish to continue? (Y/N)");
- }
- }
- // place all assets to be preserved in a temperary folder
- delete_if_exists(ROOT + '\\temp');
- fso.CreateFolder(ROOT + '\\temp');
- save_restore(path, ROOT + '\\temp');
-
- // get app name from WMAppManifest
- var app_name = get_app_name(path);
- // get package name from App.xaml
- var package_name = get_package_name(path);
- // get the GUID so that app stays the same
- var app_GUID = get_app_GUID(path);
- // delete previous project
- delete_if_exists(path);
- // create the new project from the current repository
- exec(ROOT + '\\bin\\create.bat ' + path + ' ' + app_name + ' ' + package_name);
- // remove default www assets
- delete_if_exists(path + '\\www');
- // move www assets back to project folder
- save_restore(ROOT + '\\temp', path);
- // cleanup temp folder
- delete_if_exists(ROOT + '\\temp');
-}
-
-
-
-if (args.Count() > 0) {
- if(args.Count() > 2) {
- Log("Error : too many arguments provided.", true);
- WScript.Quit(1);
- }
-
- if (args(0).indexOf("--help") > -1 ||
- args(0).indexOf("/?") > -1 ) {
- Usage();
- WScript.Quit(1);
- }
- else if (fso.FolderExists(args(0)) && is_windows_phone_project(args(0))) {
- if(args.Count() > 1) {
- /*if(args(1) == '-f' || args(1) == '--force') {
- //TODO: do something for this
- Log("ERROR : NOT IMPLEMENTED", true);
- WScript.Quit(2);
- }
- else if(args(1) == '-r' || args(1) == '--replace') {
- replace_project(args(0));
- }
- else {
- Log('Error : \'' + args(1) + '\' is not regognized as an update option', true);
- }*/
- Usage();
- Log('Error : too many arguments', true);
- } else if (args.Count() == 1) {
- update_project(args(0));
- }
- }
- else if (fso.FolderExists(args(0))) {
- Log("The path provided is not a path to a cordova windows phone project.", true);
- Log(" Please provide the path to the root folder of your cordova windows phone project.", true);
- WScript.Quit(2);
- }
- else {
- Log("The given path to the project does not exist.", true);
- Log(" Please provide a path to the project you would like to update.", true);
- Usage();
- WScript.Quit(2);
- }
-}
-else {
- Usage();
- WScript.Quit(1);
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Images/appbar.back.rest.png
----------------------------------------------------------------------
diff --git a/framework/Images/appbar.back.rest.png b/framework/Images/appbar.back.rest.png
deleted file mode 100644
index 4bc2b92..0000000
Binary files a/framework/Images/appbar.back.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Images/appbar.close.rest.png
----------------------------------------------------------------------
diff --git a/framework/Images/appbar.close.rest.png b/framework/Images/appbar.close.rest.png
deleted file mode 100644
index 8166a1c..0000000
Binary files a/framework/Images/appbar.close.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Images/appbar.feature.video.rest.png
----------------------------------------------------------------------
diff --git a/framework/Images/appbar.feature.video.rest.png b/framework/Images/appbar.feature.video.rest.png
deleted file mode 100644
index baff565..0000000
Binary files a/framework/Images/appbar.feature.video.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Images/appbar.next.rest.png
----------------------------------------------------------------------
diff --git a/framework/Images/appbar.next.rest.png b/framework/Images/appbar.next.rest.png
deleted file mode 100644
index ed577d7..0000000
Binary files a/framework/Images/appbar.next.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Images/appbar.save.rest.png
----------------------------------------------------------------------
diff --git a/framework/Images/appbar.save.rest.png b/framework/Images/appbar.save.rest.png
deleted file mode 100644
index d49940e..0000000
Binary files a/framework/Images/appbar.save.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Images/appbar.stop.rest.png
----------------------------------------------------------------------
diff --git a/framework/Images/appbar.stop.rest.png b/framework/Images/appbar.stop.rest.png
deleted file mode 100644
index 4dd724f..0000000
Binary files a/framework/Images/appbar.stop.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/framework/Properties/AssemblyInfo.cs b/framework/Properties/AssemblyInfo.cs
deleted file mode 100644
index 84143db..0000000
--- a/framework/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("WPCordovaClassLib")]
-[assembly: AssemblyDescription("2.9.0")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Apache Cordova")]
-[assembly: AssemblyProduct("WPCordovaClassLib")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("633ee7ad-9a75-4b68-96e9-281528c50275")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-
-[assembly: AssemblyVersion("2.9.0.0")]
-[assembly: AssemblyFileVersion("2.6.0rc1")]
-
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/WPCordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/framework/WPCordovaClassLib.csproj b/framework/WPCordovaClassLib.csproj
deleted file mode 100644
index b8f76ae..0000000
--- a/framework/WPCordovaClassLib.csproj
+++ /dev/null
@@ -1,297 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>10.0.20506</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{FC6A1A70-892D-46AD-9E4A-9793F72AF780}</ProjectGuid>
- <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>WPCordovaClassLib</RootNamespace>
- <AssemblyName>WPCordovaClassLib</AssemblyName>
- <AssemblyVersion>$(BaseVersionNumber)</AssemblyVersion>
- <AssemblyFileVersion>$(VersionNumber)</AssemblyFileVersion>
- <AssemblyDescription>$(VersionNumber)</AssemblyDescription>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
- <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
- <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
- <SilverlightApplication>false</SilverlightApplication>
- <ValidateXaml>true</ValidateXaml>
- <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>Bin\Debug</OutputPath>
- <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;CORDOVA_CLASSLIB</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>Bin\Release</OutputPath>
- <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;CORDOVA_CLASSLIB</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <DocumentationFile>
- </DocumentationFile>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.Devices.Sensors" />
- <Reference Include="Microsoft.Phone" />
- <Reference Include="Microsoft.Phone.Interop" />
- <Reference Include="Microsoft.Xna.Framework" />
- <Reference Include="System.Device" />
- <Reference Include="System.Runtime.Serialization" />
- <Reference Include="System.Servicemodel" />
- <Reference Include="System.Servicemodel.Web" />
- <Reference Include="System.Windows" />
- <Reference Include="system" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Net" />
- <Reference Include="System.Xml.Linq" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\templates\standalone\cordovalib\BaseCommand.cs">
- <Link>CordovaLib\BaseCommand.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\BrowserMouseHelper.cs">
- <Link>CordovaLib\BrowserMouseHelper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\CommandFactory.cs">
- <Link>CordovaLib\CommandFactory.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\ConfigHandler.cs">
- <Link>CordovaLib\ConfigHandler.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\CordovaCommandCall.cs">
- <Link>CordovaLib\CordovaCommandCall.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\CordovaView.xaml.cs">
- <Link>CordovaLib\CordovaView.xaml.cs</Link>
- <DependentUpon>CordovaView.xaml</DependentUpon>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\DOMStorageHelper.cs">
- <Link>CordovaLib\DOMStorageHelper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\ImageExifHelper.cs">
- <Link>CordovaLib\ImageExifHelper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\JSON\JsonHelper.cs">
- <Link>CordovaLib\JSON\JsonHelper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\NativeExecution.cs">
- <Link>CordovaLib\NativeExecution.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\OrientationHelper.cs">
- <Link>CordovaLib\OrientationHelper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\PluginResult.cs">
- <Link>CordovaLib\PluginResult.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\cordovalib\ScriptCallback.cs">
- <Link>CordovaLib\ScriptCallback.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Accelerometer.cs">
- <Link>CordovaLib\Plugins\Accelerometer.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\AudioFormatsHelper.cs">
- <Link>CordovaLib\Plugins\AudioFormatsHelper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\AudioPlayer.cs">
- <Link>CordovaLib\Plugins\AudioPlayer.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Battery.cs">
- <Link>CordovaLib\Plugins\Battery.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Camera.cs">
- <Link>CordovaLib\Plugins\Camera.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Capture.cs">
- <Link>CordovaLib\Plugins\Capture.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Compass.cs">
- <Link>CordovaLib\Plugins\Compass.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Contacts.cs">
- <Link>CordovaLib\Plugins\Contacts.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\DebugConsole.cs">
- <Link>CordovaLib\Plugins\DebugConsole.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Device.cs">
- <Link>CordovaLib\Plugins\Device.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\File.cs">
- <Link>CordovaLib\Plugins\File.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\FileTransfer.cs">
- <Link>CordovaLib\Plugins\FileTransfer.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\GeoLocation.cs">
- <Link>CordovaLib\Plugins\GeoLocation.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Globalization.cs">
- <Link>CordovaLib\Plugins\Globalization.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\InAppBrowser.cs">
- <Link>CordovaLib\Plugins\InAppBrowser.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Media.cs">
- <Link>CordovaLib\Plugins\Media.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\MimeTypeMapper.cs">
- <Link>CordovaLib\Plugins\MimeTypeMapper.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\NetworkStatus.cs">
- <Link>CordovaLib\Plugins\NetworkStatus.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\Notification.cs">
- <Link>CordovaLib\Plugins\Notification.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\UI\AudioCaptureTask.cs">
- <Link>CordovaLib\Plugins\UI\AudioCaptureTask.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\UI\AudioRecorder.xaml.cs">
- <Link>CordovaLib\Plugins\UI\AudioRecorder.xaml.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\UI\ImageCapture.xaml.cs">
- <Link>CordovaLib\Plugins\UI\ImageCapture.xaml.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\UI\NotificationBox.xaml.cs">
- <Link>CordovaLib\Plugins\UI\NotificationBox.xaml.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\UI\VideoCaptureTask.cs">
- <Link>CordovaLib\Plugins\UI\VideoCaptureTask.cs</Link>
- </Compile>
- <Compile Include="..\templates\standalone\Plugins\UI\VideoRecorder.xaml.cs">
- <Link>CordovaLib\Plugins\UI\VideoRecorder.xaml.cs</Link>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="..\templates\standalone\cordovalib\resources\notification-beep.wav">
- <Link>CordovaLib\resources\notification-beep.wav</Link>
- </Content>
- <Content Include="..\templates\standalone\Images\appbar.back.rest.png">
- <Link>CordovaLib\Images\appbar.back.rest.png</Link>
- </Content>
- <Content Include="..\templates\standalone\Images\appbar.close.rest.png">
- <Link>CordovaLib\Images\appbar.close.rest.png</Link>
- </Content>
- <Content Include="..\templates\standalone\Images\appbar.feature.video.rest.png">
- <Link>CordovaLib\Images\appbar.feature.video.rest.png</Link>
- </Content>
- <Content Include="..\templates\standalone\Images\appbar.next.rest.png">
- <Link>CordovaLib\Images\appbar.next.rest.png</Link>
- </Content>
- <Content Include="..\templates\standalone\Images\appbar.save.rest.png">
- <Link>CordovaLib\Images\appbar.save.rest.png</Link>
- </Content>
- <Content Include="..\templates\standalone\Images\appbar.stop.rest.png">
- <Link>CordovaLib\Images\appbar.stop.rest.png</Link>
- </Content>
- <Content Include="Images\appbar.back.rest.png">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- <Content Include="Images\appbar.close.rest.png">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- <Content Include="Images\appbar.feature.video.rest.png">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="Images\appbar.next.rest.png">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- <Content Include="Images\appbar.stop.rest.png">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="Images\appbar.save.rest.png">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="resources\notification-beep.wav" />
- </ItemGroup>
- <ItemGroup>
- <Page Include="..\templates\standalone\cordovalib\CordovaView.xaml">
- <Link>CordovaLib\CordovaView.xaml</Link>
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="..\templates\standalone\Plugins\UI\AudioRecorder.xaml">
- <Link>CordovaLib\Plugins\UI\AudioRecorder.xaml</Link>
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="..\templates\standalone\Plugins\UI\ImageCapture.xaml">
- <Link>CordovaLib\Plugins\UI\ImageCapture.xaml</Link>
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="..\templates\standalone\Plugins\UI\NotificationBox.xaml">
- <Link>CordovaLib\Plugins\UI\NotificationBox.xaml</Link>
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="..\templates\standalone\Plugins\UI\VideoRecorder.xaml">
- <Link>CordovaLib\Plugins\UI\VideoRecorder.xaml</Link>
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
- <ProjectExtensions />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- </PropertyGroup>
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- <AssemblyInfo
- AssemblyVersion="$(BaseVersion)"
- AssemblyFileVersion="$(BaseVersion)"
- AssemblyDescription="$(VersionNumber)"
- >
- </AssemblyInfo>
- </Target>
- <Target Name="AfterBuild">
- </Target>-->
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/WPCordovaClassLib.sln
----------------------------------------------------------------------
diff --git a/framework/WPCordovaClassLib.sln b/framework/WPCordovaClassLib.sln
deleted file mode 100644
index 2d5e088..0000000
--- a/framework/WPCordovaClassLib.sln
+++ /dev/null
@@ -1,20 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPCordovaClassLib", "WPCordovaClassLib.csproj", "{FC6A1A70-892D-46AD-9E4A-9793F72AF780}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FC6A1A70-892D-46AD-9E4A-9793F72AF780}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/framework/resources/notification-beep.wav
----------------------------------------------------------------------
diff --git a/framework/resources/notification-beep.wav b/framework/resources/notification-beep.wav
deleted file mode 100644
index d0ad085..0000000
Binary files a/framework/resources/notification-beep.wav and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/App.xaml
----------------------------------------------------------------------
diff --git a/templates/standalone/App.xaml b/templates/standalone/App.xaml
deleted file mode 100644
index 18072fe..0000000
--- a/templates/standalone/App.xaml
+++ /dev/null
@@ -1,37 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Application
- x:Class="$safeprojectname$.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">
-
- <!--Application Resources-->
- <Application.Resources>
- </Application.Resources>
-
- <Application.ApplicationLifetimeObjects>
- <!--Required object that handles lifetime events for the application-->
- <shell:PhoneApplicationService
- Launching="Application_Launching" Closing="Application_Closing"
- Activated="Application_Activated" Deactivated="Application_Deactivated"/>
- </Application.ApplicationLifetimeObjects>
-
-</Application>
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/App.xaml.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/App.xaml.cs b/templates/standalone/App.xaml.cs
deleted file mode 100644
index 2b7306d..0000000
--- a/templates/standalone/App.xaml.cs
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Microsoft.Phone.Controls;
-using Microsoft.Phone.Shell;
-
-namespace $safeprojectname$
-{
- public partial class App : Application
- {
- /// <summary>
- /// Provides easy access to the root frame of the Phone Application.
- /// </summary>
- /// <returns>The root frame of the Phone Application.</returns>
- public PhoneApplicationFrame RootFrame { get; private set; }
-
- /// <summary>
- /// Constructor for the Application object.
- /// </summary>
- public App()
- {
- // Global handler for uncaught exceptions.
- UnhandledException += Application_UnhandledException;
-
- // Show graphics profiling information while debugging.
- if (System.Diagnostics.Debugger.IsAttached)
- {
- // Display the current frame rate counters.
- //Application.Current.Host.Settings.EnableFrameRateCounter = true;
-
- // Show the areas of the app that are being redrawn in each frame.
- //Application.Current.Host.Settings.EnableRedrawRegions = true;
-
- // Enable non-production analysis visualization mode,
- // which shows areas of a page that are being GPU accelerated with a colored overlay.
- //Application.Current.Host.Settings.EnableCacheVisualization = true;
- }
-
- // Standard Silverlight initialization
- InitializeComponent();
-
- // Phone-specific initialization
- InitializePhoneApplication();
- }
-
- // Code to execute when the application is launching (eg, from Start)
- // This code will not execute when the application is reactivated
- private void Application_Launching(object sender, LaunchingEventArgs e)
- {
- }
-
- // Code to execute when the application is activated (brought to foreground)
- // This code will not execute when the application is first launched
- private void Application_Activated(object sender, ActivatedEventArgs e)
- {
- }
-
- // Code to execute when the application is deactivated (sent to background)
- // This code will not execute when the application is closing
- private void Application_Deactivated(object sender, DeactivatedEventArgs e)
- {
- }
-
- // Code to execute when the application is closing (eg, user hit Back)
- // This code will not execute when the application is deactivated
- private void Application_Closing(object sender, ClosingEventArgs e)
- {
- }
-
- // Code to execute if a navigation fails
- private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
- {
- if (System.Diagnostics.Debugger.IsAttached)
- {
- // A navigation has failed; break into the debugger
- System.Diagnostics.Debugger.Break();
- }
- }
-
- // Code to execute on Unhandled Exceptions
- private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
- {
- if (System.Diagnostics.Debugger.IsAttached)
- {
- // An unhandled exception has occurred; break into the debugger
- System.Diagnostics.Debugger.Break();
- }
- }
-
- #region Phone application initialization
-
- // Avoid double-initialization
- private bool phoneApplicationInitialized = false;
-
- // Do not add any additional code to this method
- private void InitializePhoneApplication()
- {
- if (phoneApplicationInitialized)
- return;
-
- // Create the frame but don't set it as RootVisual yet; this allows the splash
- // screen to remain active until the application is ready to render.
- RootFrame = new PhoneApplicationFrame();
- RootFrame.Navigated += CompleteInitializePhoneApplication;
-
- // Handle navigation failures
- RootFrame.NavigationFailed += RootFrame_NavigationFailed;
-
- // Ensure we don't initialize again
- phoneApplicationInitialized = true;
- }
-
- // Do not add any additional code to this method
- private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
- {
- // Set the root visual to allow the application to render
- if (RootVisual != RootFrame)
- RootVisual = RootFrame;
-
- // Remove this handler since it is no longer needed
- RootFrame.Navigated -= CompleteInitializePhoneApplication;
- }
-
- #endregion
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/ApplicationIcon.png
----------------------------------------------------------------------
diff --git a/templates/standalone/ApplicationIcon.png b/templates/standalone/ApplicationIcon.png
deleted file mode 100644
index 6b69046..0000000
Binary files a/templates/standalone/ApplicationIcon.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/Background.png
----------------------------------------------------------------------
diff --git a/templates/standalone/Background.png b/templates/standalone/Background.png
deleted file mode 100644
index 2667df4..0000000
Binary files a/templates/standalone/Background.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/BuildManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/standalone/BuildManifestProcessor.js b/templates/standalone/BuildManifestProcessor.js
deleted file mode 100644
index ab2ac9d..0000000
--- a/templates/standalone/BuildManifestProcessor.js
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-var objArgs = WScript.Arguments;
-for (i = 0; i < objArgs.length; i++) {
- WScript.Echo("Arg :: " + objArgs(i));
-}
-
-var projectFilePath = null;
-if (objArgs && objArgs.length > 0) {
- projectFilePath = objArgs(0);
-}
-
-
-var fso = WScript.CreateObject("Scripting.FileSystemObject");
-var outFile = fso.CreateTextFile("..\\..\\CordovaSourceDictionary.xml", true);
-
-outFile.WriteLine('<?xml version="1.0" encoding="utf-8"?>');
-outFile.WriteLine('<!-- This file is auto-generated, do not edit! -jm -->');
-outFile.WriteLine('<CordovaSourceDictionary>');
-
-
-function getDirectoryListing(path) {
- var retList = [];
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var folder = fso.GetFolder(path);
- // iterate over the files in the folder
- for (var files = new Enumerator(folder.files) ; !files.atEnd() ; files.moveNext()) {
- retList.push(path + files.item().name);
- }
- // iterate over the child folders in the folder
- for (var subFlds = new Enumerator(folder.SubFolders) ; !subFlds.atEnd() ; subFlds.moveNext()) {
- var subDirList = getDirectoryListing(path + subFlds.item().name + "\\");
- retList = retList.concat(subDirList);
- }
- return retList;
-}
-
-
-// We need to get any Linked files from the project
-
-WScript.Echo("Adding Source Files ...");
-if (projectFilePath != null) {
- var projXml = WScript.CreateObject("Microsoft.XMLDOM");
-
- projXml.async = false;
- if (projXml.load(projectFilePath)) {
-
- // add linked content ( windows shortcuts )
- var nodes = projXml.selectNodes("/Project/ItemGroup/Content/Link");
- WScript.Echo("/Project/ItemGroup/Content/Link nodes.length" + nodes.length);
- for (var n = 0; n < nodes.length; n++) {
- outFile.WriteLine(' <FilePath Value="' + nodes[n].text + '"/>');
- }
-
- // add files of type Resource
- nodes = projXml.selectNodes("/Project/ItemGroup/Resource/Link");
- WScript.Echo("/Project/ItemGroup/Resource/Link nodes.length" + nodes.length);
- for (n = 0; n < nodes.length; n++) {
- outFile.WriteLine(' <FilePath Value="' + nodes[n].text + '"/>');
- }
-
- // add Content files from www folder
- nodes = projXml.selectNodes("/Project/ItemGroup/Content[@Include]");
- WScript.Echo("/Project/ItemGroup/Content nodes.length" + nodes.length);
- for (n = 0; n < nodes.length; n++) {
- for (var i = 0; i < nodes[n].attributes.length; i++) {
-
- if (nodes[n].attributes[i].name == "Include") {
- var val = nodes[n].attributes[i].value;
- if (val.indexOf("www\\**") == 0 ){
- WScript.echo("adding wildcard files");
- var fileList = getDirectoryListing("..\\..\\www\\");
- for (var index = 0 ; index < fileList.length; index++)
- {
- outFile.WriteLine(' <FilePath Value="' + fileList[index].replace(/..\\..\\www/g,"www") + '"/>');
- }
- }
- else if (val.indexOf("www") == 0) {
- WScript.Echo("adding value :: " + val);
- outFile.WriteLine(' <FilePath Value="' + val + '"/>');
- }
- }
- }
-
- }
- }
-}
-
-outFile.WriteLine('</CordovaSourceDictionary>');
-
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/CordovaAppProj.csproj
----------------------------------------------------------------------
diff --git a/templates/standalone/CordovaAppProj.csproj b/templates/standalone/CordovaAppProj.csproj
deleted file mode 100644
index 8434a77..0000000
--- a/templates/standalone/CordovaAppProj.csproj
+++ /dev/null
@@ -1,238 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>10.0.20506</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}</ProjectGuid>
- <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>$safeprojectname$</RootNamespace>
- <AssemblyName>$safeprojectname$</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
- <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
- <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
- <SilverlightApplication>true</SilverlightApplication>
- <SupportedCultures>
- </SupportedCultures>
- <XapOutputs>true</XapOutputs>
- <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
- <XapFilename>$safeprojectname$.xap</XapFilename>
- <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
- <SilverlightAppEntry>$safeprojectname$.App</SilverlightAppEntry>
- <ValidateXaml>true</ValidateXaml>
- <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>Bin\Debug</OutputPath>
- <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>Bin\Release</OutputPath>
- <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
- <NoStdLib>true</NoStdLib>
- <NoConfig>true</NoConfig>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.Devices.Sensors" />
- <Reference Include="Microsoft.Phone" />
- <Reference Include="Microsoft.Phone.Interop" />
- <Reference Include="Microsoft.Xna.Framework" />
- <Reference Include="System.Device" />
- <Reference Include="System.Runtime.Serialization" />
- <Reference Include="System.Servicemodel.Web" />
- <Reference Include="System.Windows" />
- <Reference Include="system" />
- <Reference Include="System.Core" />
- <Reference Include="System.Net" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Xml.Linq" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="App.xaml.cs">
- <DependentUpon>App.xaml</DependentUpon>
- </Compile>
- <Compile Include="cordovalib\BaseCommand.cs" />
- <Compile Include="cordovalib\BrowserMouseHelper.cs" />
- <Compile Include="cordovalib\CommandFactory.cs" />
- <Compile Include="cordovalib\ConfigHandler.cs" />
- <Compile Include="cordovalib\CordovaCommandCall.cs" />
- <Compile Include="cordovalib\CordovaView.xaml.cs">
- <DependentUpon>CordovaView.xaml</DependentUpon>
- </Compile>
- <Compile Include="cordovalib\DOMStorageHelper.cs" />
- <Compile Include="cordovalib\ImageExifHelper.cs" />
- <Compile Include="cordovalib\JSON\JsonHelper.cs" />
- <Compile Include="cordovalib\NativeExecution.cs" />
- <Compile Include="cordovalib\OrientationHelper.cs" />
- <Compile Include="cordovalib\PluginResult.cs" />
- <Compile Include="cordovalib\ScriptCallback.cs" />
- <Compile Include="MainPage.xaml.cs">
- <DependentUpon>MainPage.xaml</DependentUpon>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <ApplicationDefinition Include="App.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </ApplicationDefinition>
- <Page Include="MainPage.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="cordovalib\CordovaView.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- </ItemGroup>
- <ItemGroup>
- <None Include="cordova\lib\build.js" />
- <None Include="cordova\lib\clean.js" />
- <None Include="cordova\lib\deploy.js" />
- <None Include="cordova\lib\log.js" />
- <None Include="cordova\lib\target-list.js" />
- <Content Include="www\**" />
- <Content Include="config.xml" />
- <Content Include="Images\**" />
- <Content Include="resources\notification-beep.wav" />
- <None Include="cordova\build.bat" />
- <None Include="cordova\clean.bat" />
- <None Include="cordova\lib\install-device.bat" />
- <None Include="cordova\lib\install-emulator.bat" />
- <None Include="cordova\lib\list-devices.bat" />
- <None Include="cordova\lib\list-emulator-images.bat" />
- <None Include="cordova\lib\list-started-emulators.bat" />
- <None Include="cordova\lib\start-emulator.bat" />
- <None Include="cordova\log.bat" />
- <None Include="cordova\run.bat" />
- <None Include="cordova\version.bat" />
- <None Include="VERSION" />
- <Content Include="CordovaSourceDictionary.xml">
- <SubType>Designer</SubType>
- </Content>
- <None Include="BuildManifestProcessor.js" />
- <None Include="Properties\AppManifest.xml">
- <SubType>Designer</SubType>
- </None>
- <None Include="Properties\WMAppManifest.xml">
- <SubType>Designer</SubType>
- </None>
- </ItemGroup>
- <ItemGroup>
- <Content Include="ApplicationIcon.png">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- <Content Include="Background.png">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- <Content Include="SplashScreenImage.jpg" />
- </ItemGroup>
- <ItemGroup>
- <WCFMetadata Include="Service References\" />
- </ItemGroup>
- <ItemGroup>
- <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Plugins\Accelerometer.cs" />
- <Compile Include="Plugins\AudioFormatsHelper.cs" />
- <Compile Include="Plugins\AudioPlayer.cs" />
- <Compile Include="Plugins\Battery.cs" />
- <Compile Include="Plugins\Camera.cs" />
- <Compile Include="Plugins\Compass.cs" />
- <Compile Include="Plugins\Contacts.cs" />
- <Compile Include="Plugins\DebugConsole.cs" />
- <Compile Include="Plugins\Device.cs" />
- <Compile Include="Plugins\File.cs" />
- <Compile Include="Plugins\FileTransfer.cs" />
- <Compile Include="Plugins\GeoLocation.cs" />
- <Compile Include="Plugins\Globalization.cs" />
- <Compile Include="Plugins\InAppBrowser.cs" />
- <Compile Include="Plugins\Media.cs" />
- <Compile Include="Plugins\MimeTypeMapper.cs" />
- <Compile Include="Plugins\NetworkStatus.cs" />
- <Compile Include="Plugins\Notification.cs" />
- <Compile Include="Plugins\UI\AudioCaptureTask.cs" />
- <Compile Include="Plugins\UI\AudioRecorder.xaml.cs">
- <DependentUpon>AudioRecorder.xaml</DependentUpon>
- </Compile>
- <Compile Include="Plugins\UI\ImageCapture.xaml.cs">
- <DependentUpon>ImageCapture.xaml</DependentUpon>
- </Compile>
- <Compile Include="Plugins\UI\NotificationBox.xaml.cs">
- <DependentUpon>NotificationBox.xaml</DependentUpon>
- </Compile>
- <Compile Include="Plugins\UI\VideoCaptureTask.cs" />
- <Compile Include="Plugins\UI\VideoRecorder.xaml.cs">
- <DependentUpon>VideoRecorder.xaml</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Page Include="Plugins\UI\AudioRecorder.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="Plugins\UI\ImageCapture.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="Plugins\UI\NotificationBox.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Page Include="Plugins\UI\VideoRecorder.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- </ItemGroup>
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
- <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
- <ProjectExtensions />
- <PropertyGroup>
- <PreBuildEvent>CScript "$(ProjectDir)/BuildManifestProcessor.js" "$(ProjectPath)"</PreBuildEvent>
- </PropertyGroup>
- <PropertyGroup>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/5c361be6/templates/standalone/CordovaSolution.sln
----------------------------------------------------------------------
diff --git a/templates/standalone/CordovaSolution.sln b/templates/standalone/CordovaSolution.sln
deleted file mode 100644
index 5ce2292..0000000
--- a/templates/standalone/CordovaSolution.sln
+++ /dev/null
@@ -1,22 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010 Express for Windows Phone
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CordovaAppProj", "CordovaAppProj.csproj", "{3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|Any CPU.Build.0 = Release|Any CPU
- {3677C1B7-D68B-4CF9-BF8A-E869D437A6DF}.Release|Any CPU.Deploy.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal