Skip to content

Commit

Permalink
CloudDB update
Browse files Browse the repository at this point in the history
com.huawei.agconnect:agconnect-cloud-database:1.5.5.300 => 1.9.1.301
  • Loading branch information
alihan98ersoy authored and Andronovo-bit committed Mar 22, 2024
1 parent a24da05 commit 6f443d6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Assets/Huawei/Demos/CloudDB/CloudDBDemo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using HmsPlugin;

using HuaweiMobileServices.AuthService;
using HuaweiMobileServices.Base;
using HuaweiMobileServices.CloudDB;
using HuaweiMobileServices.Common;
using HuaweiMobileServices.Id;
Expand Down Expand Up @@ -330,4 +331,18 @@ void OnOnCloudDBZoneSnapshotException(AGConnectCloudDBException exception)
HMSCloudDBManager.Instance.MRegister = HMSCloudDBManager.Instance.MCloudDBZone.SubscribeSnapshot(cloudDBZoneQuery, cloudDBZoneQueryPolicy, OnCloudDBZoneSnapshot, OnCloudDBZoneSnapshotException);
}

public void ExecuteServerStatusQuery()
{
Debug.Log(TAG + " ExecuteServerStatusQuery");
ITask<ServerStatus> serverStatusTask = HMSCloudDBManager.Instance.MCloudDBZone.ExecuteServerStatusQuery();

serverStatusTask.AddOnSuccessListener(serverStatus =>
{
Debug.Log(TAG + " ExecuteServerStatusQuery serverStatus.ServerTimestamp:" + serverStatus.ServerTimestamp);
});
serverStatusTask.AddOnFailureListener(e =>
{
Debug.LogError(TAG + " ExecuteServerStatusQuery AddOnFailureListener:"+e);
});
}
}
Binary file modified Assets/Huawei/Dlls/HuaweiMobileServices.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/Huawei/Editor/Utils/HMSGradleWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public HMSGradleWorker()
{ IAPToggleEditor.IAPKitEnabled, new [] { "com.huawei.hms:iap:6.13.0.300" } },
{ PushToggleEditor.PushKitEnabled, new [] { "com.huawei.hms:push:6.11.0.300" } },
{ RemoteConfigToggleEditor.RemoteConfigEnabled, new [] { "com.huawei.agconnect:agconnect-remoteconfig:1.6.3.300" } },
{ CloudDBToggleEditor.CloudDBEnabled, new [] { "com.huawei.agconnect:agconnect-cloud-database:1.5.5.300" } },
{ CloudDBToggleEditor.CloudDBEnabled, new [] { "com.huawei.agconnect:agconnect-cloud-database:1.9.1.301" } },
{ AuthToggleEditor.AuthEnabled, new [] { "com.huawei.agconnect:agconnect-auth:1.9.1.301" } },
{ NearbyServiceToggleEditor.NearbyServiceEnabled, new [] { "com.huawei.hms:nearby:6.2.0.301" } },
{ AppMessagingToggleEditor.AppMessagingEnabled, new [] { "com.huawei.agconnect:agconnect-appmessaging:1.6.3.300" } },
Expand Down

0 comments on commit 6f443d6

Please sign in to comment.