From 0442af98d3d00ed6ac934e11171509e972c5e5ff Mon Sep 17 00:00:00 2001 From: Arturo Volpe Date: Wed, 9 Jul 2014 20:20:27 -0400 Subject: [PATCH] Soporte Unity3dFree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se agrega código para el precompilador para que se omitan las llamadas a API que estan bloqueadas en la versión free de unity. Signed-off-by: Arturo Volpe --- CookieJar.cs.meta | 8 ++++++++ DiskCache.cs.meta | 8 ++++++++ HTTP.csproj.meta | 4 ++++ HTTP.pidb.meta | 4 ++++ README.md.meta | 4 ++++ Request.cs | 10 +++++++++- Request.cs.meta | 8 ++++++++ Request.cs2.meta | 4 ++++ Response.cs.meta | 8 ++++++++ ResponseCallbackDispatcher.cs.meta | 8 ++++++++ external.meta | 5 +++++ external/JSON.cs.meta | 8 ++++++++ 12 files changed, 78 insertions(+), 1 deletion(-) create mode 100755 CookieJar.cs.meta create mode 100755 DiskCache.cs.meta create mode 100755 HTTP.csproj.meta create mode 100755 HTTP.pidb.meta create mode 100755 README.md.meta create mode 100755 Request.cs.meta create mode 100755 Request.cs2.meta create mode 100755 Response.cs.meta create mode 100755 ResponseCallbackDispatcher.cs.meta create mode 100755 external.meta create mode 100755 external/JSON.cs.meta diff --git a/CookieJar.cs.meta b/CookieJar.cs.meta new file mode 100755 index 0000000..e93850b --- /dev/null +++ b/CookieJar.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8cf7ca31110a6f74aaba71687a5c4f11 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/DiskCache.cs.meta b/DiskCache.cs.meta new file mode 100755 index 0000000..7fd86cb --- /dev/null +++ b/DiskCache.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0afc390fdfda14645afeafb8bbd5e8d1 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/HTTP.csproj.meta b/HTTP.csproj.meta new file mode 100755 index 0000000..b0c0554 --- /dev/null +++ b/HTTP.csproj.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 66d73a10a20b55744ad5f2698218e016 +DefaultImporter: + userData: diff --git a/HTTP.pidb.meta b/HTTP.pidb.meta new file mode 100755 index 0000000..8343dc9 --- /dev/null +++ b/HTTP.pidb.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 192a271eed4b7544895d7b63ed790008 +DefaultImporter: + userData: diff --git a/README.md.meta b/README.md.meta new file mode 100755 index 0000000..d7ea42d --- /dev/null +++ b/README.md.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 43e6edb8101c35945aa844845283da81 +DefaultImporter: + userData: diff --git a/Request.cs b/Request.cs index 3d13b7c..d3c59b6 100644 --- a/Request.cs +++ b/Request.cs @@ -4,7 +4,10 @@ using System.Text; using System.Collections; using System.Collections.Generic; +#if UNITY_ANDROID && !UNITY_EDITOR +#else using System.Net.Sockets; +#endif using System.Globalization; using System.Threading; using System.Net.Security; @@ -144,6 +147,10 @@ public void Send() } private void GetResponse() { + +#if UNITY_ANDROID && !UNITY_EDITOR + throw new Exception("Can not continue"); +#else System.Diagnostics.Stopwatch curcall = new System.Diagnostics.Stopwatch(); curcall.Start(); try { @@ -236,7 +243,8 @@ private void GetResponse() { Debug.LogWarning( InfoString( VerboseLogging ) ); } #endif - } + } +#endif } public void Send( Action< HTTP.Request > callback ) diff --git a/Request.cs.meta b/Request.cs.meta new file mode 100755 index 0000000..4f2209a --- /dev/null +++ b/Request.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1e4e02984d9e6af4ab96d8f516941477 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Request.cs2.meta b/Request.cs2.meta new file mode 100755 index 0000000..3ab8a2b --- /dev/null +++ b/Request.cs2.meta @@ -0,0 +1,4 @@ +fileFormatVersion: 2 +guid: 9bf609dc62c58ab4fbcaa1d3428cd2f0 +DefaultImporter: + userData: diff --git a/Response.cs.meta b/Response.cs.meta new file mode 100755 index 0000000..43f09c6 --- /dev/null +++ b/Response.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 084ceaeab74b0e44c85f92c1eae6bd9c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/ResponseCallbackDispatcher.cs.meta b/ResponseCallbackDispatcher.cs.meta new file mode 100755 index 0000000..508c86b --- /dev/null +++ b/ResponseCallbackDispatcher.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 11ab204677ac9a44190762dc32ff162c +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/external.meta b/external.meta new file mode 100755 index 0000000..e910e1c --- /dev/null +++ b/external.meta @@ -0,0 +1,5 @@ +fileFormatVersion: 2 +guid: 9cb05813e79a4de4e913b5f53605a441 +folderAsset: yes +DefaultImporter: + userData: diff --git a/external/JSON.cs.meta b/external/JSON.cs.meta new file mode 100755 index 0000000..d72a3af --- /dev/null +++ b/external/JSON.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4ad172e2433a2554997a2eb7bdab4db6 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: