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.
@@ -12,7 +12,7 @@ namespace XD.SDK.Common {
12
12
 
13
13
  private bool inited;
14
14
 
15
- public void InitSDK(XDGInitParam param, Action<bool, string> callback){
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;
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: e686a7aff623e41a59d2ddb495336e95
2
+ guid: 809a1326e442b4a6f8caadd0f8d71746
3
3
  PluginImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2
@@ -8,7 +8,7 @@ namespace XD.SDK.Common
8
8
  {
9
9
  string UserId { get; set; }
10
10
 
11
- void InitSDK(XDGInitParam param, Action<bool, string> callback);
11
+ void InitSDK(Action<bool, string> callback);
12
12
 
13
13
  void IsInitialized(Action<bool> callback);
14
14
 
@@ -48,12 +48,7 @@ namespace XD.SDK.Common
48
48
 
49
49
  public static void InitSDK(Action<bool, string> callback)
50
50
  {
51
- InitSDK(new XDGInitParam(), callback);
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.10",
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.1"
9
+ "com.xd.tds.common": "3.29.8-xd.4"
10
10
  }
11
11
  }
@@ -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
- }
@@ -1,11 +0,0 @@
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: