com.xd.sdk.common 6.29.1 → 6.29.3
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 +4 -0
- package/Plugins/Android/libs/XDGCommon_6.29.3.aar +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGCloudLogHelper.h +2 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +2 -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 +46 -0
- package/Runtime/Public/XDGInitParam.cs.meta +11 -0
- package/Runtime/XDGCommon.cs +6 -1
- package/package.json +1 -1
- package/Plugins/Android/libs/XDGCommon_6.29.1.aar +0 -0
- /package/Plugins/Android/libs/{XDGCommon_6.29.1.aar.meta → XDGCommon_6.29.3.aar.meta} +0 -0
|
@@ -27,6 +27,10 @@ namespace XD.SDK.Common {
|
|
|
27
27
|
callback?.Invoke(b, s);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
public void InitSDK(XDGInitParam param, Action<bool, string> callback){
|
|
32
|
+
InitSDK(callback);
|
|
33
|
+
}
|
|
30
34
|
|
|
31
35
|
public void IsInitialized(Action<bool> callback){
|
|
32
36
|
XDGCommonMobileImpl.GetInstance().IsInitialized(callback);
|
|
Binary file
|
|
@@ -112,6 +112,8 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
|
|
|
112
112
|
@property (nonatomic, strong) NSArray *webWhiteList;
|
|
113
113
|
/// 自动注册推送
|
|
114
114
|
@property (nonatomic, assign) BOOL pushAutoInit;
|
|
115
|
+
/// 关闭票据上传
|
|
116
|
+
@property (nonatomic, assign) BOOL disableReceiptUpload;
|
|
115
117
|
|
|
116
118
|
- (BOOL)isCN;
|
|
117
119
|
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
|
|
3
|
+
namespace XD.SDK.Common
|
|
4
|
+
{
|
|
5
|
+
public class XDGPackageType
|
|
6
|
+
{
|
|
7
|
+
// 普通包
|
|
8
|
+
public const string PackageTypeDefault = "Default";
|
|
9
|
+
|
|
10
|
+
// App Store 包
|
|
11
|
+
public const string PackageTypeAppStore = "AppStore";
|
|
12
|
+
|
|
13
|
+
// 普通 Android 包
|
|
14
|
+
public const string PackageTypeAndroidNormal = "Android-Normal";
|
|
15
|
+
|
|
16
|
+
// GooglePlay 包
|
|
17
|
+
public const string PackageTypeAndroidGooglePlay = "Android-GooglePlay";
|
|
18
|
+
|
|
19
|
+
// TapTap 国内包
|
|
20
|
+
public const string PackageTypeAndroidTapTap = "Android-TapTap";
|
|
21
|
+
|
|
22
|
+
// TapTap 海外包
|
|
23
|
+
public const string PackageTypeAndroidTapIO = "Android-TapIO";
|
|
24
|
+
|
|
25
|
+
// 普通 PC 包
|
|
26
|
+
public const string PackageTypePCNormal = "PC-Normal";
|
|
27
|
+
|
|
28
|
+
// Steam 包
|
|
29
|
+
public const string PackageTypePCSteam = "PC-Steam";
|
|
30
|
+
|
|
31
|
+
// 国内 TapTap PC 启动器
|
|
32
|
+
public const string PackageTypePCTapTap = "PC-TapTap";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public class XDGInitParam
|
|
36
|
+
{
|
|
37
|
+
/// <summary>
|
|
38
|
+
/// 包体类型,请优先使用 XDGPackageType 预定义的类型
|
|
39
|
+
/// </summary>
|
|
40
|
+
public string PackageType = XDGPackageType.PackageTypeDefault;
|
|
41
|
+
|
|
42
|
+
public XDGInitParam()
|
|
43
|
+
{
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
package/Runtime/XDGCommon.cs
CHANGED
|
@@ -48,7 +48,12 @@ namespace XD.SDK.Common
|
|
|
48
48
|
|
|
49
49
|
public static void InitSDK(Action<bool, string> callback)
|
|
50
50
|
{
|
|
51
|
-
platformWrapper.InitSDK(callback);
|
|
51
|
+
platformWrapper.InitSDK(new XDGInitParam(), callback);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public static void InitSDK(XDGInitParam param, Action<bool, string> callback)
|
|
55
|
+
{
|
|
56
|
+
platformWrapper.InitSDK(param, callback);
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
public static void IsInitialized(Action<bool> callback)
|
package/package.json
CHANGED
|
Binary file
|
|
File without changes
|