com.taptap.sdk.compliance 4.10.5 → 4.10.6

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.
@@ -4,12 +4,12 @@
4
4
  <repositories>
5
5
  <repository>https://repo.maven.apache.org/maven2</repository>
6
6
  </repositories>
7
- <androidPackage spec="com.taptap.sdk:tap-compliance:4.10.5" />
7
+ <androidPackage spec="com.taptap.sdk:tap-compliance:4.10.6" />
8
8
  </androidPackages>
9
9
  <iosPods>
10
10
  <sources>
11
11
  <source>https://github.com/CocoaPods/Specs.git</source>
12
12
  </sources>
13
- <iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.10.5" />
13
+ <iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.10.6" />
14
14
  </iosPods>
15
15
  </dependencies>
@@ -10,7 +10,6 @@ namespace TapSDK.Compliance.Mobile.Editor {
10
10
 
11
11
  public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
12
12
  new LinkedAssembly { Fullname = "TapSDK.Compliance" },
13
- new LinkedAssembly { Fullname = "TapSDK.Compliance.Runtime" },
14
13
  new LinkedAssembly { Fullname = "TapSDK.Compliance.Mobile.Runtime" }
15
14
  };
16
15
 
@@ -18,4 +17,4 @@ namespace TapSDK.Compliance.Mobile.Editor {
18
17
  return BuildTargetUtils.IsSupportMobile(report.summary.platform);
19
18
  };
20
19
  }
21
- }
20
+ }
@@ -7,6 +7,7 @@ namespace TapSDK.Compliance.Model
7
7
  public const int EXITED = 1000; // 用户登出
8
8
  public const int SWITCH_ACCOUNT = 1001; // 切换账号
9
9
  public const int PERIOD_RESTRICT = 1030; // 当前用户达到宵禁时长
10
+ [System.Obsolete("已废弃,时长限制统一使用 PERIOD_RESTRICT(1030)。")]
10
11
  public const int DURATION_LIMIT = 1050; // 时长限制
11
12
 
12
13
  public const int AGE_LIMIT = 1100; // 适龄限制
@@ -18,7 +19,6 @@ namespace TapSDK.Compliance.Model
18
19
  if (val == EXITED) return true;
19
20
  if (val == SWITCH_ACCOUNT) return true;
20
21
  if (val == PERIOD_RESTRICT) return true;
21
- if (val == DURATION_LIMIT) return true;
22
22
  if (val == REAL_NAME_STOP) return true;
23
23
  if (val == AGE_LIMIT) return true;
24
24
  if (val == INVALID_CLIENT_OR_NETWORK_ERROR) return true;
@@ -10,7 +10,7 @@ namespace TapSDK.Compliance
10
10
  public static class TapTapCompliance
11
11
  {
12
12
 
13
- public static readonly string Version = "4.10.5";
13
+ public static readonly string Version = "4.10.6";
14
14
 
15
15
  public static void RegisterComplianceCallback(Action<int, string> callback)
16
16
  {
@@ -9,7 +9,6 @@ using TapSDK.Core;
9
9
  using TapSDK.Login;
10
10
  using TapSDK.Login.Internal;
11
11
  using TapSDK.Login.Standalone;
12
- using UnityEditor;
13
12
  using TapSDK.Compliance.Internal;
14
13
  using TapSDK.Compliance.Model;
15
14
  using TapSDK.Core.Internal;
@@ -137,7 +137,6 @@ namespace TapSDK.Compliance
137
137
  switch(code){
138
138
  case StartUpResult.LOGIN_SUCCESS:
139
139
  case StartUpResult.PERIOD_RESTRICT:
140
- case StartUpResult.DURATION_LIMIT:
141
140
  case StartUpResult.AGE_LIMIT:
142
141
  TapComplianceTracker.Instance.TrackSuccess("startup", sessionId);
143
142
  break;
@@ -228,7 +227,6 @@ namespace TapSDK.Compliance
228
227
  break;
229
228
  case StartUpResult.AGE_LIMIT:
230
229
  case StartUpResult.PERIOD_RESTRICT:
231
- case StartUpResult.DURATION_LIMIT:
232
230
  case StartUpResult.EXITED:
233
231
  case StartUpResult.INVALID_CLIENT_OR_NETWORK_ERROR:
234
232
  case StartUpResult.SWITCH_ACCOUNT:
@@ -108,7 +108,7 @@ namespace TapSDK.Compliance
108
108
  if (_elpased == null)
109
109
  _elpased = 0;
110
110
 
111
- yield return new WaitForSeconds(pollInterval);
111
+ yield return new WaitForSecondsRealtime(pollInterval);
112
112
  }
113
113
  }
114
114
 
@@ -69,7 +69,7 @@ namespace TapSDK.Compliance.Internal {
69
69
  {
70
70
  remainTime = Mathf.CeilToInt(_closeTime - _elapse);
71
71
  closeTipText.text = $"即将关闭当前页面({remainTime}s)";
72
- yield return new WaitForSeconds(1);
72
+ yield return new WaitForSecondsRealtime(1);
73
73
  _elapse++;
74
74
 
75
75
  } while (remainTime > 0);
@@ -78,4 +78,4 @@ namespace TapSDK.Compliance.Internal {
78
78
  OnOk?.Invoke();
79
79
  }
80
80
  }
81
- }
81
+ }
package/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "com.taptap.sdk.compliance",
3
3
  "displayName": "TapTapSDK Compliance",
4
4
  "description": "TapTapSDK Compliance",
5
- "version": "4.10.5",
5
+ "version": "4.10.6",
6
6
  "unity": "2019.4",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.taptap.sdk.core": "4.10.5",
10
- "com.taptap.sdk.login": "4.10.5"
9
+ "com.taptap.sdk.core": "4.10.6",
10
+ "com.taptap.sdk.login": "4.10.6"
11
11
  }
12
12
  }