You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/07/10 20:10:03 UTC
[1/7] git commit: Added console polyfill from native IBrowserDecorator
Updated Branches:
refs/heads/master 8f98831c9 -> 29432294d
Added console polyfill from native IBrowserDecorator
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/0985efa9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/0985efa9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/0985efa9
Branch: refs/heads/master
Commit: 0985efa9b5d2b07586435470fe4225036a4f1333
Parents: 8f98831
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 00:18:42 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:26 2013 -0700
----------------------------------------------------------------------
wp7/framework/WPCordovaClassLib.csproj | 3 ++
wp7/template/cordovalib/ConsoleHelper.cs | 37 ++++++++++++++++++++++++
wp7/template/cordovalib/CordovaView.xaml.cs | 12 ++++----
3 files changed, 46 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/0985efa9/wp7/framework/WPCordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/wp7/framework/WPCordovaClassLib.csproj b/wp7/framework/WPCordovaClassLib.csproj
index 4c6ba8c..cd1e004 100644
--- a/wp7/framework/WPCordovaClassLib.csproj
+++ b/wp7/framework/WPCordovaClassLib.csproj
@@ -167,6 +167,9 @@
<Compile Include="..\template\cordovalib\ConfigHandler.cs">
<Link>CordovaLib\ConfigHandler.cs</Link>
</Compile>
+ <Compile Include="..\template\cordovalib\ConsoleHelper.cs">
+ <Link>CordovaLib\ConsoleHelper.cs</Link>
+ </Compile>
<Compile Include="..\template\cordovalib\CordovaCommandCall.cs">
<Link>CordovaLib\CordovaCommandCall.cs</Link>
</Compile>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/0985efa9/wp7/template/cordovalib/ConsoleHelper.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/ConsoleHelper.cs b/wp7/template/cordovalib/ConsoleHelper.cs
new file mode 100644
index 0000000..c7bc8df
--- /dev/null
+++ b/wp7/template/cordovalib/ConsoleHelper.cs
@@ -0,0 +1,37 @@
+using Microsoft.Phone.Controls;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+
+namespace WPCordovaClassLib.CordovaLib
+{
+ class ConsoleHelper : IBrowserDecorator
+ {
+
+ public WebBrowser Browser { get; set; }
+
+ public void InjectScript()
+ {
+ string script = @"(function(win) {
+ function exec(msg) { window.external.Notify('ConsoleLog/' + msg); }
+ var cons = win.console = win.console || {};
+ cons.log = exec;
+ cons.debug = cons.debug || cons.log;
+ cons.info = cons.info || function(msg) { exec('INFO:' + msg ); };
+ cons.warn = cons.warn || function(msg) { exec('WARN:' + msg ); };
+ cons.error = cons.error || function(msg) { exec('ERROR:' + msg ); };
+ })(window);";
+
+ Browser.InvokeScript("execScript", new string[] { script });
+ }
+
+ public bool HandleCommand(string commandStr)
+ {
+ Debug.WriteLine(commandStr.Substring("ConsoleLog/".Length));
+ return true;
+ }
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/0985efa9/wp7/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/CordovaView.xaml.cs b/wp7/template/cordovalib/CordovaView.xaml.cs
index 61f673b..3830634 100644
--- a/wp7/template/cordovalib/CordovaView.xaml.cs
+++ b/wp7/template/cordovalib/CordovaView.xaml.cs
@@ -192,6 +192,10 @@ namespace WPCordovaClassLib
storageHelper.Browser = CordovaBrowser;
browserDecorators.Add("DOMStorage", storageHelper);
+ ConsoleHelper console = new ConsoleHelper();
+ console.Browser = CordovaBrowser;
+ browserDecorators.Add("ConsoleLog", console);
+
}
@@ -243,10 +247,6 @@ namespace WPCordovaClassLib
// prevents refreshing web control to initial state during pages transitions
if (this.IsBrowserInitialized) return;
-
-
-
-
try
{
@@ -397,11 +397,11 @@ namespace WPCordovaClassLib
void GapBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
- string nativeReady = "(function(){ cordova.require('cordova/channel').onNativeReady.fire()})();";
+ string nativeReady = "(function(){ window.setTimeout(function(){cordova.require('cordova/channel').onNativeReady.fire()},0) })();";
try
{
- CordovaBrowser.InvokeScript("eval", new string[] { nativeReady });
+ CordovaBrowser.InvokeScript("execScript", new string[] { nativeReady });
}
catch (Exception ex)
{
[2/7] git commit: adding console helper to wp8 lib project
Posted by pu...@apache.org.
adding console helper to wp8 lib project
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/c7d47ac3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/c7d47ac3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/c7d47ac3
Branch: refs/heads/master
Commit: c7d47ac3fe5856b2452e7e85e048767e7a6ba433
Parents: 0985efa
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 00:52:01 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:28 2013 -0700
----------------------------------------------------------------------
wp8/framework/WPCordovaClassLib.csproj | 3 ++
wp8/template/cordovalib/ConsoleHelper.cs | 37 ++++++++++++++++++++++++
wp8/template/cordovalib/CordovaView.xaml.cs | 4 +++
3 files changed, 44 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c7d47ac3/wp8/framework/WPCordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/wp8/framework/WPCordovaClassLib.csproj b/wp8/framework/WPCordovaClassLib.csproj
index 7df678a..2c0442b 100644
--- a/wp8/framework/WPCordovaClassLib.csproj
+++ b/wp8/framework/WPCordovaClassLib.csproj
@@ -209,6 +209,9 @@
<Compile Include="..\template\cordovalib\ConfigHandler.cs">
<Link>CordovaLib\ConfigHandler.cs</Link>
</Compile>
+ <Compile Include="..\template\cordovalib\ConsoleHelper.cs">
+ <Link>CordovaLib\ConsoleHelper.cs</Link>
+ </Compile>
<Compile Include="..\template\cordovalib\CordovaCommandCall.cs">
<Link>CordovaLib\CordovaCommandCall.cs</Link>
</Compile>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c7d47ac3/wp8/template/cordovalib/ConsoleHelper.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/ConsoleHelper.cs b/wp8/template/cordovalib/ConsoleHelper.cs
new file mode 100644
index 0000000..c7bc8df
--- /dev/null
+++ b/wp8/template/cordovalib/ConsoleHelper.cs
@@ -0,0 +1,37 @@
+using Microsoft.Phone.Controls;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+
+namespace WPCordovaClassLib.CordovaLib
+{
+ class ConsoleHelper : IBrowserDecorator
+ {
+
+ public WebBrowser Browser { get; set; }
+
+ public void InjectScript()
+ {
+ string script = @"(function(win) {
+ function exec(msg) { window.external.Notify('ConsoleLog/' + msg); }
+ var cons = win.console = win.console || {};
+ cons.log = exec;
+ cons.debug = cons.debug || cons.log;
+ cons.info = cons.info || function(msg) { exec('INFO:' + msg ); };
+ cons.warn = cons.warn || function(msg) { exec('WARN:' + msg ); };
+ cons.error = cons.error || function(msg) { exec('ERROR:' + msg ); };
+ })(window);";
+
+ Browser.InvokeScript("execScript", new string[] { script });
+ }
+
+ public bool HandleCommand(string commandStr)
+ {
+ Debug.WriteLine(commandStr.Substring("ConsoleLog/".Length));
+ return true;
+ }
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/c7d47ac3/wp8/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/CordovaView.xaml.cs b/wp8/template/cordovalib/CordovaView.xaml.cs
index 49e6816..16e9aff 100644
--- a/wp8/template/cordovalib/CordovaView.xaml.cs
+++ b/wp8/template/cordovalib/CordovaView.xaml.cs
@@ -201,6 +201,10 @@ namespace WPCordovaClassLib
orientHelper.Browser = CordovaBrowser;
browserDecorators.Add("Orientation", orientHelper);
+ ConsoleHelper console = new ConsoleHelper();
+ console.Browser = CordovaBrowser;
+ browserDecorators.Add("ConsoleLog", console);
+
}
void AppClosing(object sender, ClosingEventArgs e)
[4/7] git commit: Added ConsoleHelper and removed DebugConsole from
templates for wp7+8
Posted by pu...@apache.org.
Added ConsoleHelper and removed DebugConsole from templates for wp7+8
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/0ad376b2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/0ad376b2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/0ad376b2
Branch: refs/heads/master
Commit: 0ad376b2a638b4d0a3f97e90d6eb64c03c3e066b
Parents: 1c5920e
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 00:58:04 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:31 2013 -0700
----------------------------------------------------------------------
wp7/template/CordovaWP7AppProj.csproj | 2 +-
wp8/template/CordovaWP8AppProj.csproj | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/0ad376b2/wp7/template/CordovaWP7AppProj.csproj
----------------------------------------------------------------------
diff --git a/wp7/template/CordovaWP7AppProj.csproj b/wp7/template/CordovaWP7AppProj.csproj
index f52ae1e..044b1df 100644
--- a/wp7/template/CordovaWP7AppProj.csproj
+++ b/wp7/template/CordovaWP7AppProj.csproj
@@ -88,6 +88,7 @@
<Compile Include="cordovalib\BrowserMouseHelper.cs" />
<Compile Include="cordovalib\CommandFactory.cs" />
<Compile Include="cordovalib\ConfigHandler.cs" />
+ <Compile Include="cordovalib\ConsoleHelper.cs" />
<Compile Include="cordovalib\CordovaCommandCall.cs" />
<Compile Include="cordovalib\CordovaView.xaml.cs">
<DependentUpon>CordovaView.xaml</DependentUpon>
@@ -177,7 +178,6 @@
<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" />
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/0ad376b2/wp8/template/CordovaWP8AppProj.csproj
----------------------------------------------------------------------
diff --git a/wp8/template/CordovaWP8AppProj.csproj b/wp8/template/CordovaWP8AppProj.csproj
index af72633..68a5163 100644
--- a/wp8/template/CordovaWP8AppProj.csproj
+++ b/wp8/template/CordovaWP8AppProj.csproj
@@ -127,6 +127,7 @@
<Compile Include="cordovalib\CommandFactory.cs" />
<Compile Include="cordovalib\Commands\BaseCommand.cs" />
<Compile Include="cordovalib\ConfigHandler.cs" />
+ <Compile Include="cordovalib\ConsoleHelper.cs" />
<Compile Include="cordovalib\CordovaCommandCall.cs" />
<Compile Include="cordovalib\CordovaView.xaml.cs">
<DependentUpon>CordovaView.xaml</DependentUpon>
[3/7] git commit: removed DebugConsole permission
Posted by pu...@apache.org.
removed DebugConsole permission
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/1c5920e3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/1c5920e3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/1c5920e3
Branch: refs/heads/master
Commit: 1c5920e3107be6ccc19337883ec1417cb8809b0e
Parents: c7d47ac
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 00:57:17 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:29 2013 -0700
----------------------------------------------------------------------
wp7/template/config.xml | 3 ---
wp8/template/config.xml | 3 ---
2 files changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/1c5920e3/wp7/template/config.xml
----------------------------------------------------------------------
diff --git a/wp7/template/config.xml b/wp7/template/config.xml
index c8d9cfc..054d26f 100644
--- a/wp7/template/config.xml
+++ b/wp7/template/config.xml
@@ -43,9 +43,6 @@
<feature name="Contacts">
<param name="wp-package" value="Contacts"/>
</feature>
- <feature name="DebugConsole">
- <param name="wp-package" value="DebugConsole"/>
- </feature>
<feature name="Echo">
<param name="wp-package" value="Echo"/>
</feature>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/1c5920e3/wp8/template/config.xml
----------------------------------------------------------------------
diff --git a/wp8/template/config.xml b/wp8/template/config.xml
index c8d9cfc..054d26f 100644
--- a/wp8/template/config.xml
+++ b/wp8/template/config.xml
@@ -43,9 +43,6 @@
<feature name="Contacts">
<param name="wp-package" value="Contacts"/>
</feature>
- <feature name="DebugConsole">
- <param name="wp-package" value="DebugConsole"/>
- </feature>
<feature name="Echo">
<param name="wp-package" value="Echo"/>
</feature>
[5/7] git commit: removed DebugConsole and XHRPatching and DOMStorage
from cordova.js. It is now part of native
Posted by pu...@apache.org.
removed DebugConsole and XHRPatching and DOMStorage from cordova.js. It is now part of native
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/b28af79f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/b28af79f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/b28af79f
Branch: refs/heads/master
Commit: b28af79f19c568cc7ca9a4750ecdc0bc375f0598
Parents: 0ad376b
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 01:05:16 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:32 2013 -0700
----------------------------------------------------------------------
common/www/cordova.js | 466 ---------------------------------------------
1 file changed, 466 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/b28af79f/common/www/cordova.js
----------------------------------------------------------------------
diff --git a/common/www/cordova.js b/common/www/cordova.js
index bb348e1..8c08344 100644
--- a/common/www/cordova.js
+++ b/common/www/cordova.js
@@ -5759,191 +5759,6 @@ modulemapper.clobbers('cordova/plugin/splashscreen', 'navigator.splashscreen');
});
-// file: lib/windowsphone/plugin/windowsphone/DOMStorage/plugininit.js
-define("cordova/plugin/windowsphone/DOMStorage/plugininit", function(require, exports, module) {
-
-(function(win,doc) {
-
-var docDomain = null;
-try {
- docDomain = doc.domain;
-} catch (err) {
- //console.log("caught exception trying to access document.domain");
-}
-
-// conditionally patch the window.localStorage and window.sessionStorage objects
-if (!docDomain || docDomain.length === 0) {
-
- var DOMStorage = function(type) {
- // default type is local
- if(type == "sessionStorage") {
- this._type = type;
- }
- Object.defineProperty( this, "length", {
- configurable: true,
- get: function(){ return this.getLength(); }
- });
- };
-
- DOMStorage.prototype = {
- _type:"localStorage",
- _result:null,
- keys:null,
-
- onResult:function(key,valueStr) {
- if(!this.keys) {
- this.keys = [];
- }
- this._result = valueStr;
- },
-
- onKeysChanged:function(jsonKeys) {
- this.keys = JSON.parse(jsonKeys);
-
- var key;
- for(var n = 0,len = this.keys.length; n < len; n++) {
- key = this.keys[n];
- if(!this.hasOwnProperty(key)) {
- Object.defineProperty( this, key, {
- configurable: true,
- get: function(){ return this.getItem(key); },
- set: function(val){ return this.setItem(key,val); }
- });
- }
- }
-
- },
-
- initialize:function() {
- window.external.Notify("DOMStorage/" + this._type + "/load/keys");
- },
-
- /*
- The length attribute must return the number of key/value pairs currently present
- in the list associated with the object.
- */
- getLength:function() {
- if(!this.keys) {
- this.initialize();
- }
- return this.keys.length;
- },
-
- /*
- The key(n) method must return the name of the nth key in the list.
- The order of keys is user-agent defined, but must be consistent within an object so long as the number of keys doesn't change.
- (Thus, adding or removing a key may change the order of the keys, but merely changing the value of an existing key must not.)
- If n is greater than or equal to the number of key/value pairs in the object, then this method must return null.
- */
- key:function(n) {
- if(!this.keys) {
- this.initialize();
- }
-
- if(n >= this.keys.length) {
- return null;
- } else {
- return this.keys[n];
- }
- },
-
- /*
- The getItem(key) method must return the current value associated with the given key.
- If the given key does not exist in the list associated with the object then this method must return null.
- */
- getItem:function(key) {
- if(!this.keys) {
- this.initialize();
- }
-
- var retVal = null;
- if(this.keys.indexOf(key) > -1) {
- window.external.Notify("DOMStorage/" + this._type + "/get/" + key);
- retVal = window.unescape(decodeURIComponent(this._result));
- this._result = null;
- }
- return retVal;
- },
- /*
- The setItem(key, value) method must first check if a key/value pair with the given key already exists
- in the list associated with the object.
- If it does not, then a new key/value pair must be added to the list, with the given key and with its value set to value.
- If the given key does exist in the list, then it must have its value updated to value.
- If it couldn't set the new value, the method must raise an QUOTA_EXCEEDED_ERR exception.
- (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
- */
- setItem:function(key,value) {
- if(!this.keys) {
- this.initialize();
- }
- window.external.Notify("DOMStorage/" + this._type + "/set/" + key + "/" + encodeURIComponent(window.escape(value)));
- },
-
- /*
- The removeItem(key) method must cause the key/value pair with the given key to be removed from the list
- associated with the object, if it exists.
- If no item with that key exists, the method must do nothing.
- */
- removeItem:function(key) {
- if(!this.keys) {
- this.initialize();
- }
- var index = this.keys.indexOf(key);
- if(index > -1) {
- this.keys.splice(index,1);
- // TODO: need sanity check for keys ? like 'clear','setItem', ...
- window.external.Notify("DOMStorage/" + this._type + "/remove/" + key);
- delete this[key];
- }
- },
-
- /*
- The clear() method must atomically cause the list associated with the object to be emptied of all
- key/value pairs, if there are any.
- If there are none, then the method must do nothing.
- */
- clear:function() {
- if(!this.keys) {
- this.initialize();
- }
-
- for(var n=0,len=this.keys.length; n < len;n++) {
- // TODO: do we need a sanity check for keys ? like 'clear','setItem', ...
- delete this[this.keys[n]];
- }
- this.keys = [];
- window.external.Notify("DOMStorage/" + this._type + "/clear/");
- }
- };
-
- // initialize DOMStorage
-
- if (typeof window.localStorage === "undefined") {
-
- Object.defineProperty(window, "localStorage", {
- writable: false,
- configurable: false,
- value: new DOMStorage("localStorage")
- });
- window.localStorage.initialize();
- }
-
- if (typeof window.sessionStorage === "undefined") {
- Object.defineProperty(window, "sessionStorage", {
- writable: false,
- configurable: false,
- value: new DOMStorage("sessionStorage")
- });
- window.sessionStorage.initialize();
- }
-}
-
-})(window, document);
-
-module.exports = null;
-
-});
-
// file: lib/windowsphone/plugin/windowsphone/FileTransfer.js
define("cordova/plugin/windowsphone/FileTransfer", function(require, exports, module) {
@@ -6084,287 +5899,6 @@ module.exports = FileUploadOptions;
});
-// file: lib/windowsphone/plugin/windowsphone/XHRPatch/plugininit.js
-define("cordova/plugin/windowsphone/XHRPatch/plugininit", function(require, exports, module) {
-
-// TODO: the build process will implicitly wrap this in a define() call
-// with a closure of its own; do you need this extra closure?
-
-var LocalFileSystem = require('cordova/plugin/LocalFileSystem');
-
-(function (win, doc) {
-
-var docDomain = null;
-try {
- docDomain = doc.domain;
-} catch (err) {
- //console.log("caught exception trying to access document.domain");
-}
-
-if (!docDomain || docDomain.length === 0) {
-
- var aliasXHR = win.XMLHttpRequest;
-
- win.XMLHttpRequest = function () { };
- win.XMLHttpRequest.noConflict = aliasXHR;
- win.XMLHttpRequest.UNSENT = 0;
- win.XMLHttpRequest.OPENED = 1;
- win.XMLHttpRequest.HEADERS_RECEIVED = 2;
- win.XMLHttpRequest.LOADING = 3;
- win.XMLHttpRequest.DONE = 4;
-
- win.XMLHttpRequest.prototype = {
- UNSENT: 0,
- OPENED: 1,
- HEADERS_RECEIVED: 2,
- LOADING: 3,
- DONE: 4,
-
- isAsync: false,
- onreadystatechange: null,
- readyState: 0,
- _url: "",
- timeout: 0,
- withCredentials: false,
- _requestHeaders: null,
- open: function (reqType, uri, isAsync, user, password) {
-
- if (uri && uri.indexOf("http") === 0) {
- if (!this.wrappedXHR) {
- this.wrappedXHR = new aliasXHR();
- var self = this;
-
- // timeout
- if (this.timeout > 0) {
- this.wrappedXHR.timeout = this.timeout;
- }
- Object.defineProperty(this, "timeout", {
- set: function (val) {
- this.wrappedXHR.timeout = val;
- },
- get: function () {
- return this.wrappedXHR.timeout;
- }
- });
-
-
-
- if (this.withCredentials) {
- this.wrappedXHR.withCredentials = this.withCredentials;
- }
- Object.defineProperty(this, "withCredentials", {
- set: function (val) {
- this.wrappedXHR.withCredentials = val;
- },
- get: function () {
- return this.wrappedXHR.withCredentials;
- }
- });
-
-
- Object.defineProperty(this, "status", { get: function () {
- return this.wrappedXHR.status;
- }
- });
- Object.defineProperty(this, "responseText", { get: function () {
- return this.wrappedXHR.responseText;
- }
- });
- Object.defineProperty(this, "statusText", { get: function () {
- return this.wrappedXHR.statusText;
- }
- });
-
- Object.defineProperty(this, "responseXML", { get: function () {
- return this.wrappedXHR.responseXML;
- }
- });
-
- this.getResponseHeader = function (header) {
- return this.wrappedXHR.getResponseHeader(header);
- };
- this.getAllResponseHeaders = function () {
- return this.wrappedXHR.getAllResponseHeaders();
- };
-
- this.wrappedXHR.onreadystatechange = function () {
- self.changeReadyState(self.wrappedXHR.readyState);
- };
- }
- return this.wrappedXHR.open(reqType, uri, isAsync, user, password);
- }
- else {
- // x-wmapp1://app/www/page2.html
- // need to work some magic on the actual url/filepath
- var newUrl = uri;
- if (newUrl.indexOf(":/") > -1) {
- newUrl = newUrl.split(":/")[1];
- }
- // prefix relative urls to our physical root
- if(newUrl.indexOf("app/www/") < 0 && this.getContentLocation() == this.contentLocation.ISOLATED_STORAGE)
- {
- newUrl = "app/www/" + newUrl;
- }
-
- if (newUrl.lastIndexOf("/") === newUrl.length - 1) {
- newUrl += "index.html"; // default page is index.html, when call is to a dir/ ( why not ...? )
- }
- this._url = newUrl;
- }
- },
- statusText: "",
- changeReadyState: function (newState) {
- this.readyState = newState;
- if (this.onreadystatechange) {
- this.onreadystatechange();
- }
- },
- setRequestHeader: function (header, value) {
- if (this.wrappedXHR) {
- this.wrappedXHR.setRequestHeader(header, value);
- }
- },
- getResponseHeader: function (header) {
- return this.wrappedXHR ? this.wrappedXHR.getResponseHeader(header) : "";
- },
- getAllResponseHeaders: function () {
- return this.wrappedXHR ? this.wrappedXHR.getAllResponseHeaders() : "";
- },
- responseText: "",
- responseXML: "",
- onResult: function (res) {
- this.status = 200;
- if(typeof res == "object")
- { // callback result handler may have already parsed this from a string-> a JSON object,
- // if so, we need to restore its stringyness, as handlers are expecting string data.
- // especially if used with jQ -> $.getJSON
- res = JSON.stringify(res);
- }
- this.responseText = res;
- this.responseXML = res;
- this.changeReadyState(this.DONE);
- },
- onError: function (err) {
- this.status = 404;
- this.changeReadyState(this.DONE);
- },
-
- abort: function () {
- if (this.wrappedXHR) {
- return this.wrappedXHR.abort();
- }
- },
-
- send: function (data) {
- if (this.wrappedXHR) {
- return this.wrappedXHR.send(data);
- }
- else {
- this.changeReadyState(this.OPENED);
-
- var alias = this;
-
- var fail = function fail(evt) {
- alias.onError(evt.code);
- };
-
- if (alias.getContentLocation() == this.contentLocation.RESOURCES) {
- var exec = require('cordova/exec');
- exec(function(result) {
- alias.onResult.apply(alias, [result]);
- },
- fail,
- "File", "readResourceAsText", [alias._url]
- );
- }
- else {
- var gotFile = function gotFile(file) {
- var reader = new FileReader();
- reader.onloadend = function (evt) {
- alias.onResult.apply(alias,[evt.target.result]);
- };
- reader.readAsText(file);
- };
-
- var gotEntry = function gotEntry(entry) {
- entry.file(gotFile, fail);
- };
-
- var gotFS = function gotFS(fs) {
- fs.root.getFile(alias._url, null, gotEntry, fail);
- };
-
- window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
- }
- }
- },
-
- getContentLocation: function () {
- if (window.contentLocation === undefined) {
- window.contentLocation = (navigator.userAgent.toUpperCase().indexOf('MSIE 10') > -1) ?
- this.contentLocation.RESOURCES : this.contentLocation.ISOLATED_STORAGE;
- }
-
- return window.contentLocation;
- },
-
- contentLocation:{
- ISOLATED_STORAGE: 0,
- RESOURCES: 1
- },
-
- status: 404
- };
-} // if doc domain
-
-// end closure wrap
-})(window, document);
-
-module.exports = null;
-
-});
-
-// file: lib/windowsphone/plugin/windowsphone/console.js
-define("cordova/plugin/windowsphone/console", function(require, exports, module) {
-
-
-var exec = require('cordova/exec'),
- channel = require('cordova/channel');
-var cordova = require("cordova");
-
-var debugConsole = {
- log:function(msg){
- exec(null,null,"DebugConsole","log",msg);
- },
- warn:function(msg){
- exec(null,null,"DebugConsole","warn",msg);
- },
- error:function(msg){
- exec(null,null,"DebugConsole","error",msg);
- }
-};
-
-var oldOnError = window.onerror;
-window.onerror = function(msg,fileName,line) {
- oldOnError && oldOnError(msg,fileName,line);
- debugConsole.error(msg + " file:" + fileName + " Line:" + line);
-};
-
-module.exports = debugConsole;
-
-});
-
-// file: lib/windowsphone/plugin/windowsphone/console/symbols.js
-define("cordova/plugin/windowsphone/console/symbols", function(require, exports, module) {
-
-
-var modulemapper = require('cordova/modulemapper');
-
-modulemapper.clobbers('cordova/plugin/windowsphone/console', 'navigator.console');
-modulemapper.clobbers('cordova/plugin/windowsphone/console', 'console');
-
-});
-
// file: lib/common/symbols.js
define("cordova/symbols", function(require, exports, module) {
[7/7] git commit: Removed AudioFormatsHelper from templates and added
ConsoleHelper
Posted by pu...@apache.org.
Removed AudioFormatsHelper from templates and added ConsoleHelper
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/29432294
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/29432294
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/29432294
Branch: refs/heads/master
Commit: 29432294d75dea97de034906405dc9eaa92660b5
Parents: e73b26c
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 02:07:26 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:34 2013 -0700
----------------------------------------------------------------------
common/Plugins/AudioFormatsHelper.cs | 89 -----------------------------
wp7/framework/WPCordovaClassLib.csproj | 3 -
wp7/template/CordovaWP7AppProj.csproj | 1 -
wp7/template/MyTemplate.vstemplate | 2 +-
wp8/framework/WPCordovaClassLib.csproj | 3 -
wp8/template/CordovaWP8AppProj.csproj | 2 -
wp8/template/MyTemplate.vstemplate | 2 +-
7 files changed, 2 insertions(+), 100 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/common/Plugins/AudioFormatsHelper.cs
----------------------------------------------------------------------
diff --git a/common/Plugins/AudioFormatsHelper.cs b/common/Plugins/AudioFormatsHelper.cs
deleted file mode 100644
index dca7ee6..0000000
--- a/common/Plugins/AudioFormatsHelper.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- */
-
-using System;
-using System.IO;
-
-namespace WPCordovaClassLib.Cordova.Commands
-{
- /// <summary>
- /// Provides extra functionality to support different audio formats.
- /// </summary>
- public static class AudioFormatsHelper
- {
- #region Wav
- /// <summary>
- /// Adds wav file format header to the stream
- /// https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
- /// </summary>
- /// <param name="stream">The stream</param>
- /// <param name="sampleRate">Sample Rate</param>
- public static void InitializeWavStream(this Stream stream, int sampleRate)
- {
- #region args checking
-
- if (stream == null)
- {
- throw new ArgumentNullException("stream can't be null or empty");
- }
-
- #endregion
-
- int numBits = 16;
- int numBytes = numBits / 8;
-
- stream.Write(System.Text.Encoding.UTF8.GetBytes("RIFF"), 0, 4);
- stream.Write(BitConverter.GetBytes(0), 0, 4);
- stream.Write(System.Text.Encoding.UTF8.GetBytes("WAVE"), 0, 4);
- stream.Write(System.Text.Encoding.UTF8.GetBytes("fmt "), 0, 4);
- stream.Write(BitConverter.GetBytes(16), 0, 4);
- stream.Write(BitConverter.GetBytes((short)1), 0, 2);
- stream.Write(BitConverter.GetBytes((short)1), 0, 2);
- stream.Write(BitConverter.GetBytes(sampleRate), 0, 4);
- stream.Write(BitConverter.GetBytes(sampleRate * numBytes), 0, 4);
- stream.Write(BitConverter.GetBytes((short)(numBytes)), 0, 2);
- stream.Write(BitConverter.GetBytes((short)(numBits)), 0, 2);
- stream.Write(System.Text.Encoding.UTF8.GetBytes("data"), 0, 4);
- stream.Write(BitConverter.GetBytes(0), 0, 4);
- }
-
- /// <summary>
- /// Updates wav file format header
- /// https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
- /// </summary>
- /// <param name="stream">Wav stream</param>
- public static void UpdateWavStream(this Stream stream)
- {
- #region args checking
-
- if (stream == null)
- {
- throw new ArgumentNullException("stream can't be null or empty");
- }
-
- #endregion
-
- var position = stream.Position;
-
- stream.Seek(4, SeekOrigin.Begin);
- stream.Write(BitConverter.GetBytes((int)stream.Length - 8), 0, 4);
- stream.Seek(40, SeekOrigin.Begin);
- stream.Write(BitConverter.GetBytes((int)stream.Length - 44), 0, 4);
- stream.Seek(position, SeekOrigin.Begin);
- }
-
- #endregion
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/wp7/framework/WPCordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/wp7/framework/WPCordovaClassLib.csproj b/wp7/framework/WPCordovaClassLib.csproj
index cd1e004..65685c9 100644
--- a/wp7/framework/WPCordovaClassLib.csproj
+++ b/wp7/framework/WPCordovaClassLib.csproj
@@ -83,9 +83,6 @@
<Compile Include="..\..\common\Plugins\Accelerometer.cs">
<Link>Plugins\Accelerometer.cs</Link>
</Compile>
- <Compile Include="..\..\common\Plugins\AudioFormatsHelper.cs">
- <Link>Plugins\AudioFormatsHelper.cs</Link>
- </Compile>
<Compile Include="..\..\common\Plugins\AudioPlayer.cs">
<Link>Plugins\AudioPlayer.cs</Link>
</Compile>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/wp7/template/CordovaWP7AppProj.csproj
----------------------------------------------------------------------
diff --git a/wp7/template/CordovaWP7AppProj.csproj b/wp7/template/CordovaWP7AppProj.csproj
index 044b1df..13b1192 100644
--- a/wp7/template/CordovaWP7AppProj.csproj
+++ b/wp7/template/CordovaWP7AppProj.csproj
@@ -172,7 +172,6 @@
</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" />
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/wp7/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp7/template/MyTemplate.vstemplate b/wp7/template/MyTemplate.vstemplate
index 9ddc02a..8528cf0 100644
--- a/wp7/template/MyTemplate.vstemplate
+++ b/wp7/template/MyTemplate.vstemplate
@@ -64,6 +64,7 @@
<ProjectItem ReplaceParameters="true" TargetFileName="PluginResult.cs">PluginResult.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="ScriptCallback.cs">ScriptCallback.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="XHRHelper.cs">XHRHelper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ConsoleHelper.cs">ConsoleHelper.cs</ProjectItem>
</Folder>
<ProjectItem ReplaceParameters="true" TargetFileName="CordovaSourceDictionary.xml">CordovaSourceDictionary.xml</ProjectItem>
<Folder Name="Images" TargetFolderName="Images">
@@ -78,7 +79,6 @@
<ProjectItem ReplaceParameters="true" TargetFileName="MainPage.xaml.cs">MainPage.xaml.cs</ProjectItem>
<Folder Name="Plugins" TargetFolderName="Plugins">
<ProjectItem ReplaceParameters="true" TargetFileName="Accelerometer.cs">Accelerometer.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="AudioFormatsHelper.cs">AudioFormatsHelper.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="AudioPlayer.cs">AudioPlayer.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Battery.cs">Battery.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Camera.cs">Camera.cs</ProjectItem>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/wp8/framework/WPCordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/wp8/framework/WPCordovaClassLib.csproj b/wp8/framework/WPCordovaClassLib.csproj
index 2c0442b..46e2ac5 100644
--- a/wp8/framework/WPCordovaClassLib.csproj
+++ b/wp8/framework/WPCordovaClassLib.csproj
@@ -122,9 +122,6 @@
<Compile Include="..\..\common\Plugins\Accelerometer.cs">
<Link>Plugins\Accelerometer.cs</Link>
</Compile>
- <Compile Include="..\..\common\Plugins\AudioFormatsHelper.cs">
- <Link>Plugins\AudioFormatsHelper.cs</Link>
- </Compile>
<Compile Include="..\..\common\Plugins\AudioPlayer.cs">
<Link>Plugins\AudioPlayer.cs</Link>
</Compile>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/wp8/template/CordovaWP8AppProj.csproj
----------------------------------------------------------------------
diff --git a/wp8/template/CordovaWP8AppProj.csproj b/wp8/template/CordovaWP8AppProj.csproj
index 68a5163..097d9a9 100644
--- a/wp8/template/CordovaWP8AppProj.csproj
+++ b/wp8/template/CordovaWP8AppProj.csproj
@@ -210,14 +210,12 @@
</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\Capture.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" />
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/29432294/wp8/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp8/template/MyTemplate.vstemplate b/wp8/template/MyTemplate.vstemplate
index a343f45..94128bf 100644
--- a/wp8/template/MyTemplate.vstemplate
+++ b/wp8/template/MyTemplate.vstemplate
@@ -60,6 +60,7 @@
<ProjectItem ReplaceParameters="true" TargetFileName="PluginResult.cs">PluginResult.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="ScriptCallback.cs">ScriptCallback.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="XHRHelper.cs">XHRHelper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ConsoleHelper.cs">ConsoleHelper.cs</ProjectItem>
</Folder>
<Folder Name="Images" TargetFolderName="Images">
<ProjectItem ReplaceParameters="false" TargetFileName="appbar.back.rest.png">appbar.back.rest.png</ProjectItem>
@@ -73,7 +74,6 @@
<ProjectItem ReplaceParameters="true" TargetFileName="MainPage.xaml.cs">MainPage.xaml.cs</ProjectItem>
<Folder Name="Plugins" TargetFolderName="Plugins">
<ProjectItem ReplaceParameters="true" TargetFileName="Accelerometer.cs">Accelerometer.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="AudioFormatsHelper.cs">AudioFormatsHelper.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="AudioPlayer.cs">AudioPlayer.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Battery.cs">Battery.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Camera.cs">Camera.cs</ProjectItem>
[6/7] git commit: remove DebugConsole refs from templates
Posted by pu...@apache.org.
remove DebugConsole refs from templates
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/e73b26cf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/e73b26cf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/e73b26cf
Branch: refs/heads/master
Commit: e73b26cf4aaa1bfc795ebf9cd5a3a3468687aef8
Parents: b28af79
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jul 10 01:15:42 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jul 10 11:09:33 2013 -0700
----------------------------------------------------------------------
wp7/template/MyTemplate.vstemplate | 5 ++---
wp8/template/MyTemplate.vstemplate | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/e73b26cf/wp7/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp7/template/MyTemplate.vstemplate b/wp7/template/MyTemplate.vstemplate
index e3ed91a..9ddc02a 100644
--- a/wp7/template/MyTemplate.vstemplate
+++ b/wp7/template/MyTemplate.vstemplate
@@ -1,6 +1,6 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
- <Name>CordovaWP7_9_9_9
+ <Name>CordovaWP7_0_0_0
</Name>
@@ -10,7 +10,7 @@
</ProjectSubType>
<SortOrder>1000</SortOrder>
<CreateNewFolder>true</CreateNewFolder>
- <DefaultName>CordovaWP7_9_9_9</DefaultName>
+ <DefaultName>CordovaWP7_0_0_0</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<LocationField>Enabled</LocationField>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
@@ -85,7 +85,6 @@
<ProjectItem ReplaceParameters="true" TargetFileName="Capture.cs">Capture.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Compass.cs">Compass.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Contacts.cs">Contacts.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="DebugConsole.cs">DebugConsole.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Device.cs">Device.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="File.cs">File.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="FileTransfer.cs">FileTransfer.cs</ProjectItem>
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/e73b26cf/wp8/template/MyTemplate.vstemplate
----------------------------------------------------------------------
diff --git a/wp8/template/MyTemplate.vstemplate b/wp8/template/MyTemplate.vstemplate
index 485edae..a343f45 100644
--- a/wp8/template/MyTemplate.vstemplate
+++ b/wp8/template/MyTemplate.vstemplate
@@ -1,13 +1,13 @@
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
- <Name>CordovaWP8_9_9_9</Name>
+ <Name>CordovaWP8_0_0_0</Name>
<Description>Starter project for building a Cordova app for Windows Phone 8 version: 0.0.0</Description>
<ProjectType>CSharp</ProjectType>
<ProjectSubType>
</ProjectSubType>
<SortOrder>1000</SortOrder>
<CreateNewFolder>true</CreateNewFolder>
- <DefaultName>CordovaWP8_9_9_9</DefaultName>
+ <DefaultName>CordovaWP8_0_0_0</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<LocationField>Enabled</LocationField>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
@@ -80,7 +80,6 @@
<ProjectItem ReplaceParameters="true" TargetFileName="Capture.cs">Capture.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Compass.cs">Compass.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Contacts.cs">Contacts.cs</ProjectItem>
- <ProjectItem ReplaceParameters="true" TargetFileName="DebugConsole.cs">DebugConsole.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Device.cs">Device.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="File.cs">File.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="FileTransfer.cs">FileTransfer.cs</ProjectItem>