Skip to content

Commit

Permalink
chore: 整理工程目录
Browse files Browse the repository at this point in the history
  • Loading branch information
onerain88 committed Apr 30, 2020
1 parent cb98ff6 commit 8b6838b
Show file tree
Hide file tree
Showing 123 changed files with 387 additions and 162 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ deploy:
api_key:
secure: U33UbFuAmwE/hsI3iYpUNLJ+3wkVBq5JxGd2Z03QU9jtYN+N1GCcBJ3oIsdyYZPDmwdqjcc/s2GGiy75NDljnaeI4/p+rfVw01e6Ht/CQPNioxqxmC3645YDsg8Iao0vrSP1aevurc/5Oq+DNk+s0DQn/sBK11ZxOO7dwxqBZqJSdYs6hXhenzC3qKMRw2Wu7Px/ETGbYSXlvVfmmMkw3CVutankT/QQPZM1u6uA8bJvcoPzOoUCuTMLfa+ie4O1WUYSwkyb+yYWjNkWhTo8b/scdVZjYmJ5tIIHP04AKump2kISBvXBysCdwScMvvZplJgVHc0x9qx+vvyGEWmKa3C4xDa5t0IwDHmApe6dPRc05WL9lwDh6KtiZ4vJEFvGfKPOXRmg4fDVnRIQHazMSFvFXgcwZoiPsMWnAvl45Cardbt1JLvlfGlnJ+wQ5RPev99LwvkXooJVqtEByR9AWozyGS8XFypbpFj2xpCe7ZJSmB8h0ElDsl2zmgWPeZkcOIFcVR2+2jl6B2XOnBWukxRUpeX1x+B4rDIKtTAHrkvtGNr5bb4Q6gUAQSqpvUDqV3gXdXW19H+yrlAImBFo6nS3qm/NzsVGmK+SaRzG6oOFfejW0NPnt2MdO0GV5s6L0CYp86Zpk/GrViO7AKjMqYfM2rwJS1rnLlxpTDoPcaA=
file:
- "LeanCloud-SDK-Standard.zip"
- "LeanCloud-SDK-Unity.zip"
- "LeanCloud-SDK-Storage-Standard.zip"
- "LeanCloud-SDK-Storage-Unity.zip"
- "LeanCloud-SDK-Realtime-Standard.zip"
- "LeanCloud-SDK-Realtime-Unity.zip"
skip_cleanup: true
on:
repo: leancloud/csharp-sdk
Expand Down
36 changes: 36 additions & 0 deletions Common/Common-Unity/Common-Unity.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ReleaseVersion>0.1.0</ReleaseVersion>
</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>
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\UnityLibs\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions Common/Log/LCLogLevel.cs

This file was deleted.

51 changes: 0 additions & 51 deletions Common/Log/LCLogger.cs

This file was deleted.

43 changes: 0 additions & 43 deletions Common/Task/SingleThreadSynchronizationContext.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OUTPUT_DIRECTORY = ./Doc/
EXTRACT_ALL = yes
EXTRACT_PRIVATE = no
EXTRACT_STATIC = yes
INPUT = ./Storage/
INPUT = ./Storage/Storage/ ./Realtime/Realtime/
#Do not add anything here unless you need to. Doxygen already covers all
#common formats like .c/.cc/.cxx/.c++/.cpp/.inl/.h/.hpp
FILE_PATTERNS =
Expand Down
130 changes: 130 additions & 0 deletions Realtime/Realtime-Unity/Realtime-Unity.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ReleaseVersion>0.1.0</ReleaseVersion>
</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\Controller\LCIMGoAwayController.cs">
<Link>Internal\Controller\LCIMGoAwayController.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>
</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>..\..\UnityLibs\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions Realtime/Realtime-Unity/link/link.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<linker>
<assembly fullname="LeanCloud" preserve="all"/>
<assembly fullname="LeanCloud.Storage" preserve="all"/>
<assembly fullname="LeanCloud.Realtime" preserve="all"/>
</linker>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Threading.Tasks;
using System.Collections.Generic;
using LeanCloud;
using LeanCloud.Common;
using LeanCloud.Storage;
using LeanCloud.Realtime;

Expand Down Expand Up @@ -79,13 +78,13 @@ public async Task Send() {
await conversation.Send(textMessage);
Assert.NotNull(textMessage.Id);

LCFile image = new LCFile("hello", "../../../../assets/hello.png");
LCFile image = new LCFile("hello", "../../../../../assets/hello.png");
await image.Save();
LCIMImageMessage imageMessage = new LCIMImageMessage(image);
await conversation.Send(imageMessage);
Assert.NotNull(imageMessage.Id);

LCFile file = new LCFile("apk", "../../../../assets/test.apk");
LCFile file = new LCFile("apk", "../../../../../assets/test.apk");
await file.Save();
LCIMFileMessage fileMessage = new LCIMFileMessage(file);
await conversation.Send(fileMessage);
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Realtime\Realtime.csproj" />
<ProjectReference Include="..\..\Storage\Storage.csproj" />
<ProjectReference Include="..\..\Realtime\Realtime\Realtime.csproj" />
<ProjectReference Include="..\..\Storage\Storage\Storage.csproj" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj" />
<ProjectReference Include="..\Storage\Storage.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
</ItemGroup>
Expand All @@ -26,4 +22,8 @@
<Folder Include="Internal\Protocol\" />
<Folder Include="Result\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Common\Common\Common.csproj" />
<ProjectReference Include="..\..\Storage\Storage\Storage.csproj" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Common\Common.csproj" />
<ProjectReference Include="..\..\Realtime\Realtime.csproj" />
<ProjectReference Include="..\..\Storage\Storage.csproj" />
<ProjectReference Include="..\..\Realtime\Realtime\Realtime.csproj" />
</ItemGroup>
</Project>
Loading

0 comments on commit 8b6838b

Please sign in to comment.