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.
@@ -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);
@@ -24,6 +24,8 @@ NS_ASSUME_NONNULL_BEGIN
24
24
  + (NSString *)getMCCNC;
25
25
 
26
26
  + (NSString *)gameLaunchTime;
27
+
28
+ + (NSString *)getTapDBDeviceID;
27
29
  @end
28
30
 
29
31
  NS_ASSUME_NONNULL_END
@@ -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
 
@@ -5,6 +5,6 @@
5
5
  // Created by Fattycat on 2022/5/13.
6
6
  //
7
7
 
8
- #define XDSDK_VERSION @"6.29.0"
9
- #define XDSDK_VERSION_CODE @"6029000"
10
- // HASH 702c456
8
+ #define XDSDK_VERSION @"6.29.3"
9
+ #define XDSDK_VERSION_CODE @"6029030"
10
+ // HASH 6ccd542
@@ -9,6 +9,8 @@ namespace XD.SDK.Common
9
9
  string UserId { get; set; }
10
10
 
11
11
  void InitSDK(Action<bool, string> callback);
12
+
13
+ void InitSDK(XDGInitParam param, Action<bool, string> callback);
12
14
 
13
15
  void IsInitialized(Action<bool> callback);
14
16
 
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 78547f8311de4b72bf0b4317668b06c2
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "com.xd.sdk.common",
3
3
  "displayName": "XDSDK Common",
4
- "version": "6.29.1",
4
+ "version": "6.29.3",
5
5
  "description": "XDSDK",
6
6
  "unity": "2018.3",
7
7
  "license": "MIT",