com.taptap.sdk.relationlite 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-lite-unity:4.8.0-beta.1"/>
7
+ <androidPackage spec="com.taptap.sdk:tap-relation-lite-unity:4.8.1-beta.7"/>
8
8
  </androidPackages>
9
9
  </dependencies>
@@ -7,6 +7,7 @@ using TapSDK.Core.Internal;
7
7
  using TapSDK.Core.Internal.Utils;
8
8
  using Newtonsoft.Json;
9
9
  using System.Runtime.InteropServices;
10
+ using TapSDK.Core.Internal.Log;
10
11
  #if UNITY_IOS
11
12
  using UnityEngine.iOS;
12
13
  #endif
@@ -32,23 +33,12 @@ namespace TapSDK.RelationLite
32
33
  {
33
34
  _clientId = clientId;
34
35
  _regionType = regionType;
35
- Debug.Log($"TapTapRelationLite Init with clientId: {clientId}, regionType: {regionType}");
36
- }
37
-
38
- public void SetOrientation(int orientation)
39
- {
40
- EngineBridge.GetInstance().CallHandler(new Command.Builder()
41
- .Service(SERVICE_NAME)
42
- .Method("setOrientation")
43
- .Args("orientation", orientation)
44
- .Callback(false)
45
- .OnceTime(true)
46
- .CommandBuilder());
36
+ TapLog.Log($"TapTapRelationLite Init with clientId: {clientId}, regionType: {regionType}");
47
37
  }
48
38
 
49
39
  public void InviteGame()
50
40
  {
51
- Debug.Log("TapTapRelationLite InviteGame");
41
+ TapLog.Log("TapTapRelationLite InviteGame");
52
42
 
53
43
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
54
44
  .Service(SERVICE_NAME)
@@ -60,7 +50,7 @@ namespace TapSDK.RelationLite
60
50
 
61
51
  public void InviteTeam(string teamId)
62
52
  {
63
- Debug.Log($"TapTapRelationLite InviteTeam with teamId: {teamId}");
53
+ TapLog.Log($"TapTapRelationLite InviteTeam with teamId: {teamId}");
64
54
 
65
55
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
66
56
  .Service(SERVICE_NAME)
@@ -73,7 +63,7 @@ namespace TapSDK.RelationLite
73
63
 
74
64
  public void GetFriendsList(string nextPageToken, ITapTapRelationLiteRequestCallback callback)
75
65
  {
76
- Debug.Log($"TapTapRelationLite GetFriendsList with nextPageToken: {nextPageToken}");
66
+ TapLog.Log($"TapTapRelationLite GetFriendsList with nextPageToken: {nextPageToken}");
77
67
 
78
68
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
79
69
  .Service(SERVICE_NAME)
@@ -109,7 +99,7 @@ namespace TapSDK.RelationLite
109
99
  catch (Exception e)
110
100
  {
111
101
  callback.OnFriendsListResult("", new List<RelationLiteUserItem>());
112
- Debug.LogError($"GetFriendsList parse result error: {e.Message}");
102
+ TapLog.Error($"GetFriendsList parse result error: {e.Message}");
113
103
  }
114
104
  });
115
105
 
@@ -117,7 +107,7 @@ namespace TapSDK.RelationLite
117
107
 
118
108
  public void GetFollowingList(string nextPageToken, ITapTapRelationLiteRequestCallback callback)
119
109
  {
120
- Debug.Log($"TapTapRelationLite GetFollowingList with nextPageToken: {nextPageToken}");
110
+ TapLog.Log($"TapTapRelationLite GetFollowingList with nextPageToken: {nextPageToken}");
121
111
 
122
112
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
123
113
  .Service(SERVICE_NAME)
@@ -153,7 +143,7 @@ namespace TapSDK.RelationLite
153
143
  catch (Exception e)
154
144
  {
155
145
  callback.OnFollowingListResult("", new List<RelationLiteUserItem>());
156
- Debug.LogError($"GetFollowingList parse result error: {e.Message}");
146
+ TapLog.Error($"GetFollowingList parse result error: {e.Message}");
157
147
  }
158
148
  });
159
149
 
@@ -161,7 +151,7 @@ namespace TapSDK.RelationLite
161
151
 
162
152
  public void GetFansList(string nextPageToken, ITapTapRelationLiteRequestCallback callback)
163
153
  {
164
- Debug.Log($"TapTapRelationLite GetFansList with nextPageToken: {nextPageToken}");
154
+ TapLog.Log($"TapTapRelationLite GetFansList with nextPageToken: {nextPageToken}");
165
155
 
166
156
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
167
157
  .Service(SERVICE_NAME)
@@ -197,7 +187,7 @@ namespace TapSDK.RelationLite
197
187
  catch (Exception e)
198
188
  {
199
189
  callback.OnFansListResult("", new List<RelationLiteUserItem>());
200
- Debug.LogError($"GetFansList parse result error: {e.Message}");
190
+ TapLog.Error($"GetFansList parse result error: {e.Message}");
201
191
  }
202
192
  });
203
193
 
@@ -205,7 +195,7 @@ namespace TapSDK.RelationLite
205
195
 
206
196
  public void SyncRelationshipWithOpenId(int action, string nickname, string friendNickname, string friendOpenId, ITapTapRelationLiteRequestCallback callback)
207
197
  {
208
- Debug.Log($"TapTapRelationLite SyncRelationshipWithOpenId with action: {action}, nickname: {nickname}, friendNickname: {friendNickname}, friendOpenId: {friendOpenId}");
198
+ TapLog.Log($"TapTapRelationLite SyncRelationshipWithOpenId with action: {action}, nickname: {nickname}, friendNickname: {friendNickname}, friendOpenId: {friendOpenId}");
209
199
 
210
200
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
211
201
  .Service(SERVICE_NAME)
@@ -251,7 +241,7 @@ namespace TapSDK.RelationLite
251
241
  catch (Exception e)
252
242
  {
253
243
  callback.OnSyncRelationshipFail(e.Message, "", "");
254
- Debug.LogError($"SyncRelationshipWithOpenId parse result error: {e.Message}");
244
+ TapLog.Error($"SyncRelationshipWithOpenId parse result error: {e.Message}");
255
245
  }
256
246
  });
257
247
 
@@ -259,7 +249,7 @@ namespace TapSDK.RelationLite
259
249
 
260
250
  public void SyncRelationshipWithUnionId(int action, string nickname, string friendNickname, string friendUnionId, ITapTapRelationLiteRequestCallback callback)
261
251
  {
262
- Debug.Log($"TapTapRelationLite SyncRelationshipWithUnionId with action: {action}, nickname: {nickname}, friendNickname: {friendNickname}, friendUnionId: {friendUnionId}");
252
+ TapLog.Log($"TapTapRelationLite SyncRelationshipWithUnionId with action: {action}, nickname: {nickname}, friendNickname: {friendNickname}, friendUnionId: {friendUnionId}");
263
253
 
264
254
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
265
255
  .Service(SERVICE_NAME)
@@ -305,7 +295,7 @@ namespace TapSDK.RelationLite
305
295
  catch (Exception e)
306
296
  {
307
297
  callback.OnSyncRelationshipFail(e.Message, "", "");
308
- Debug.LogError($"SyncRelationshipWithOpenId parse result error: {e.Message}");
298
+ TapLog.Error($"SyncRelationshipWithOpenId parse result error: {e.Message}");
309
299
  }
310
300
  });
311
301
 
@@ -313,7 +303,7 @@ namespace TapSDK.RelationLite
313
303
 
314
304
  public void ShowTapUserProfile(string openId, string unionId)
315
305
  {
316
- Debug.Log($"TapTapRelationLite ShowTapUserProfile with openId: {openId}, unionId: {unionId}");
306
+ TapLog.Log($"TapTapRelationLite ShowTapUserProfile with openId: {openId}, unionId: {unionId}");
317
307
 
318
308
  EngineBridge.GetInstance().CallHandler(new Command.Builder()
319
309
  .Service(SERVICE_NAME)
@@ -332,7 +322,7 @@ namespace TapSDK.RelationLite
332
322
  if (!callbacks.Contains(callback))
333
323
  {
334
324
  callbacks.Add(callback);
335
- Debug.Log("TapTapRelationLite RegisterRelationLiteCallback");
325
+ TapLog.Log("TapTapRelationLite RegisterRelationLiteCallback");
336
326
  }
337
327
  }
338
328
 
@@ -357,10 +347,10 @@ namespace TapSDK.RelationLite
357
347
  {
358
348
  return;
359
349
  }
360
- Debug.Log("TapSdk4UnityDemo -->> Bridge Callback == " + JsonConvert.SerializeObject(result));
350
+ TapLog.Log("TapSdk4UnityDemo -->> Bridge Callback == " + JsonConvert.SerializeObject(result));
361
351
 
362
352
  });
363
- Debug.Log("TapTapRelationLite UnregisterRelationLiteCallback");
353
+ TapLog.Log("TapTapRelationLite UnregisterRelationLiteCallback");
364
354
  }
365
355
  }
366
356
 
@@ -388,7 +378,7 @@ namespace TapSDK.RelationLite
388
378
  {
389
379
  return;
390
380
  }
391
- Debug.Log("TapSdk4UnityDemo -->> Bridge Callback == " + JsonConvert.SerializeObject(result));
381
+ TapLog.Log("TapSdk4UnityDemo -->> Bridge Callback == " + JsonConvert.SerializeObject(result));
392
382
  var dic = Json.Deserialize(result.content) as Dictionary<string, object>;
393
383
  var code = SafeDictionary.GetValue<int>(dic, "relation_lite_result_code");
394
384
 
@@ -399,7 +389,7 @@ namespace TapSDK.RelationLite
399
389
 
400
390
  });
401
391
 
402
- Debug.Log("TapTapRelationLite InitRegisterCallBack");
392
+ TapLog.Log("TapTapRelationLite InitRegisterCallBack");
403
393
  }
404
394
  }
405
395
  }
@@ -36,11 +36,6 @@ namespace TapSDK.RelationLite.Internal
36
36
  _impl?.Init(clientId, regionType);
37
37
  }
38
38
 
39
- public void SetOrientation(int orientation)
40
- {
41
- _impl?.SetOrientation(orientation);
42
- }
43
-
44
39
  public void InviteGame()
45
40
  {
46
41
  _impl?.InviteGame();
@@ -7,8 +7,6 @@ namespace TapSDK.RelationLite
7
7
  {
8
8
  void Init(string clientId, TapTapRegionType regionType);
9
9
 
10
- void SetOrientation(int orientation);
11
-
12
10
  void InviteGame();
13
11
 
14
12
  void InviteTeam(string teamId);
@@ -22,11 +22,6 @@ namespace TapSDK.RelationLite
22
22
  TapTapRelationLiteManager.Instance.Init(clientId, regionType);
23
23
  }
24
24
 
25
- public static void SetOrientation(int orientation)
26
- {
27
- TapTapRelationLiteManager.Instance.SetOrientation(orientation);
28
- }
29
-
30
25
  public static void InviteGame()
31
26
  {
32
27
  TapTapRelationLiteManager.Instance.InviteGame();
@@ -77,6 +72,6 @@ namespace TapSDK.RelationLite
77
72
  TapTapRelationLiteManager.Instance.UnregisterRelationLiteCallback(callback);
78
73
  }
79
74
 
80
- public static readonly string Version = "4.8.0-beta.1";
75
+ public static readonly string Version = "4.8.1";
81
76
  }
82
77
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "com.taptap.sdk.relationlite",
3
- "displayName": "TapTapSDK RelationLite",
4
- "description": "TapTapSDK RelationLite",
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.relationlite",
3
+ "displayName": "TapTapSDK RelationLite",
4
+ "description": "TapTapSDK RelationLite",
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
  }