com.taptap.sdk.relation 4.8.0-beta.1 → 4.8.1

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,9 +1,9 @@
1
- <?xml version="1.0" ?>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
2
  <dependencies>
3
3
  <androidPackages>
4
4
  <repositories>
5
5
  <repository>https://repo.maven.apache.org/maven2</repository>
6
6
  </repositories>
7
- <androidPackage spec="com.taptap.sdk:tap-relation-unity:4.8.0-beta.1"/>
7
+ <androidPackage spec="com.taptap.sdk:tap-relation-unity:4.8.1-beta.7"/>
8
8
  </androidPackages>
9
9
  </dependencies>
@@ -6,6 +6,7 @@ using UnityEngine;
6
6
  using System.Collections.Generic;
7
7
  using Newtonsoft.Json;
8
8
  using System.Runtime.InteropServices;
9
+ using TapSDK.Core.Internal.Log;
9
10
  #if UNITY_IOS
10
11
  using UnityEngine.iOS;
11
12
  #endif
@@ -27,24 +28,7 @@ namespace TapSDK.Relation.Mobile
27
28
 
28
29
  public void Init(string clientId, TapTapRegionType regionType, int screenOrientation)
29
30
  {
30
- EngineBridge.GetInstance().CallHandler(new Command.Builder()
31
- .Service(SERVICE_NAME)
32
- .Method("setOrientation")
33
- .Args("orientation", screenOrientation)
34
- .Callback(false)
35
- .OnceTime(true)
36
- .CommandBuilder());
37
- }
38
31
 
39
- public void SetOrientation(int orientation)
40
- {
41
- EngineBridge.GetInstance().CallHandler(new Command.Builder()
42
- .Service(SERVICE_NAME)
43
- .Method("setOrientation")
44
- .Args("orientation", orientation)
45
- .Callback(false)
46
- .OnceTime(true)
47
- .CommandBuilder());
48
32
  }
49
33
 
50
34
  public void StartMessenger()
@@ -132,7 +116,7 @@ namespace TapSDK.Relation.Mobile
132
116
  }
133
117
  catch (Exception e)
134
118
  {
135
- Debug.LogError($"GetNewFansCount parse result error: {e.Message}");
119
+ TapLog.Error($"GetNewFansCount parse result error: {e.Message}");
136
120
  callback(0);
137
121
  }
138
122
  });
@@ -170,7 +154,7 @@ namespace TapSDK.Relation.Mobile
170
154
  }
171
155
  catch (Exception e)
172
156
  {
173
- Debug.LogError($"GetUnreadMessageCount parse result error: {e.Message}");
157
+ TapLog.Error($"GetUnreadMessageCount parse result error: {e.Message}");
174
158
  callback(0);
175
159
  }
176
160
  });
@@ -229,7 +213,7 @@ namespace TapSDK.Relation.Mobile
229
213
  {
230
214
  return;
231
215
  }
232
- Debug.Log("TapSdk4UnityDemo -->> Bridge Callback == " + JsonConvert.SerializeObject(result));
216
+ TapLog.Log("Relation -->> Bridge Callback == " + JsonConvert.SerializeObject(result));
233
217
  var dic = Json.Deserialize(result.content) as Dictionary<string, object>;
234
218
  var code = SafeDictionary.GetValue<int>(dic, "relation_code");
235
219
  var newFansCount = SafeDictionary.GetValue<int>(dic, "new_fans_count");
@@ -32,11 +32,6 @@ namespace TapSDK.Relation.Internal
32
32
  platformWrapper?.Init(clientId, regionType, screenOrientation);
33
33
  }
34
34
 
35
- public void SetOrientation(int orientation)
36
- {
37
- platformWrapper?.SetOrientation(orientation);
38
- }
39
-
40
35
  public void StartMessenger()
41
36
  {
42
37
  platformWrapper?.StartMessenger();
@@ -7,8 +7,6 @@ namespace TapSDK.Relation
7
7
  {
8
8
  void Init(string clientId, TapTapRegionType regionType, int orientation);
9
9
 
10
- void SetOrientation(int orientation);
11
-
12
10
  void StartMessenger();
13
11
 
14
12
  void Prepare();
@@ -20,11 +20,6 @@ namespace TapSDK.Relation
20
20
  TapTapRelationManager.Instance.Init(clientId, regionType, screenOrientation);
21
21
  }
22
22
 
23
- public static void SetOrientation(int orientation)
24
- {
25
- TapTapRelationManager.Instance.SetOrientation(orientation);
26
- }
27
-
28
23
  public static void StartMessenger()
29
24
  {
30
25
  TapTapRelationManager.Instance.StartMessenger();
@@ -76,7 +71,7 @@ namespace TapSDK.Relation
76
71
  }
77
72
 
78
73
 
79
- public static readonly string Version = "4.8.0-beta.1";
74
+ public static readonly string Version = "4.8.1";
80
75
 
81
76
 
82
77
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "com.taptap.sdk.relation",
3
- "displayName": "TapTapSDK Relation",
4
- "description": "TapTapSDK Relation",
5
- "version": "4.8.0-beta.1",
6
- "unity": "2019.4",
7
- "license": "MIT",
8
- "dependencies": {
9
- "com.taptap.sdk.core": "4.8.0-beta.1",
10
- "com.taptap.sdk.login": "4.8.0-beta.1"
11
- }
2
+ "name": "com.taptap.sdk.relation",
3
+ "displayName": "TapTapSDK Relation",
4
+ "description": "TapTapSDK Relation",
5
+ "version": "4.8.1",
6
+ "unity": "2019.4",
7
+ "license": "MIT",
8
+ "dependencies": {
9
+ "com.taptap.sdk.core": "4.8.1",
10
+ "com.taptap.sdk.login": "4.8.1"
11
+ }
12
12
  }