com.taptap.sdk.compliance 4.10.6 → 4.10.7-beta.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.
- package/Mobile/Editor/NativeDependencies.xml +2 -2
- package/Mobile/Editor/TapComplianceMobileProcessBuild.cs +2 -1
- package/Runtime/Internal/Model/StartUpResult.cs +1 -1
- package/Runtime/Public/TapTapCompliance.cs +1 -1
- package/Standalone/Runtime/ComplianceWorker.cs +1 -0
- package/Standalone/Runtime/Internal/ComplianceNewJob.cs +2 -0
- package/Standalone/Runtime/Internal/CompliancePoll.cs +1 -1
- package/Standalone/Runtime/Internal/UI/Controller/TapTapChinaVerifyFinishPanelController.cs +2 -2
- package/package.json +3 -3
|
@@ -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.
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-compliance:4.10.7-beta.1" />
|
|
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.
|
|
13
|
+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.10.5" />
|
|
14
14
|
</iosPods>
|
|
15
15
|
</dependencies>
|
|
@@ -10,6 +10,7 @@ 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" },
|
|
13
14
|
new LinkedAssembly { Fullname = "TapSDK.Compliance.Mobile.Runtime" }
|
|
14
15
|
};
|
|
15
16
|
|
|
@@ -17,4 +18,4 @@ namespace TapSDK.Compliance.Mobile.Editor {
|
|
|
17
18
|
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
|
+
}
|
|
@@ -7,7 +7,6 @@ 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)。")]
|
|
11
10
|
public const int DURATION_LIMIT = 1050; // 时长限制
|
|
12
11
|
|
|
13
12
|
public const int AGE_LIMIT = 1100; // 适龄限制
|
|
@@ -19,6 +18,7 @@ namespace TapSDK.Compliance.Model
|
|
|
19
18
|
if (val == EXITED) return true;
|
|
20
19
|
if (val == SWITCH_ACCOUNT) return true;
|
|
21
20
|
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.
|
|
13
|
+
public static readonly string Version = "4.10.7-beta.1";
|
|
14
14
|
|
|
15
15
|
public static void RegisterComplianceCallback(Action<int, string> callback)
|
|
16
16
|
{
|
|
@@ -137,6 +137,7 @@ namespace TapSDK.Compliance
|
|
|
137
137
|
switch(code){
|
|
138
138
|
case StartUpResult.LOGIN_SUCCESS:
|
|
139
139
|
case StartUpResult.PERIOD_RESTRICT:
|
|
140
|
+
case StartUpResult.DURATION_LIMIT:
|
|
140
141
|
case StartUpResult.AGE_LIMIT:
|
|
141
142
|
TapComplianceTracker.Instance.TrackSuccess("startup", sessionId);
|
|
142
143
|
break;
|
|
@@ -227,6 +228,7 @@ namespace TapSDK.Compliance
|
|
|
227
228
|
break;
|
|
228
229
|
case StartUpResult.AGE_LIMIT:
|
|
229
230
|
case StartUpResult.PERIOD_RESTRICT:
|
|
231
|
+
case StartUpResult.DURATION_LIMIT:
|
|
230
232
|
case StartUpResult.EXITED:
|
|
231
233
|
case StartUpResult.INVALID_CLIENT_OR_NETWORK_ERROR:
|
|
232
234
|
case StartUpResult.SWITCH_ACCOUNT:
|
|
@@ -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
|
|
72
|
+
yield return new WaitForSeconds(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
|
+
"version": "4.10.7-beta.1",
|
|
6
6
|
"unity": "2019.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.taptap.sdk.core": "4.10.
|
|
10
|
-
"com.taptap.sdk.login": "4.10.
|
|
9
|
+
"com.taptap.sdk.core": "4.10.7-beta.1",
|
|
10
|
+
"com.taptap.sdk.login": "4.10.7-beta.1"
|
|
11
11
|
}
|
|
12
12
|
}
|