com.taptap.sdk.cloudsave 4.10.0-beta.3 → 4.10.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
using System;
|
|
2
2
|
using System.Collections.Generic;
|
|
3
3
|
using System.Threading.Tasks;
|
|
4
4
|
using TapSDK.CloudSave.Internal;
|
|
@@ -7,7 +7,7 @@ namespace TapSDK.CloudSave
|
|
|
7
7
|
{
|
|
8
8
|
public class TapTapCloudSave
|
|
9
9
|
{
|
|
10
|
-
public static readonly string Version = "4.
|
|
10
|
+
public static readonly string Version = "4.10.0-beta.4";
|
|
11
11
|
|
|
12
12
|
public static void RegisterCloudSaveCallback(ITapCloudSaveCallback callback)
|
|
13
13
|
{
|
|
@@ -56,7 +56,7 @@ namespace TapSDK.CloudSave.Standalone
|
|
|
56
56
|
Dictionary<string, object> initConfig = new Dictionary<string, object>()
|
|
57
57
|
{
|
|
58
58
|
{ "region", region },
|
|
59
|
-
{ "log_to_console", 1 },
|
|
59
|
+
{ "log_to_console", options.enableLog ? 1 : 0 },
|
|
60
60
|
{ "log_level", 3 },
|
|
61
61
|
{ "data_dir", cacheDir },
|
|
62
62
|
{ "client_id", options.clientId },
|
|
@@ -70,6 +70,8 @@ namespace TapSDK.CloudSave.Standalone
|
|
|
70
70
|
{ "sdk_token", loginData },
|
|
71
71
|
};
|
|
72
72
|
Log(" start invoke TapSdkCloudSaveInitialize result ");
|
|
73
|
+
// C++ 初始化前设置,避免初始化日志在日志关闭后也输出
|
|
74
|
+
TapCloudSaveWrapper.TapSdkCloudSaveSetLogLevel(1, options.enableLog ? 1 : 0);
|
|
73
75
|
string config = JsonConvert.SerializeObject(initConfig);
|
|
74
76
|
int initResult = TapCloudSaveWrapper.TapSdkCloudSaveInitialize(config);
|
|
75
77
|
Log("TapSdkCloudSaveInitialize result = " + initResult);
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "com.taptap.sdk.cloudsave",
|
|
3
3
|
"displayName": "TapTapSDK CloudSave",
|
|
4
4
|
"description": "TapTapSDK CloudSave",
|
|
5
|
-
"version": "4.10.0-beta.
|
|
5
|
+
"version": "4.10.0-beta.4",
|
|
6
6
|
"unity": "2019.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.taptap.sdk.core": "4.10.0-beta.
|
|
10
|
-
"com.taptap.sdk.login": "4.10.0-beta.
|
|
9
|
+
"com.taptap.sdk.core": "4.10.0-beta.4",
|
|
10
|
+
"com.taptap.sdk.login": "4.10.0-beta.4"
|
|
11
11
|
}
|
|
12
12
|
}
|