diff --git a/Common/Common/Common.csproj b/Common/Common/Common.csproj
index ebc80cc..c7748fa 100644
--- a/Common/Common/Common.csproj
+++ b/Common/Common/Common.csproj
@@ -12,7 +12,9 @@
+
+
diff --git a/Engine/Controllers/LCPingController.cs b/Engine/Controllers/LCPingController.cs
index 8e17193..cb37ac6 100644
--- a/Engine/Controllers/LCPingController.cs
+++ b/Engine/Controllers/LCPingController.cs
@@ -14,7 +14,7 @@ namespace LeanCloud.Engine {
return new Dictionary {
{ "runtime", $"dotnet-{Environment.Version}" },
- { "version", LCApplication.SDKVersion }
+ { "version", LCInternalApplication.SDKVersion }
};
}
}
diff --git a/Engine/Engine.csproj b/Engine/Engine.csproj
index 437a1d6..4101724 100644
--- a/Engine/Engine.csproj
+++ b/Engine/Engine.csproj
@@ -8,8 +8,7 @@
-
-
+
diff --git a/Engine/LCEngine.cs b/Engine/LCEngine.cs
index e3a2cce..e9cf772 100644
--- a/Engine/LCEngine.cs
+++ b/Engine/LCEngine.cs
@@ -99,7 +99,7 @@ namespace LeanCloud.Engine {
LCApplication.Initialize(Environment.GetEnvironmentVariable("LEANCLOUD_APP_ID"),
Environment.GetEnvironmentVariable("LEANCLOUD_APP_KEY"),
Environment.GetEnvironmentVariable("LEANCLOUD_API_SERVER"));
- LCApplication.AddHeader(LCHookKeyName, Environment.GetEnvironmentVariable("LEANCLOUD_APP_HOOK_KEY"));
+ LCInternalApplication.AddHeader(LCHookKeyName, Environment.GetEnvironmentVariable("LEANCLOUD_APP_HOOK_KEY"));
Assembly assembly = Assembly.GetCallingAssembly();
ClassHooks = assembly.GetTypes()
diff --git a/Libs/Google.Protobuf/LC.Google.Protobuf.csproj b/Libs/Google.Protobuf/LC.Google.Protobuf.csproj
index e3c71bc..8616da6 100644
--- a/Libs/Google.Protobuf/LC.Google.Protobuf.csproj
+++ b/Libs/Google.Protobuf/LC.Google.Protobuf.csproj
@@ -23,7 +23,7 @@
True
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
- 0.7.1
+ 0.7.2
LC.Google.Protobuf
diff --git a/Libs/Newtonsoft.Json.AOT/LC.Newtonsoft.Json.AOT.csproj b/Libs/Newtonsoft.Json.AOT/LC.Newtonsoft.Json.AOT.csproj
index a0de028..241a756 100644
--- a/Libs/Newtonsoft.Json.AOT/LC.Newtonsoft.Json.AOT.csproj
+++ b/Libs/Newtonsoft.Json.AOT/LC.Newtonsoft.Json.AOT.csproj
@@ -1,6 +1,5 @@
- netstandard2.0
AOT
netstandard2.0;net45;portable-net45+win8+wpa81+wp8
$(LibraryFrameworks)
@@ -35,7 +34,7 @@
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
false
- 0.7.1
+ 0.7.2
diff --git a/Libs/Newtonsoft.Json/LC.Newtonsoft.Json.csproj b/Libs/Newtonsoft.Json/LC.Newtonsoft.Json.csproj
index e0227a3..a048c17 100644
--- a/Libs/Newtonsoft.Json/LC.Newtonsoft.Json.csproj
+++ b/Libs/Newtonsoft.Json/LC.Newtonsoft.Json.csproj
@@ -30,7 +30,7 @@
true
snupkg
Newtonsoft.Json.ruleset
- 0.7.1
+ 0.7.2
diff --git a/LiveQuery/LiveQuery.Standard/LiveQuery.Standard.csproj b/LiveQuery/LiveQuery.Standard/LiveQuery.Standard.csproj
new file mode 100644
index 0000000..6f55497
--- /dev/null
+++ b/LiveQuery/LiveQuery.Standard/LiveQuery.Standard.csproj
@@ -0,0 +1,14 @@
+
+
+
+ netstandard2.0
+ 0.7.2
+ LiveQuery.Standard
+ true
+
+
+
+
+
+
+
diff --git a/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj b/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj
index 95c6980..ed1bb7e 100644
--- a/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj
+++ b/LiveQuery/LiveQuery.Test/LiveQuery.Test.csproj
@@ -14,6 +14,6 @@
-
+
diff --git a/LiveQuery/LiveQuery.Unity/LiveQuery.Unity.csproj b/LiveQuery/LiveQuery.Unity/LiveQuery.Unity.csproj
new file mode 100644
index 0000000..c29abae
--- /dev/null
+++ b/LiveQuery/LiveQuery.Unity/LiveQuery.Unity.csproj
@@ -0,0 +1,14 @@
+
+
+
+ netstandard2.0
+ 0.7.2
+ LiveQuery.Unity
+ true
+
+
+
+
+
+
+
diff --git a/LiveQuery/LiveQuery/LCLiveQuery.cs b/LiveQuery/LiveQuery/LCLiveQuery.cs
index da077bb..8389832 100644
--- a/LiveQuery/LiveQuery/LCLiveQuery.cs
+++ b/LiveQuery/LiveQuery/LCLiveQuery.cs
@@ -80,7 +80,7 @@ namespace LeanCloud.LiveQuery {
data.Add("sessionToken", user.SessionToken);
}
string path = "LiveQuery/subscribe";
- Dictionary result = await LCApplication.HttpClient.Post>(path,
+ Dictionary result = await LCInternalApplication.HttpClient.Post>(path,
data: data);
if (result.TryGetValue("query_id", out object id)) {
Id = id as string;
@@ -95,7 +95,7 @@ namespace LeanCloud.LiveQuery {
{ "query_id", Id }
};
string path = "LiveQuery/unsubscribe";
- await LCApplication.HttpClient.Post>(path,
+ await LCInternalApplication.HttpClient.Post>(path,
data: data);
// 移除
liveQueries.Remove(Id);
@@ -104,7 +104,7 @@ namespace LeanCloud.LiveQuery {
private static async Task Login() {
Dictionary data = new Dictionary {
{ "cmd", "login" },
- { "appId", LCApplication.AppId },
+ { "appId", LCInternalApplication.AppId },
{ "installationId", DeviceId },
{ "clientTs", DateTimeOffset.Now.ToUnixTimeMilliseconds() },
{ "service", 1 }
diff --git a/Realtime/Realtime.AOT/Realtime.AOT.csproj b/Realtime/Realtime.AOT/Realtime.AOT.csproj
index 657bcef..2c0cc62 100644
--- a/Realtime/Realtime.AOT/Realtime.AOT.csproj
+++ b/Realtime/Realtime.AOT/Realtime.AOT.csproj
@@ -2,7 +2,7 @@
netstandard2.0
- 0.7.1
+ 0.7.2
Realtime
true
diff --git a/Realtime/Realtime.Standard/Realtime.Standard.csproj b/Realtime/Realtime.Standard/Realtime.Standard.csproj
new file mode 100644
index 0000000..96ad1f7
--- /dev/null
+++ b/Realtime/Realtime.Standard/Realtime.Standard.csproj
@@ -0,0 +1,14 @@
+
+
+
+ netstandard2.0
+ 0.7.2
+ Realtime.Standard
+ true
+
+
+
+
+
+
+
diff --git a/Realtime/Realtime.Test/ConversationQuery.cs b/Realtime/Realtime.Test/ConversationQuery.cs
index dfdd125..b8b72ce 100644
--- a/Realtime/Realtime.Test/ConversationQuery.cs
+++ b/Realtime/Realtime.Test/ConversationQuery.cs
@@ -43,19 +43,19 @@ namespace Realtime.Test {
}
}
- [Test]
- public async Task QueryCompact() {
- string memberId = "m1";
- LCIMConversationQuery query = new LCIMConversationQuery(client)
- .WhereEqualTo("m", memberId);
- query.Compact = true;
- ReadOnlyCollection conversations = await query.Find();
- foreach (LCIMConversation conversation in conversations) {
- Assert.True(conversation.MemberIds.Count == 0);
- await conversation.Fetch();
- Assert.True(conversation.MemberIds.Count > 0);
- }
- }
+ //[Test]
+ //public async Task QueryCompact() {
+ // string memberId = "m1";
+ // LCIMConversationQuery query = new LCIMConversationQuery(client)
+ // .WhereEqualTo("m", memberId);
+ // query.Compact = true;
+ // ReadOnlyCollection conversations = await query.Find();
+ // foreach (LCIMConversation conversation in conversations) {
+ // Assert.True(conversation.MemberIds.Count == 0);
+ // await conversation.Fetch();
+ // Assert.True(conversation.MemberIds.Count > 0);
+ // }
+ //}
[Test]
public async Task QueryWithLastMessage() {
diff --git a/Realtime/Realtime.Test/LocalSignatureFactory.cs b/Realtime/Realtime.Test/LocalSignatureFactory.cs
index db59c8e..1483914 100644
--- a/Realtime/Realtime.Test/LocalSignatureFactory.cs
+++ b/Realtime/Realtime.Test/LocalSignatureFactory.cs
@@ -14,7 +14,7 @@ namespace Realtime.Test {
public Task CreateConnectSignature(string clientId) {
long timestamp = DateTimeOffset.Now.ToUnixTimeSeconds();
string nonce = NewNonce();
- string signature = GenerateSignature(LCApplication.AppId, clientId, string.Empty, timestamp.ToString(), nonce);
+ string signature = GenerateSignature(LCInternalApplication.AppId, clientId, string.Empty, timestamp.ToString(), nonce);
return Task.FromResult(new LCIMSignature {
Signature = signature,
Timestamp = timestamp,
@@ -31,7 +31,7 @@ namespace Realtime.Test {
}
long timestamp = DateTimeOffset.Now.ToUnixTimeSeconds();
string nonce = NewNonce();
- string signature = GenerateSignature(LCApplication.AppId, clientId, sortedMemberIds, timestamp.ToString(), nonce);
+ string signature = GenerateSignature(LCInternalApplication.AppId, clientId, sortedMemberIds, timestamp.ToString(), nonce);
return Task.FromResult(new LCIMSignature {
Signature = signature,
Timestamp = timestamp,
@@ -48,7 +48,7 @@ namespace Realtime.Test {
}
long timestamp = DateTimeOffset.Now.ToUnixTimeSeconds();
string nonce = NewNonce();
- string signature = GenerateSignature(LCApplication.AppId, clientId, conversationId, sortedMemberIds, timestamp.ToString(), nonce, action);
+ string signature = GenerateSignature(LCInternalApplication.AppId, clientId, conversationId, sortedMemberIds, timestamp.ToString(), nonce, action);
return Task.FromResult(new LCIMSignature {
Signature = signature,
Timestamp = timestamp,
@@ -65,7 +65,7 @@ namespace Realtime.Test {
}
long timestamp = DateTimeOffset.Now.ToUnixTimeSeconds();
string nonce = NewNonce();
- string signature = GenerateSignature(LCApplication.AppId, clientId, conversationId, sortedMemberIds, timestamp.ToString(), nonce, action);
+ string signature = GenerateSignature(LCInternalApplication.AppId, clientId, conversationId, sortedMemberIds, timestamp.ToString(), nonce, action);
return Task.FromResult(new LCIMSignature {
Signature = signature,
Timestamp = timestamp,
diff --git a/Realtime/Realtime.Test/Realtime.Test.csproj b/Realtime/Realtime.Test/Realtime.Test.csproj
index 64e62f1..eb8d1af 100644
--- a/Realtime/Realtime.Test/Realtime.Test.csproj
+++ b/Realtime/Realtime.Test/Realtime.Test.csproj
@@ -14,6 +14,7 @@
-
+
+
diff --git a/Realtime/Realtime.Test/Utils.cs b/Realtime/Realtime.Test/Utils.cs
index 77e42d4..526cf35 100644
--- a/Realtime/Realtime.Test/Utils.cs
+++ b/Realtime/Realtime.Test/Utils.cs
@@ -6,7 +6,9 @@ namespace Realtime.Test {
public static class Utils {
internal static void SetUp() {
LCLogger.LogDelegate += Print;
- LCApplication.Initialize("3zWMOXuO9iSdnjXM942i6DdI-gzGzoHsz", "bkwiNq4Tj417eUaHlTWS5sPm", "https://3zwmoxuo.lc-cn-n1-shared.com");
+ LCApplication.Initialize("3zWMOXuO9iSdnjXM942i6DdI-gzGzoHsz",
+ "bkwiNq4Tj417eUaHlTWS5sPm",
+ "https://3zwmoxuo.lc-cn-n1-shared.com");
}
internal static void TearDown() {
diff --git a/Realtime/Realtime.Unity/Realtime.Unity.csproj b/Realtime/Realtime.Unity/Realtime.Unity.csproj
new file mode 100644
index 0000000..5f7ffcc
--- /dev/null
+++ b/Realtime/Realtime.Unity/Realtime.Unity.csproj
@@ -0,0 +1,14 @@
+
+
+
+ netstandard2.0
+ 0.7.2
+ Realtime.Unity
+ true
+
+
+
+
+
+
+
diff --git a/Realtime/Realtime/Internal/Connection/LCHeartBeat.cs b/Realtime/Realtime/Internal/Connection/LCHeartBeat.cs
index d82e53e..0948993 100644
--- a/Realtime/Realtime/Internal/Connection/LCHeartBeat.cs
+++ b/Realtime/Realtime/Internal/Connection/LCHeartBeat.cs
@@ -56,7 +56,7 @@ namespace LeanCloud.Realtime.Internal.Connection {
// 发送 ping 包
GenericCommand command = new GenericCommand {
Cmd = CommandType.Echo,
- AppId = LCApplication.AppId,
+ AppId = LCInternalApplication.AppId,
PeerId = connection.id
};
try {
diff --git a/Realtime/Realtime/Internal/Controller/LCIMController.cs b/Realtime/Realtime/Internal/Controller/LCIMController.cs
index 1a6d933..e3779fc 100644
--- a/Realtime/Realtime/Internal/Controller/LCIMController.cs
+++ b/Realtime/Realtime/Internal/Controller/LCIMController.cs
@@ -15,7 +15,7 @@ namespace LeanCloud.Realtime.Internal.Controller {
protected LCConnection Connection {
get {
- return LCRealtime.GetConnection(LCApplication.AppId);
+ return LCRealtime.GetConnection(LCInternalApplication.AppId);
}
}
@@ -28,7 +28,7 @@ namespace LeanCloud.Realtime.Internal.Controller {
protected GenericCommand NewCommand(CommandType cmd) {
return new GenericCommand {
Cmd = cmd,
- AppId = LCApplication.AppId,
+ AppId = LCInternalApplication.AppId,
PeerId = Client.Id,
};
}
diff --git a/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs b/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs
index 4264adf..99062fb 100644
--- a/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs
+++ b/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs
@@ -284,7 +284,7 @@ namespace LeanCloud.Realtime.Internal.Controller {
{ "client_id", Client.Id },
{ "cid", convId }
};
- Dictionary response = await LCApplication.HttpClient.Get>(path,
+ Dictionary response = await LCInternalApplication.HttpClient.Get>(path,
headers: headers, queryParams: queryParams);
List