chore: adaption
parent
a9f1f8772d
commit
7592688aae
|
@ -1,43 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<ReleaseVersion>0.7.1</ReleaseVersion>
|
||||
<AssemblyName>Common</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Common\AppRouter\LCAppServer.cs">
|
||||
<Link>AppRouter\LCAppServer.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\AppRouter\LCAppRouter.cs">
|
||||
<Link>AppRouter\LCAppRouter.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Http\LCHttpUtils.cs">
|
||||
<Link>Http\LCHttpUtils.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Json\LCJsonUtils.cs">
|
||||
<Link>Json\LCJsonUtils.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Log\LCLogger.cs">
|
||||
<Link>Log\LCLogger.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Log\LCLogLevel.cs">
|
||||
<Link>Log\LCLogLevel.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Task\LCTaskExtensions.cs">
|
||||
<Link>Task\LCTaskExtensions.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Json\LCJsonConverter.cs">
|
||||
<Link>Json\LCJsonConverter.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Common\Exception\LCException.cs">
|
||||
<Link>Exception\LCException.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\..\Unity\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -2,7 +2,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using System.Net.Http;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
|
||||
namespace LeanCloud.Common {
|
||||
public class LCAppRouter {
|
||||
|
|
|
@ -6,13 +6,15 @@
|
|||
<AssemblyName>Common</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Log\" />
|
||||
<Folder Include="Http\" />
|
||||
<Folder Include="Task\" />
|
||||
<Folder Include="Exception\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Libs\Newtonsoft.Json\LC.Newtonsoft.Json.csproj">
|
||||
<ReferenceSourceTarget>ProjectReference</ReferenceSourceTarget>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
|
||||
namespace LeanCloud.Common {
|
||||
public class LCJsonConverter : JsonConverter {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LeanCloud.Common {
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using LeanCloud.Common;
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<ReleaseVersion>0.7.1</ReleaseVersion>
|
||||
<AssemblyName>LiveQuery</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Realtime\Realtime-Unity\Realtime-Unity.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\LiveQuery\Internal\LCLiveQueryHeartBeat.cs">
|
||||
<Link>Internal\LCLiveQueryHeartBeat.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\LiveQuery\Internal\LCLiveQueryConnection.cs">
|
||||
<Link>Internal\LCLiveQueryConnection.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\LiveQuery\LCLiveQuery.cs">
|
||||
<Link>LCLiveQuery.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\LiveQuery\LCQueryExtension.cs">
|
||||
<Link>LCQueryExtension.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\..\Unity\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||
using System.Threading.Tasks;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud;
|
||||
using LeanCloud.Storage;
|
||||
using LeanCloud.LiveQuery;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Realtime.Internal.Router;
|
||||
using LeanCloud.Realtime.Internal.WebSocket;
|
||||
using LeanCloud.Common;
|
||||
|
|
|
@ -1,132 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<ReleaseVersion>0.7.1</ReleaseVersion>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<AssemblyName>Realtime</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMConversation.cs">
|
||||
<Link>Conversation\LCIMConversation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMServiceConversation.cs">
|
||||
<Link>Conversation\LCIMServiceConversation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMConversationMemberInfo.cs">
|
||||
<Link>Conversation\LCIMConversationMemberInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMConversationQuery.cs">
|
||||
<Link>Conversation\LCIMConversationQuery.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMChatRoom.cs">
|
||||
<Link>Conversation\LCIMChatRoom.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMMessageQueryOptions.cs">
|
||||
<Link>Conversation\LCIMMessageQueryOptions.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Conversation\LCIMTemporaryConversation.cs">
|
||||
<Link>Conversation\LCIMTemporaryConversation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\WebSocket\LCWebSocketClient.cs">
|
||||
<Link>Internal\WebSocket\LCWebSocketClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Connection\LCHeartBeat.cs">
|
||||
<Link>Internal\Connection\LCHeartBeat.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Connection\LCConnection.cs">
|
||||
<Link>Internal\Connection\LCConnection.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Protocol\Messages2Proto.cs">
|
||||
<Link>Internal\Protocol\Messages2Proto.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Controller\LCIMSessionController.cs">
|
||||
<Link>Internal\Controller\LCIMSessionController.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Controller\LCIMController.cs">
|
||||
<Link>Internal\Controller\LCIMController.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Controller\LCIMMessageController.cs">
|
||||
<Link>Internal\Controller\LCIMMessageController.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Controller\LCIMConversationController.cs">
|
||||
<Link>Internal\Controller\LCIMConversationController.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Router\LCRTMServer.cs">
|
||||
<Link>Internal\Router\LCRTMServer.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Internal\Router\LCRTMRouter.cs">
|
||||
<Link>Internal\Router\LCRTMRouter.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMVideoMessage.cs">
|
||||
<Link>Message\LCIMVideoMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMMessageSendOptions.cs">
|
||||
<Link>Message\LCIMMessageSendOptions.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMBinaryMessage.cs">
|
||||
<Link>Message\LCIMBinaryMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMFileMessage.cs">
|
||||
<Link>Message\LCIMFileMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMRecalledMessage.cs">
|
||||
<Link>Message\LCIMRecalledMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMMessage.cs">
|
||||
<Link>Message\LCIMMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMTextMessage.cs">
|
||||
<Link>Message\LCIMTextMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMImageMessage.cs">
|
||||
<Link>Message\LCIMImageMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMAudioMessage.cs">
|
||||
<Link>Message\LCIMAudioMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMLocationMessage.cs">
|
||||
<Link>Message\LCIMLocationMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Message\LCIMTypedMessage.cs">
|
||||
<Link>Message\LCIMTypedMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Result\LCIMOperationFailure.cs">
|
||||
<Link>Result\LCIMOperationFailure.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Result\LCIMPageResult.cs">
|
||||
<Link>Result\LCIMPageResult.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Result\LCIMPartiallySuccessResult.cs">
|
||||
<Link>Result\LCIMPartiallySuccessResult.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Signature\LCIMSignature.cs">
|
||||
<Link>Signature\LCIMSignature.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Signature\ILCIMSignatureFactory.cs">
|
||||
<Link>Signature\ILCIMSignatureFactory.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\Signature\LCIMSignatureAction.cs">
|
||||
<Link>Signature\LCIMSignatureAction.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\LCIMClient.cs">
|
||||
<Link>LCIMClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Realtime\LCRealtime.cs">
|
||||
<Link>LCRealtime.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Common\Common-Unity\Common-Unity.csproj" />
|
||||
<ProjectReference Include="..\..\Storage\Storage-Unity\Storage-Unity.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\..\Unity\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Google.Protobuf" Version="3.14.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,5 +0,0 @@
|
|||
<linker>
|
||||
<assembly fullname="LeanCloud" preserve="all"/>
|
||||
<assembly fullname="LeanCloud.Storage" preserve="all"/>
|
||||
<assembly fullname="LeanCloud.Realtime" preserve="all"/>
|
||||
</linker>
|
|
@ -1,6 +1,6 @@
|
|||
using NUnit.Framework;
|
||||
using LeanCloud.Realtime.Internal.Protocol;
|
||||
using Google.Protobuf;
|
||||
using LC.Google.Protobuf;
|
||||
|
||||
namespace Realtime.Test {
|
||||
public class Protobuf {
|
||||
|
|
|
@ -15,6 +15,5 @@
|
|||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Realtime\Realtime\Realtime.csproj" />
|
||||
<ProjectReference Include="..\..\Storage\Storage\Storage.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Google.Protobuf;
|
||||
using LC.Google.Protobuf;
|
||||
using LeanCloud.Realtime.Internal.Router;
|
||||
using LeanCloud.Realtime.Internal.WebSocket;
|
||||
using LeanCloud.Realtime.Internal.Protocol;
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Realtime.Internal.Protocol;
|
||||
using LeanCloud.Storage.Internal.Codec;
|
||||
using LeanCloud.Common;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.ObjectModel;
|
||||
using Newtonsoft.Json;
|
||||
using Google.Protobuf;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LC.Google.Protobuf;
|
||||
using LeanCloud.Realtime.Internal.Protocol;
|
||||
|
||||
namespace LeanCloud.Realtime.Internal.Controller {
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using pb = global::LC.Google.Protobuf;
|
||||
using pbc = global::LC.Google.Protobuf.Collections;
|
||||
using pbr = global::LC.Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace LeanCloud.Realtime.Internal.Protocol {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using System.Net.Http;
|
||||
using LeanCloud.Common;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
|
||||
namespace LeanCloud.Realtime.Internal.Router {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
|
||||
namespace LeanCloud.Realtime.Internal.Router {
|
||||
public class LCRTMServer {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Storage.Internal.Codec;
|
||||
using LeanCloud.Common;
|
||||
|
||||
|
|
|
@ -7,9 +7,6 @@
|
|||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Google.Protobuf" Version="3.14.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Internal\" />
|
||||
<Folder Include="Internal\Router\" />
|
||||
|
@ -25,5 +22,6 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Common\Common\Common.csproj" />
|
||||
<ProjectReference Include="..\..\Storage\Storage\Storage.csproj" />
|
||||
<ProjectReference Include="..\..\Libs\Google.Protobuf\LC.Google.Protobuf.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -1,160 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<ReleaseVersion>0.7.1</ReleaseVersion>
|
||||
<AssemblyName>Storage</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Storage\LCACL.cs">
|
||||
<Link>LCACL.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCApplication.cs">
|
||||
<Link>LCApplication.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCCloud.cs">
|
||||
<Link>LCCloud.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCFile.cs">
|
||||
<Link>LCFile.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCGeoPoint.cs">
|
||||
<Link>LCGeoPoint.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCObject.cs">
|
||||
<Link>LCObject.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCQuery.cs">
|
||||
<Link>LCQuery.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCRelation.cs">
|
||||
<Link>LCRelation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCRole.cs">
|
||||
<Link>LCRole.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCUser.cs">
|
||||
<Link>LCUser.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCUserAuthDataLoginOption.cs">
|
||||
<Link>LCUserAuthDataLoginOption.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCNumberOperation.cs">
|
||||
<Link>Internal\Operation\LCNumberOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCAddRelationOperation.cs">
|
||||
<Link>Internal\Operation\LCAddRelationOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCDeleteOperation.cs">
|
||||
<Link>Internal\Operation\LCDeleteOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCSetOperation.cs">
|
||||
<Link>Internal\Operation\LCSetOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCAddUniqueOperation.cs">
|
||||
<Link>Internal\Operation\LCAddUniqueOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCRemoveOperation.cs">
|
||||
<Link>Internal\Operation\LCRemoveOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCRemoveRelationOperation.cs">
|
||||
<Link>Internal\Operation\LCRemoveRelationOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\LCAddOperation.cs">
|
||||
<Link>Internal\Operation\LCAddOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Operation\ILCOperation.cs">
|
||||
<Link>Internal\Operation\ILCOperation.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\File\LCProgressableStreamContent.cs">
|
||||
<Link>Internal\File\LCProgressableStreamContent.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\File\LCQiniuUploader.cs">
|
||||
<Link>Internal\File\LCQiniuUploader.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\File\LCMimeTypeMap.cs">
|
||||
<Link>Internal\File\LCMimeTypeMap.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\File\LCAWSUploader.cs">
|
||||
<Link>Internal\File\LCAWSUploader.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Codec\LCEncoder.cs">
|
||||
<Link>Internal\Codec\LCEncoder.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Codec\LCDecoder.cs">
|
||||
<Link>Internal\Codec\LCDecoder.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Object\LCSubClassInfo.cs">
|
||||
<Link>Internal\Object\LCSubClassInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Object\LCBatch.cs">
|
||||
<Link>Internal\Object\LCBatch.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Object\LCObjectData.cs">
|
||||
<Link>Internal\Object\LCObjectData.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Http\LCHttpClient.cs">
|
||||
<Link>Internal\Http\LCHttpClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Query\LCEqualCondition.cs">
|
||||
<Link>Internal\Query\LCEqualCondition.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Query\LCOperationCondition.cs">
|
||||
<Link>Internal\Query\LCOperationCondition.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Query\LCRelatedCondition.cs">
|
||||
<Link>Internal\Query\LCRelatedCondition.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Query\ILCQueryCondition.cs">
|
||||
<Link>Internal\Query\ILCQueryCondition.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Internal\Query\LCCompositionalCondition.cs">
|
||||
<Link>Internal\Query\LCCompositionalCondition.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCCaptchaClient.cs">
|
||||
<Link>LCCaptchaClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCSMSClient.cs">
|
||||
<Link>LCSMSClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Leaderboard\LCLeaderboardArchive.cs">
|
||||
<Link>Leaderboard\LCLeaderboardArchive.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Leaderboard\LCStatistic.cs">
|
||||
<Link>Leaderboard\LCStatistic.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Leaderboard\LCLeaderboard.cs">
|
||||
<Link>Leaderboard\LCLeaderboard.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\Leaderboard\LCRanking.cs">
|
||||
<Link>Leaderboard\LCRanking.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCFollowersAndFollowees.cs">
|
||||
<Link>LCFollowersAndFollowees.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCFriendship.cs">
|
||||
<Link>LCFriendship.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCFriendshipRequest.cs">
|
||||
<Link>LCFriendshipRequest.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCStatus.cs">
|
||||
<Link>LCStatus.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCStatusCount.cs">
|
||||
<Link>LCStatusCount.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Storage\LCStatusQuery.cs">
|
||||
<Link>LCStatusQuery.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Common\Common-Unity\Common-Unity.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\..\Unity\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,4 +0,0 @@
|
|||
<linker>
|
||||
<assembly fullname="LeanCloud" preserve="all"/>
|
||||
<assembly fullname="LeanCloud.Storage" preserve="all"/>
|
||||
</linker>
|
|
@ -7,11 +7,13 @@
|
|||
<ReleaseVersion>0.7.1</ReleaseVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="nunit" Version="3.12.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="3.15.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||
using System.Threading.Tasks;
|
||||
using LeanCloud;
|
||||
using LeanCloud.Storage;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
|
||||
namespace Storage.Test {
|
||||
public class UserTest {
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Net.Http;
|
|||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Security.Cryptography;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Common;
|
||||
|
||||
namespace LeanCloud.Storage.Internal.Http {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Storage.Internal.Codec;
|
||||
|
||||
namespace LeanCloud.Storage.Internal.Query {
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Storage.Internal.Object;
|
||||
using LeanCloud.Storage.Internal.Operation;
|
||||
using LeanCloud.Storage.Internal.Codec;
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Threading.Tasks;
|
|||
using System.Collections.Generic;
|
||||
using LeanCloud.Storage.Internal.Codec;
|
||||
using LeanCloud.Storage.Internal.Object;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
|
||||
namespace LeanCloud.Storage {
|
||||
public class LCStatus : LCObject {
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Threading.Tasks;
|
|||
using System.Collections;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using LC.Newtonsoft.Json;
|
||||
using LeanCloud.Storage.Internal.Codec;
|
||||
using LeanCloud.Storage.Internal.Object;
|
||||
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
<ItemGroup>
|
||||
<Compile Remove="Class1.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Internal\" />
|
||||
<Folder Include="Internal\Codec\" />
|
||||
|
|
|
@ -7,20 +7,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Common", "Common", "{375B85
|
|||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Realtime", "Realtime", "{319A9989-3B69-4AD0-9E43-F6D31C1D2A4A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Realtime-Unity", "Realtime\Realtime-Unity\Realtime-Unity.csproj", "{26CDAE2A-6D79-4981-8D80-3EA34FDFB134}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sample", "Sample", "{2D980281-F060-4363-AB7A-D4B6C30ADDBB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Storage.Test", "Storage\Storage.Test\Storage.Test.csproj", "{8788FAA9-BF14-4CCE-BF5A-9007DB50860C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Storage", "Storage\Storage\Storage.csproj", "{4194FE34-327C-42C2-971F-6B07904E20A5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Storage-Unity", "Storage\Storage-Unity\Storage-Unity.csproj", "{8022D2AC-EA87-43DF-AC47-8FF5ED60AD24}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common", "Common\Common\Common.csproj", "{4FF29D41-36AA-4D1A-BE4E-196A697B788D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common-Unity", "Common\Common-Unity\Common-Unity.csproj", "{19B6BC25-1EF1-4D02-99ED-954AC6B84C12}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Realtime.Test", "Realtime\Realtime.Test\Realtime.Test.csproj", "{882A9419-CC5E-4CFB-B076-7561989B0A4A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Realtime", "Realtime\Realtime\Realtime.csproj", "{75A3A4EC-93B8-40C9-AE04-DF14A72525CC}"
|
||||
|
@ -33,44 +25,34 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveQuery", "LiveQuery\Live
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveQuery.Test", "LiveQuery\LiveQuery.Test\LiveQuery.Test.csproj", "{0F61B6D7-4948-4D98-B6CC-41CF33B55669}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveQuery-Unity", "LiveQuery\LiveQuery-Unity\LiveQuery-Unity.csproj", "{12482E48-C0CF-46B1-8FDD-5885D1B7DC4D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveQueryApp", "Sample\LiveQueryApp\LiveQueryApp.csproj", "{9D5E6A37-8925-48ED-B7EA-12C89291B59D}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Engine", "Engine", "{8087ABCD-629C-4EE5-9ECE-8BDAE631236F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Engine", "Engine\Engine.csproj", "{0A6AEBC9-9A36-4EA7-8F58-8B951126092D}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libs", "Libs", "{3B53EFFB-6962-4EED-88FD-F9D6E9650A2D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LC.Google.Protobuf", "Libs\Google.Protobuf\LC.Google.Protobuf.csproj", "{FA0E2CEC-4623-4119-92D9-12F2A4699F41}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LC.Newtonsoft.Json", "Libs\Newtonsoft.Json\LC.Newtonsoft.Json.csproj", "{AE39723C-03C3-423F-9086-9AA36B3587D1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Storage.Test", "Storage\Storage.Test\Storage.Test.csproj", "{07B8BAE6-CA9A-48B0-9881-F63F1F5DCE70}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{26CDAE2A-6D79-4981-8D80-3EA34FDFB134}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{26CDAE2A-6D79-4981-8D80-3EA34FDFB134}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{26CDAE2A-6D79-4981-8D80-3EA34FDFB134}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{26CDAE2A-6D79-4981-8D80-3EA34FDFB134}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8788FAA9-BF14-4CCE-BF5A-9007DB50860C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8788FAA9-BF14-4CCE-BF5A-9007DB50860C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8788FAA9-BF14-4CCE-BF5A-9007DB50860C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8788FAA9-BF14-4CCE-BF5A-9007DB50860C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4194FE34-327C-42C2-971F-6B07904E20A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4194FE34-327C-42C2-971F-6B07904E20A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4194FE34-327C-42C2-971F-6B07904E20A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4194FE34-327C-42C2-971F-6B07904E20A5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8022D2AC-EA87-43DF-AC47-8FF5ED60AD24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8022D2AC-EA87-43DF-AC47-8FF5ED60AD24}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8022D2AC-EA87-43DF-AC47-8FF5ED60AD24}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8022D2AC-EA87-43DF-AC47-8FF5ED60AD24}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4FF29D41-36AA-4D1A-BE4E-196A697B788D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4FF29D41-36AA-4D1A-BE4E-196A697B788D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4FF29D41-36AA-4D1A-BE4E-196A697B788D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4FF29D41-36AA-4D1A-BE4E-196A697B788D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{19B6BC25-1EF1-4D02-99ED-954AC6B84C12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{19B6BC25-1EF1-4D02-99ED-954AC6B84C12}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{19B6BC25-1EF1-4D02-99ED-954AC6B84C12}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{19B6BC25-1EF1-4D02-99ED-954AC6B84C12}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{882A9419-CC5E-4CFB-B076-7561989B0A4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{882A9419-CC5E-4CFB-B076-7561989B0A4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{882A9419-CC5E-4CFB-B076-7561989B0A4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -91,10 +73,6 @@ Global
|
|||
{0F61B6D7-4948-4D98-B6CC-41CF33B55669}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0F61B6D7-4948-4D98-B6CC-41CF33B55669}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0F61B6D7-4948-4D98-B6CC-41CF33B55669}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{12482E48-C0CF-46B1-8FDD-5885D1B7DC4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{12482E48-C0CF-46B1-8FDD-5885D1B7DC4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{12482E48-C0CF-46B1-8FDD-5885D1B7DC4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{12482E48-C0CF-46B1-8FDD-5885D1B7DC4D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9D5E6A37-8925-48ED-B7EA-12C89291B59D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9D5E6A37-8925-48ED-B7EA-12C89291B59D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9D5E6A37-8925-48ED-B7EA-12C89291B59D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -103,22 +81,32 @@ Global
|
|||
{0A6AEBC9-9A36-4EA7-8F58-8B951126092D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0A6AEBC9-9A36-4EA7-8F58-8B951126092D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0A6AEBC9-9A36-4EA7-8F58-8B951126092D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{FA0E2CEC-4623-4119-92D9-12F2A4699F41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FA0E2CEC-4623-4119-92D9-12F2A4699F41}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FA0E2CEC-4623-4119-92D9-12F2A4699F41}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FA0E2CEC-4623-4119-92D9-12F2A4699F41}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AE39723C-03C3-423F-9086-9AA36B3587D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AE39723C-03C3-423F-9086-9AA36B3587D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AE39723C-03C3-423F-9086-9AA36B3587D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AE39723C-03C3-423F-9086-9AA36B3587D1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{07B8BAE6-CA9A-48B0-9881-F63F1F5DCE70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{07B8BAE6-CA9A-48B0-9881-F63F1F5DCE70}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{07B8BAE6-CA9A-48B0-9881-F63F1F5DCE70}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{07B8BAE6-CA9A-48B0-9881-F63F1F5DCE70}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{26CDAE2A-6D79-4981-8D80-3EA34FDFB134} = {319A9989-3B69-4AD0-9E43-F6D31C1D2A4A}
|
||||
{8788FAA9-BF14-4CCE-BF5A-9007DB50860C} = {076871D0-BE1F-4AF0-B83E-697C71C0C3B3}
|
||||
{4194FE34-327C-42C2-971F-6B07904E20A5} = {076871D0-BE1F-4AF0-B83E-697C71C0C3B3}
|
||||
{8022D2AC-EA87-43DF-AC47-8FF5ED60AD24} = {076871D0-BE1F-4AF0-B83E-697C71C0C3B3}
|
||||
{4FF29D41-36AA-4D1A-BE4E-196A697B788D} = {375B854F-C239-4503-868A-7F04C40582E5}
|
||||
{19B6BC25-1EF1-4D02-99ED-954AC6B84C12} = {375B854F-C239-4503-868A-7F04C40582E5}
|
||||
{882A9419-CC5E-4CFB-B076-7561989B0A4A} = {319A9989-3B69-4AD0-9E43-F6D31C1D2A4A}
|
||||
{75A3A4EC-93B8-40C9-AE04-DF14A72525CC} = {319A9989-3B69-4AD0-9E43-F6D31C1D2A4A}
|
||||
{A716EFC7-9220-4A9A-9F73-B816A0787F77} = {2D980281-F060-4363-AB7A-D4B6C30ADDBB}
|
||||
{02D23AC7-FBF7-49ED-994F-C1D0D3C3ABFE} = {A1A24E0F-6901-4A9A-9BB8-4F586BC7EE17}
|
||||
{0F61B6D7-4948-4D98-B6CC-41CF33B55669} = {A1A24E0F-6901-4A9A-9BB8-4F586BC7EE17}
|
||||
{12482E48-C0CF-46B1-8FDD-5885D1B7DC4D} = {A1A24E0F-6901-4A9A-9BB8-4F586BC7EE17}
|
||||
{9D5E6A37-8925-48ED-B7EA-12C89291B59D} = {2D980281-F060-4363-AB7A-D4B6C30ADDBB}
|
||||
{0A6AEBC9-9A36-4EA7-8F58-8B951126092D} = {8087ABCD-629C-4EE5-9ECE-8BDAE631236F}
|
||||
{FA0E2CEC-4623-4119-92D9-12F2A4699F41} = {3B53EFFB-6962-4EED-88FD-F9D6E9650A2D}
|
||||
{AE39723C-03C3-423F-9086-9AA36B3587D1} = {3B53EFFB-6962-4EED-88FD-F9D6E9650A2D}
|
||||
{07B8BAE6-CA9A-48B0-9881-F63F1F5DCE70} = {076871D0-BE1F-4AF0-B83E-697C71C0C3B3}
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
version = 0.7.1
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# coding=utf8
|
||||
import os
|
||||
import re
|
||||
|
||||
NAMESPACE_PREFIX = 'LC'
|
||||
|
||||
LIB_NAMES = [
|
||||
'Newtonsoft',
|
||||
'Google'
|
||||
]
|
||||
|
||||
SDK_ROOT = '../'
|
||||
|
||||
REPLACES = {}
|
||||
|
||||
for name in LIB_NAMES:
|
||||
REPLACES['namespace %s' % name] = 'namespace %s.%s' % (NAMESPACE_PREFIX, name)
|
||||
REPLACES['using %s' % name] = 'using %s.%s' % (NAMESPACE_PREFIX, name)
|
||||
REPLACES['global::%s' % name] = 'global::%s.%s' % (NAMESPACE_PREFIX, name)
|
||||
REPLACES['using static %s' % name] = 'using static %s.%s' % (NAMESPACE_PREFIX, name)
|
||||
REPLACES[' = %s' % name] = ' = %s.%s' % (NAMESPACE_PREFIX, name)
|
||||
|
||||
for path, dirs, files in os.walk(SDK_ROOT):
|
||||
files = [f for f in files if f.endswith('.cs')]
|
||||
for file in files:
|
||||
filepath = os.path.join(path, file)
|
||||
print(filepath)
|
||||
with open(filepath, 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
for (k, v) in REPLACES.items():
|
||||
regex = r'\b%s\b' % k
|
||||
content = re.sub(regex, v, content)
|
||||
with open(filepath, 'w') as f:
|
||||
f.write(content)
|
Loading…
Reference in New Issue