com.xd.sdk.common 6.31.0 → 6.31.2
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 +5 -0
- package/Plugins/Android/libs/XDGCommon_6.31.1.aar +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
- package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
- package/Runtime/Internal/IXDGCommon.cs +2 -0
- package/Runtime/Public/XDGInitParam.cs +5 -5
- package/Runtime/XDGCommon.cs +13 -0
- package/package.json +1 -1
- package/Plugins/Android/libs/XDGCommon_6.31.0.aar +0 -0
- /package/Plugins/Android/libs/{XDGCommon_6.31.0.aar.meta → XDGCommon_6.31.1.aar.meta} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,19 +8,19 @@ namespace XD.SDK.Common
|
|
|
8
8
|
public const string PackageTypeDefault = "Default";
|
|
9
9
|
|
|
10
10
|
// App Store 包
|
|
11
|
-
public const string PackageTypeAppStore = "AppStore";
|
|
11
|
+
// public const string PackageTypeAppStore = "AppStore";
|
|
12
12
|
|
|
13
13
|
// 普通 Android 包
|
|
14
|
-
public const string PackageTypeAndroidNormal = "Android-Normal";
|
|
14
|
+
// public const string PackageTypeAndroidNormal = "Android-Normal";
|
|
15
15
|
|
|
16
16
|
// GooglePlay 包
|
|
17
|
-
public const string PackageTypeAndroidGooglePlay = "Android-GooglePlay";
|
|
17
|
+
// public const string PackageTypeAndroidGooglePlay = "Android-GooglePlay";
|
|
18
18
|
|
|
19
19
|
// TapTap 国内包
|
|
20
|
-
public const string PackageTypeAndroidTapTap = "Android-TapTap";
|
|
20
|
+
// public const string PackageTypeAndroidTapTap = "Android-TapTap";
|
|
21
21
|
|
|
22
22
|
// TapTap 海外包
|
|
23
|
-
public const string PackageTypeAndroidTapIO = "Android-TapIO";
|
|
23
|
+
// public const string PackageTypeAndroidTapIO = "Android-TapIO";
|
|
24
24
|
|
|
25
25
|
// 普通 PC 包
|
|
26
26
|
public const string PackageTypePCNormal = "PC-Normal";
|
package/Runtime/XDGCommon.cs
CHANGED
|
@@ -252,5 +252,18 @@ namespace XD.SDK.Common
|
|
|
252
252
|
{
|
|
253
253
|
platformWrapper.PreloadWebPage(url);
|
|
254
254
|
}
|
|
255
|
+
|
|
256
|
+
/// <summary>
|
|
257
|
+
/// 获取当前包体类型
|
|
258
|
+
/// 仅在 PC 平台可用
|
|
259
|
+
/// 1. 当 Steam SDK 启用时,优先返回 XDGPackageType.PackageTypePCSteam
|
|
260
|
+
/// 2. 当 TapTap 平台启用时,返回 XDGPackageType.PackageTypePCTapTap
|
|
261
|
+
/// 3. 否则返回默认 XDGPackageType.PackageTypePCNormal
|
|
262
|
+
/// </summary>
|
|
263
|
+
/// <returns>包体类型</returns>
|
|
264
|
+
public static string GetPackageType()
|
|
265
|
+
{
|
|
266
|
+
return platformWrapper.GetPackageType();
|
|
267
|
+
}
|
|
255
268
|
}
|
|
256
269
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
File without changes
|