com.taptap.sdk.core 4.6.1-beta.9 → 4.6.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/Runtime/TapCoreMobile.cs +5 -0
- package/Mobile/Runtime/TapEventMobile.cs +21 -0
- package/Runtime/Internal/Platform/ITapCorePlatform.cs +2 -0
- package/Runtime/Internal/Platform/ITapEventPlatform.cs +4 -0
- package/Runtime/Internal/Utils/EventManager.cs +2 -0
- package/Runtime/Public/TapTapEvent.cs +7 -0
- package/Runtime/Public/TapTapSDK.cs +7 -1
- package/Runtime/Public/TapTapSdkOptions.cs +14 -0
- package/Standalone/Plugins/x86/tapsdkcore.dll +0 -0
- package/Standalone/Plugins/x86_64/tapsdkcore.dll +0 -0
- package/Standalone/Plugins/x86_64/taptap_api.dll +0 -0
- package/Standalone/Plugins/x86_64/taptap_api.dll.meta +52 -0
- package/Standalone/Resources/Prefabs/TapClient/TapClientConnectTipPanel.prefab +983 -0
- package/Standalone/Resources/Prefabs/TapClient/TapClientConnectTipPanel.prefab.meta +7 -0
- package/Standalone/Resources/Prefabs/TapClient.meta +8 -0
- package/Standalone/Resources/Prefabs.meta +8 -0
- package/Standalone/Resources/Texures/TapClientConnectError.png +0 -0
- package/Standalone/Resources/Texures/TapClientConnectError.png.meta +128 -0
- package/Standalone/Resources/Texures.meta +8 -0
- package/Standalone/Resources.meta +8 -0
- package/Standalone/Runtime/Internal/Openlog/TapCoreTracker.cs +107 -0
- package/Standalone/Runtime/Internal/Openlog/TapCoreTracker.cs.meta +11 -0
- package/Standalone/Runtime/Internal/TapClientBridge.cs +224 -0
- package/Standalone/Runtime/Internal/TapClientBridge.cs.meta +11 -0
- package/Standalone/Runtime/Internal/TapClientBridgePoll.cs +36 -0
- package/Standalone/Runtime/Internal/TapClientBridgePoll.cs.meta +11 -0
- package/Standalone/Runtime/Internal/UI/TapClientConnectTipController.cs +59 -0
- package/Standalone/Runtime/Internal/UI/TapClientConnectTipController.cs.meta +11 -0
- package/Standalone/Runtime/Internal/UI/TapUnderLineText.cs +76 -0
- package/Standalone/Runtime/Internal/UI/TapUnderLineText.cs.meta +11 -0
- package/Standalone/Runtime/Internal/UI.meta +8 -0
- package/Standalone/Runtime/Public/TapCoreStandalone.cs +366 -0
- package/Standalone/Runtime/Public/TapEventStandalone.cs +27 -0
- package/package.json +1 -1
|
@@ -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-core-unity:4.6.1
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-core-unity:4.6.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 name="TapTapCoreSDK" version="~> 4.5.
|
|
13
|
+
<iosPod name="TapTapCoreSDK" version="~> 4.5.5" bitcodeEnabled="false" addToAllTargets="false"/>
|
|
14
14
|
</iosPods>
|
|
15
15
|
</dependencies>
|
|
@@ -258,6 +258,27 @@ namespace TapSDK.Core.Mobile
|
|
|
258
258
|
IOSNativeWrapper.RegisterDynamicProperties(callback);
|
|
259
259
|
#else
|
|
260
260
|
AndroidNativeWrapper.RegisterDynamicProperties(callback);
|
|
261
|
+
#endif
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
public void SetOAID(string value)
|
|
265
|
+
{
|
|
266
|
+
Debug.Log("TapEventMobile SetOAID" + value);
|
|
267
|
+
#if UNITY_ANDROID
|
|
268
|
+
Bridge.CallHandler(EngineBridgeInitializer.GetBridgeServer()
|
|
269
|
+
.Method("setOAID")
|
|
270
|
+
.Args("oaid", value)
|
|
271
|
+
.CommandBuilder());
|
|
272
|
+
#endif
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
public void LogDeviceLoginEvent()
|
|
276
|
+
{
|
|
277
|
+
Debug.Log("TapEventMobile LogDeviceLoginEvent");
|
|
278
|
+
#if UNITY_ANDROID
|
|
279
|
+
Bridge.CallHandler(EngineBridgeInitializer.GetBridgeServer()
|
|
280
|
+
.Method("logDeviceLoginEvent")
|
|
281
|
+
.CommandBuilder());
|
|
261
282
|
#endif
|
|
262
283
|
}
|
|
263
284
|
}
|
|
@@ -33,5 +33,9 @@ namespace TapSDK.Core.Internal {
|
|
|
33
33
|
void LogChargeEvent(string orderID, string productName, long amount, string currencyType, string paymentMethod, string properties);
|
|
34
34
|
|
|
35
35
|
void RegisterDynamicProperties(Func<string> callback);
|
|
36
|
+
|
|
37
|
+
void SetOAID(string value);
|
|
38
|
+
|
|
39
|
+
void LogDeviceLoginEvent();
|
|
36
40
|
}
|
|
37
41
|
}
|
|
@@ -10,6 +10,8 @@ namespace TapSDK.Core.Internal.Utils
|
|
|
10
10
|
public const string OnApplicationQuit = "OnApplicationQuit";
|
|
11
11
|
|
|
12
12
|
public const string OnComplianceUserChanged = "OnComplianceUserChanged";
|
|
13
|
+
|
|
14
|
+
public const string IsLaunchedFromTapTapPCFinished = "IsLaunchedFromTapTapPCFinished";
|
|
13
15
|
private Dictionary<string, Action<object>> eventRegistries = new Dictionary<string, Action<object>>();
|
|
14
16
|
|
|
15
17
|
public static void AddListener(string eventName, Action<object> listener) {
|
|
@@ -89,5 +89,12 @@ namespace TapSDK.Core {
|
|
|
89
89
|
platformWrapper?.RegisterDynamicProperties(callback);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
public static void SetOAID(string value){
|
|
93
|
+
platformWrapper?.SetOAID(value);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public static void LogDeviceLoginEvent(){
|
|
97
|
+
platformWrapper?.LogDeviceLoginEvent();
|
|
98
|
+
}
|
|
92
99
|
}
|
|
93
100
|
}
|
|
@@ -12,7 +12,7 @@ using System.ComponentModel;
|
|
|
12
12
|
|
|
13
13
|
namespace TapSDK.Core {
|
|
14
14
|
public class TapTapSDK {
|
|
15
|
-
public static readonly string Version = "4.6.1
|
|
15
|
+
public static readonly string Version = "4.6.1";
|
|
16
16
|
|
|
17
17
|
public static string SDKPlatform = "TapSDK-Unity";
|
|
18
18
|
|
|
@@ -89,6 +89,12 @@ namespace TapSDK.Core {
|
|
|
89
89
|
public static void UpdateLanguage(TapTapLanguageType language){
|
|
90
90
|
platformWrapper?.UpdateLanguage(language);
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
// 是否通过 PC 启动器唤起游戏
|
|
94
|
+
public static Task<bool> IsLaunchedFromTapTapPC()
|
|
95
|
+
{
|
|
96
|
+
return platformWrapper?.IsLaunchedFromTapTapPC();
|
|
97
|
+
}
|
|
92
98
|
|
|
93
99
|
private static Type[] GetInitTypeList(){
|
|
94
100
|
Type interfaceType = typeof(IInitTask);
|
|
@@ -45,6 +45,10 @@ namespace TapSDK.Core
|
|
|
45
45
|
/// </summary>
|
|
46
46
|
public string clientToken;
|
|
47
47
|
/// <summary>
|
|
48
|
+
/// PC 客户端公钥
|
|
49
|
+
/// </summary>
|
|
50
|
+
public string clientPublicKey;
|
|
51
|
+
/// <summary>
|
|
48
52
|
/// 地区,CN 为国内,Overseas 为海外
|
|
49
53
|
/// </summary>
|
|
50
54
|
public TapTapRegionType region = TapTapRegionType.CN;
|
|
@@ -89,6 +93,16 @@ namespace TapSDK.Core
|
|
|
89
93
|
/// </summary>
|
|
90
94
|
public bool enableLog = false;
|
|
91
95
|
|
|
96
|
+
/// <summary>
|
|
97
|
+
/// 是否禁用 OAID 反射
|
|
98
|
+
/// </summary>
|
|
99
|
+
public bool disableReflectionOAID = true;
|
|
100
|
+
|
|
101
|
+
/// <summary>
|
|
102
|
+
/// 是否即用禁用自动上报设备登录事件
|
|
103
|
+
/// </summary>
|
|
104
|
+
public bool disableAutoLogDeviceLogin = false;
|
|
105
|
+
|
|
92
106
|
/// <summary>
|
|
93
107
|
/// 屏幕方向:0-竖屏 1-横屏
|
|
94
108
|
/// </summary>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: b6f09ef7ffe9442c3a59f378a3a15005
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 0
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Any:
|
|
16
|
+
second:
|
|
17
|
+
enabled: 1
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Editor: Editor
|
|
21
|
+
second:
|
|
22
|
+
enabled: 0
|
|
23
|
+
settings:
|
|
24
|
+
CPU: x86_64
|
|
25
|
+
DefaultValueInitialized: true
|
|
26
|
+
- first:
|
|
27
|
+
Standalone: Linux64
|
|
28
|
+
second:
|
|
29
|
+
enabled: 1
|
|
30
|
+
settings:
|
|
31
|
+
CPU: x86_64
|
|
32
|
+
- first:
|
|
33
|
+
Standalone: OSXUniversal
|
|
34
|
+
second:
|
|
35
|
+
enabled: 0
|
|
36
|
+
settings:
|
|
37
|
+
CPU: x86_64
|
|
38
|
+
- first:
|
|
39
|
+
Standalone: Win
|
|
40
|
+
second:
|
|
41
|
+
enabled: 0
|
|
42
|
+
settings:
|
|
43
|
+
CPU: None
|
|
44
|
+
- first:
|
|
45
|
+
Standalone: Win64
|
|
46
|
+
second:
|
|
47
|
+
enabled: 1
|
|
48
|
+
settings:
|
|
49
|
+
CPU: AnyCPU
|
|
50
|
+
userData:
|
|
51
|
+
assetBundleName:
|
|
52
|
+
assetBundleVariant:
|