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.
- package/Runtime/Internal/Core/IBridgeWebView.cs +4 -0
- package/Runtime/Internal/IXDGCommon.Extended.cs +2 -0
- package/Runtime/Internal/Mobile/CommonFeaturesImpl.cs +5 -0
- package/Runtime/Internal/Standalone/Captcha/XDGCaptcha.cs +1 -1
- package/Runtime/Internal/Standalone/CommonFeaturesImpl.cs +13 -0
- package/Runtime/Internal/Standalone/UI/Controllers/CancelAccountAlert.cs +1 -1
- package/Runtime/Internal/Standalone/UI/Controllers/XDWebViewAlert.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/CloseWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/OpenPageWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/WebFunctionHolder.cs +1 -1
- package/Runtime/Internal/Standalone/Web/WebBridgeController.cs +1 -1
- package/Runtime/Internal/Standalone/Web/WebRequest.cs +1 -1
- package/Runtime/Internal/Standalone/Web/XDWebBridgeView.cs +1 -1
- package/Runtime/Internal/XDGCommonInternal.cs +5 -0
- package/package.json +2 -2
|
@@ -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
|
|
|
@@ -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
|
}
|
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
|
}
|