com.xd.sdk.common 7.2.1-alpha → 7.2.1-alpha.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.
@@ -1,5 +1,7 @@
1
1
  #if UNITY_EDITOR || UNITY_STANDALONE
2
+ #if !XDSDK_DISABLE_VUPLEX
2
3
  using Vuplex.WebView;
4
+ #endif
3
5
  using XD.SDK.Common.Internal.Standalone;
4
6
  #endif
5
7
  namespace XD.SDK.Common.Internal
@@ -7,7 +9,9 @@ namespace XD.SDK.Common.Internal
7
9
  public interface IBridgeWebView
8
10
  {
9
11
  #if UNITY_EDITOR || UNITY_STANDALONE
12
+ #if !XDSDK_DISABLE_VUPLEX
10
13
  IWebView ProviderWebView();
14
+ #endif
11
15
 
12
16
  IWebTransmit ProviderWebTrans();
13
17
 
@@ -16,5 +16,7 @@ namespace XD.SDK.Common.Internal
16
16
  void PreloadWebPage(string url);
17
17
 
18
18
  void OpenWebPage(string url, Action<WebActionEnum, Dictionary<string, object>> callback);
19
+
20
+ bool IsSteamInitialized();
19
21
  }
20
22
  }
@@ -229,6 +229,11 @@ namespace XD.SDK.Common.Internal.Mobile
229
229
  });
230
230
  }
231
231
 
232
+ public bool IsSteamInitialized()
233
+ {
234
+ return false;
235
+ }
236
+
232
237
  public void TrackUser(string userId)
233
238
  {
234
239
  // 不需要实现
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
  using System;
3
3
  using System.Collections.Generic;
4
4
  using System.Linq;
@@ -5,7 +5,9 @@ using System.Linq;
5
5
  using System.Threading.Tasks;
6
6
  using Newtonsoft.Json;
7
7
  using UnityEngine;
8
+ #if !XDSDK_DISABLE_VUPLEX
8
9
  using Vuplex.WebView;
10
+ #endif
9
11
  using XD.SDK.Common.Internal.Events;
10
12
 
11
13
  namespace XD.SDK.Common.Internal.Standalone
@@ -90,12 +92,21 @@ namespace XD.SDK.Common.Internal.Standalone
90
92
 
91
93
  public void PreloadWebPage(string url)
92
94
  {
95
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
93
96
  WebRequest.Preload(url);
97
+ #endif
94
98
  }
95
99
 
96
100
  public void OpenWebPage(string url, Action<WebActionEnum, Dictionary<string, object>> callback)
97
101
  {
102
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
98
103
  WebRequest.OpenWebPage(url, callback);
104
+ #endif
105
+ }
106
+
107
+ public bool IsSteamInitialized()
108
+ {
109
+ return SteamWrapper.Initialized();
99
110
  }
100
111
 
101
112
  public void DisableAgreementUI()
@@ -232,6 +243,7 @@ namespace XD.SDK.Common.Internal.Standalone
232
243
 
233
244
  private static void InitWebView()
234
245
  {
246
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
235
247
  var region = ConfigModule.IsGlobal ? "global" : "cn";
236
248
  try
237
249
  {
@@ -246,6 +258,7 @@ namespace XD.SDK.Common.Internal.Standalone
246
258
  {
247
259
  WebRequest.Preload(ConfigModule.IsGlobal ? "https://poster.xd.com/r/versions.html" : "https://poster.xd.cn/r/versions.html");
248
260
  }
261
+ #endif
249
262
  }
250
263
  }
251
264
  }
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
  using System;
3
3
  using UnityEngine;
4
4
  using UnityEngine.UI;
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
 
3
3
  using System;
4
4
  using System.Collections;
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
  using System;
3
3
  using System.Collections.Generic;
4
4
  using Newtonsoft.Json;
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
 
3
3
  using System;
4
4
  using System.Collections.Generic;
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
 
3
3
  using System.Collections.Generic;
4
4
 
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
  using System;
3
3
  using System.Collections.Generic;
4
4
  using System.Linq;
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
 
3
3
  using System;
4
4
  using System.Collections.Generic;
@@ -1,4 +1,4 @@
1
- #if UNITY_EDITOR || UNITY_STANDALONE
1
+ #if (UNITY_EDITOR || UNITY_STANDALONE) && !XDSDK_DISABLE_VUPLEX
2
2
  using System;
3
3
  using System.Collections;
4
4
  using System.Collections.Generic;
@@ -96,6 +96,11 @@ namespace XD.SDK.Common.Internal
96
96
  {
97
97
  platformWrapper.SetTargetCountryOrRegion(region);
98
98
  }
99
+
100
+ public static bool IsSteamInitialized()
101
+ {
102
+ return platformWrapper.IsSteamInitialized();
103
+ }
99
104
 
100
105
  #endregion
101
106
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "com.xd.sdk.common",
3
3
  "displayName": "XDGSDK Common",
4
- "version": "7.2.1-alpha",
4
+ "version": "7.2.1-alpha.2",
5
5
  "description": "XDGSDK",
6
6
  "unity": "2019.3",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.xd.sdk.foundation": "7.2.1-alpha"
9
+ "com.xd.sdk.foundation": "7.2.1-alpha.2"
10
10
  }
11
11
  }