com.taptap.sdk.core 4.7.1 → 4.7.2-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 +3 -3
- package/Runtime/Public/TapTapSDK.cs +1 -1
- package/Standalone/Plugins/macOS/libtapsdkcorecpp.dylib.meta +1 -1
- package/Standalone/Runtime/Internal/Bean/TapGatekeeper.cs +0 -2
- package/Standalone/Runtime/Internal/Tracker.cs +4 -4
- package/Standalone/Runtime/Internal/User.cs +2 -3
- package/Standalone/Runtime/Public/TapCoreStandalone.cs +0 -14
- package/package.json +9 -9
|
@@ -1,15 +1,15 @@
|
|
|
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-core-unity:4.7.
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-core-unity:4.7.2"/>
|
|
8
8
|
</androidPackages>
|
|
9
9
|
<iosPods>
|
|
10
10
|
<sources>
|
|
11
11
|
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
12
|
</sources>
|
|
13
|
-
<iosPod name="TapTapCoreSDK" version="~> 4.7.
|
|
13
|
+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapCoreSDK" version="~> 4.7.2"/>
|
|
14
14
|
</iosPods>
|
|
15
15
|
</dependencies>
|
|
@@ -20,8 +20,6 @@ namespace TapSDK.Core.Standalone.Internal.Bean
|
|
|
20
20
|
[Serializable]
|
|
21
21
|
internal class TapGatekeeperSwitch
|
|
22
22
|
{
|
|
23
|
-
[JsonProperty("auto_event")]
|
|
24
|
-
public bool AutoEvent { get; set; } = true;
|
|
25
23
|
|
|
26
24
|
[JsonProperty("heartbeat")]
|
|
27
25
|
public bool Heartbeat { get; set; } = true;
|
|
@@ -27,10 +27,10 @@ namespace TapSDK.Core.Standalone.Internal {
|
|
|
27
27
|
sender = new EventSender();
|
|
28
28
|
|
|
29
29
|
InitBasicProps();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
|
|
31
|
+
Dictionary<string, object> props = new Dictionary<string, object>(basicProps);
|
|
32
|
+
TrackEvent(Constants.DEVICE_LOGIN, props, true);
|
|
33
|
+
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
public void AddCommonProperty(string key, object value) {
|
|
@@ -30,9 +30,8 @@ namespace TapSDK.Core.Standalone.Internal {
|
|
|
30
30
|
// 再执行新用户登录逻辑
|
|
31
31
|
Id = userId;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
33
|
+
TapEventStandalone.Tracker?.TrackEvent(Constants.USER_LOGIN, props, true);
|
|
34
|
+
|
|
36
35
|
|
|
37
36
|
Dictionary<string, object> updateProps = new Dictionary<string, object> {
|
|
38
37
|
{ "has_user", true },
|
|
@@ -29,7 +29,6 @@ namespace TapSDK.Core.Standalone
|
|
|
29
29
|
|
|
30
30
|
// client 信息是否匹配
|
|
31
31
|
internal static bool isClientInfoMatched = true;
|
|
32
|
-
internal static bool enableAutoEvent = true;
|
|
33
32
|
|
|
34
33
|
internal static TapGatekeeper gatekeeperData = new TapGatekeeper();
|
|
35
34
|
|
|
@@ -96,7 +95,6 @@ namespace TapSDK.Core.Standalone
|
|
|
96
95
|
try
|
|
97
96
|
{
|
|
98
97
|
TapGatekeeper tapGatekeeper = JsonConvert.DeserializeObject<TapGatekeeper>(clientSettings);
|
|
99
|
-
SetAutoEvent(tapGatekeeper);
|
|
100
98
|
if (tapGatekeeper.Switch?.Heartbeat == true)
|
|
101
99
|
{
|
|
102
100
|
TapAppDurationStandalone.Enable();
|
|
@@ -163,7 +161,6 @@ namespace TapSDK.Core.Standalone
|
|
|
163
161
|
json: body,
|
|
164
162
|
onSuccess: (data) =>
|
|
165
163
|
{
|
|
166
|
-
SetAutoEvent(data);
|
|
167
164
|
if (data.Switch?.Heartbeat == true)
|
|
168
165
|
{
|
|
169
166
|
TapAppDurationStandalone.Enable();
|
|
@@ -199,17 +196,6 @@ namespace TapSDK.Core.Standalone
|
|
|
199
196
|
File.WriteAllText(Path.Combine(Application.persistentDataPath, Constants.ClientSettingsFileName + "_" + TapTapSDK.taptapSdkOptions.clientId + ".json"), json);
|
|
200
197
|
}
|
|
201
198
|
|
|
202
|
-
private void SetAutoEvent(TapGatekeeper gatekeeper)
|
|
203
|
-
{
|
|
204
|
-
if (gatekeeper != null)
|
|
205
|
-
{
|
|
206
|
-
var switchData = gatekeeper.Switch;
|
|
207
|
-
if (switchData != null)
|
|
208
|
-
{
|
|
209
|
-
enableAutoEvent = switchData.AutoEvent;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
199
|
|
|
214
200
|
public static bool CheckInitState()
|
|
215
201
|
{
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"name": "com.taptap.sdk.core",
|
|
3
|
+
"displayName": "TapTapSDK Core",
|
|
4
|
+
"description": "TapTapSDK Core",
|
|
5
|
+
"version": "4.7.2-beta.1",
|
|
6
|
+
"unity": "2019.4",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"com.google.external-dependency-manager": "1.2.179"
|
|
10
|
+
}
|
|
11
11
|
}
|