com.xd.sdk.common 6.23.10 → 6.23.13
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/XDGCommonMobile.cs +1 -1
- package/Plugins/Android/libs/XDGCommon_6.23.13.aar +0 -0
- package/Plugins/Android/libs/{XDGCommon_6.23.8.aar.meta → XDGCommon_6.23.13.aar.meta} +1 -1
- package/Runtime/Internal/IXDGCommon.cs +1 -1
- package/Runtime/XDGCommon.cs +1 -6
- package/package.json +2 -2
- package/Plugins/Android/libs/XDGCommon_6.23.8.aar +0 -0
- package/Runtime/XDGInitParam.cs +0 -41
- package/Runtime/XDGInitParam.cs.meta +0 -11
|
@@ -12,7 +12,7 @@ namespace XD.SDK.Common {
|
|
|
12
12
|
|
|
13
13
|
private bool inited;
|
|
14
14
|
|
|
15
|
-
public void InitSDK(
|
|
15
|
+
public void InitSDK(Action<bool, string> callback){
|
|
16
16
|
if (inited){
|
|
17
17
|
UnityEngine.Debug.LogWarning("XDSDK has been initialized, please do not initialize it again.");
|
|
18
18
|
return;
|
|
Binary file
|
package/Runtime/XDGCommon.cs
CHANGED
|
@@ -48,12 +48,7 @@ namespace XD.SDK.Common
|
|
|
48
48
|
|
|
49
49
|
public static void InitSDK(Action<bool, string> callback)
|
|
50
50
|
{
|
|
51
|
-
InitSDK(
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
public static void InitSDK(XDGInitParam param, Action<bool, string> callback)
|
|
55
|
-
{
|
|
56
|
-
platformWrapper.InitSDK(param, callback);
|
|
51
|
+
platformWrapper.InitSDK(callback);
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
public static void IsInitialized(Action<bool> callback)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.xd.sdk.common",
|
|
3
3
|
"displayName": "XDSDK Common",
|
|
4
|
-
"version": "6.23.
|
|
4
|
+
"version": "6.23.13",
|
|
5
5
|
"description": "XDSDK",
|
|
6
6
|
"unity": "2018.3",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.xd.tds.common": "3.29.8-xd.
|
|
9
|
+
"com.xd.tds.common": "3.29.8-xd.4"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
Binary file
|
package/Runtime/XDGInitParam.cs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
using System;
|
|
2
|
-
|
|
3
|
-
namespace XD.SDK.Common
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
public class XDGPackageType
|
|
7
|
-
{
|
|
8
|
-
// 普通包
|
|
9
|
-
public const string PackageTypeDefault = "Default";
|
|
10
|
-
// App Store 包
|
|
11
|
-
public const string PackageTypeAppStore = "AppStore";
|
|
12
|
-
// 普通 Android 包
|
|
13
|
-
public const string PackageTypeAndroidNormal = "Android-Normal";
|
|
14
|
-
// GooglePlay 包
|
|
15
|
-
public const string PackageTypeAndroidGooglePlay = "Android-GooglePlay";
|
|
16
|
-
// TapTap 国内包
|
|
17
|
-
public const string PackageTypeAndroidTapTap = "Android-TapTap";
|
|
18
|
-
// TapTap 海外包
|
|
19
|
-
public const string PackageTypeAndroidTapIO = "Android-TapIO";
|
|
20
|
-
// 普通 PC 包
|
|
21
|
-
public const string PackageTypePCNormal = "PC-Normal";
|
|
22
|
-
// Steam 包
|
|
23
|
-
public const string PackageTypePCSteam = "PC-Steam";
|
|
24
|
-
// 国内 TapTap PC 启动器
|
|
25
|
-
public const string PackageTypePCTapTap = "PC-TapTap";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public class XDGInitParam
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
/// <summary>
|
|
32
|
-
/// 包体类型,请优先使用 XDGPackageType 预定义的类型
|
|
33
|
-
/// </summary>
|
|
34
|
-
public string PackageType;
|
|
35
|
-
|
|
36
|
-
public XDGInitParam()
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|