com.xd.sdk.common 7.0.1 → 7.0.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.
Files changed (50) hide show
  1. package/Editor/iOS/XDGIOSCommonProcessor.cs +6 -4
  2. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGKuaiShouShareParam.h.meta +7 -0
  3. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDKuaiShouInfo.h.meta +7 -0
  4. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
  5. package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
  6. package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
  7. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK.h +3 -3
  8. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Info.plist +0 -0
  9. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/de.lproj/Localizable.strings.meta +7 -0
  10. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/de.lproj.meta +8 -0
  11. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/en.lproj/Localizable.strings.meta +7 -0
  12. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/en.lproj.meta +8 -0
  13. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/es.lproj/Localizable.strings.meta +7 -0
  14. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/es.lproj.meta +8 -0
  15. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/fr.lproj/Localizable.strings.meta +7 -0
  16. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/fr.lproj.meta +8 -0
  17. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/in.lproj/Localizable.strings.meta +7 -0
  18. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/in.lproj.meta +8 -0
  19. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ja.lproj/Localizable.strings.meta +7 -0
  20. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ja.lproj.meta +8 -0
  21. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ko.lproj/Localizable.strings.meta +7 -0
  22. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ko.lproj.meta +8 -0
  23. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ms.lproj/Localizable.strings.meta +7 -0
  24. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ms.lproj.meta +8 -0
  25. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/pt.lproj/Localizable.strings.meta +7 -0
  26. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/pt.lproj.meta +8 -0
  27. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ru.lproj/Localizable.strings.meta +7 -0
  28. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ru.lproj.meta +8 -0
  29. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/th.lproj/Localizable.strings.meta +7 -0
  30. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/th.lproj.meta +8 -0
  31. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/tr.lproj/Localizable.strings.meta +7 -0
  32. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/tr.lproj.meta +8 -0
  33. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/vi.lproj/Localizable.strings.meta +7 -0
  34. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/vi.lproj.meta +8 -0
  35. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hans.lproj/Localizable.strings.meta +7 -0
  36. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hans.lproj.meta +8 -0
  37. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hant.lproj/Localizable.strings.meta +7 -0
  38. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hant.lproj.meta +8 -0
  39. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle.meta +8 -0
  40. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/XDTapSDK4WrapperSDK +0 -0
  41. package/Resources/Prefabs/XDWebBridgeView.prefab +1 -1
  42. package/Runtime/Internal/Standalone/CommonFeaturesImpl.cs +4 -4
  43. package/Runtime/Internal/Standalone/Web/Function/BackgroundColorWebFunction.cs +1 -1
  44. package/Runtime/Internal/Standalone/Web/Function/CloseVisibleWebFunction.cs +1 -1
  45. package/Runtime/Internal/Standalone/Web/Function/CloseWebFunction.cs +2 -5
  46. package/Runtime/Internal/Standalone/Web/Function/GameMessageWebFunction.cs +1 -1
  47. package/Runtime/Internal/Standalone/Web/Function/NavigationWebFunction.cs +1 -1
  48. package/Runtime/Internal/Standalone/Web/WebBridgeController.cs +34 -27
  49. package/Runtime/Internal/Standalone/Web/XDWebBridgeView.cs +10 -3
  50. package/package.json +2 -2
@@ -453,11 +453,13 @@ namespace XD.SDK.Common.Editor
453
453
  plistArray.AddString(items[i]);
454
454
  }
455
455
 
456
- foreach (var item in customPlistDic)
457
- {
458
- if (!item.Key.Equals("taptap"))
456
+ if (customPlistDic != null) {
457
+ foreach (var item in customPlistDic)
459
458
  {
460
- _rootDic.SetString(item.Key, item.Value.ToString());
459
+ if (!item.Key.Equals("taptap"))
460
+ {
461
+ _rootDic.SetString(item.Key, item.Value.ToString());
462
+ }
461
463
  }
462
464
  }
463
465
 
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 4ef4fde55809047faa517b09986f46fd
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: ce6d0f15960fc4be8a1436ea53f2dcb9
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -5,6 +5,6 @@
5
5
  // Created by Fattycat on 2022/5/13.
6
6
  //
7
7
 
8
- #define XDSDK_VERSION @"7.0.1"
9
- #define XDSDK_VERSION_CODE @"7000010"
10
- // HASH 135a1142
8
+ #define XDSDK_VERSION @"7.0.2"
9
+ #define XDSDK_VERSION_CODE @"7000020"
10
+ // HASH ed74f1fb
@@ -15,6 +15,6 @@ FOUNDATION_EXPORT const unsigned char XDTapSDK4WrapperSDKVersionString[];
15
15
 
16
16
  // In this header, you should import all the public headers of your framework using statements like #import <XDTapSDK4WrapperSDK/PublicHeader.h>
17
17
 
18
- #define XDGTapSDK4_VERSION @"7.0.1"
19
- #define XDGTapSDK4_VERSION_CODE @"7000010"
20
- // HASH 135a1142
18
+ #define XDGTapSDK4_VERSION @"7.0.2"
19
+ #define XDGTapSDK4_VERSION_CODE @"7000020"
20
+ // HASH ed74f1fb
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: e98aeabd5f3914c4c9bd1d8406d2216d
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 670d710c482ce440ab2f5b0268599dec
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: ac206b89036c748d5a9f9bbdc6bded9f
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: ed39e4c213a4d44e7a09061f1a7f4258
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: cb52afbb338984700aa5f1295c9b3059
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: ca77e8e2a81984f63a35db5a1f2661bf
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: f2ee96b8d86284b7384d5500e40234b8
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 0404935bb1cfc4832a933187fc0d2939
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 91b893f206e48436c9b271c9b7c20c6d
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: c9503c8326eed4a4186ce8dc6b2f1624
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: ef05134d355274a31a47de6178db3619
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: fa07c7f925e1a4eebbaeb1bc8253d953
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 4d86d18e772c64cb7b9f24ff7e28ad50
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 6bb06216f508944ddb3db3402ee8356f
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: a2832e3cbfda84c308988a507e7d8a3a
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 4e203ff9746744ffcb5a2eb797eaec51
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: c77150e272efa4f23b84a6b7dac4a124
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 51c559a3e749948f0be2cf85d5356359
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: f3cde1eb2c9e644f285aa3ef9b58f7f8
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 9c136a4c4262d46e5b38a6f69c2bb528
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 54e8f1c03d55c4db79de2a69403a6e97
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: fac91486ab59344c68a72915ac20899f
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: f894c7e4c2dab441fbb00aa670740388
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 77e9f24c8fe3d492a9083d7f6066360b
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: ccb9610e0120b4df4b6e19c61b5691ce
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 74ba3d790ba804658833124f57d551f7
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: abb9bc10de29341e09819954862c3c44
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 11ded4b70d8f04c66aef946bb8083d50
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 6f2669b89c95c44b4851c4113490ac2a
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 7f2fa89950df7424b995ca8e6028bbf8
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 65ca2865651614d778017bf3edb8cf72
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -538,7 +538,7 @@ MonoBehaviour:
538
538
  m_Name:
539
539
  m_EditorClassIdentifier:
540
540
  m_Material: {fileID: 0}
541
- m_Color: {r: 1, g: 1, b: 1, a: 1}
541
+ m_Color: {r: 1, g: 1, b: 1, a: 0}
542
542
  m_RaycastTarget: 1
543
543
  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
544
544
  m_Maskable: 1
@@ -184,7 +184,7 @@ namespace XD.SDK.Common.Internal.Standalone
184
184
 
185
185
  IPInfoModule.RequestIpInfoAndSave();
186
186
 
187
- InitTap(param);
187
+ await InitTap(param);
188
188
 
189
189
  //TODO 注册防沉迷回调
190
190
  RegisterTapComplianceCallback();
@@ -206,12 +206,13 @@ namespace XD.SDK.Common.Internal.Standalone
206
206
  }
207
207
  }
208
208
 
209
- private static async void InitTap(XDGInitParam initParam)
209
+ private static async Task InitTap(XDGInitParam initParam)
210
210
  {
211
211
  var tapConfig = ConfigModule.TapConfig;
212
212
 
213
213
  await XDGEventBus.PublishAsync(XDGEvents.TapSDKInit,
214
- initParam.Lang.FormatToXDLangString());
214
+ initParam.Lang.FormatToXDLangString(),
215
+ initParam.PackageType);
215
216
 
216
217
  XDGEventBus.Publish(XDGEvents.TdsSDKInit, tapConfig.ClientId,
217
218
  tapConfig.ClientToken,
@@ -237,7 +238,6 @@ namespace XD.SDK.Common.Internal.Standalone
237
238
  }
238
239
  catch (Exception e)
239
240
  {
240
-
241
241
  }
242
242
  }
243
243
  }
@@ -17,7 +17,7 @@ namespace XD.SDK.Common.Internal.Standalone
17
17
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
18
18
  {
19
19
  XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
20
- webView.ProviderWebTrans().Transparent(GetName(), data);
20
+ webView.ProviderWebTrans()?.Transparent(GetName(), data);
21
21
  }
22
22
  }
23
23
  }
@@ -16,7 +16,7 @@ namespace XD.SDK.Common.Internal.Standalone
16
16
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
17
17
  {
18
18
  XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
19
- webView.ProviderWebTrans().Transparent(Tag, data);
19
+ webView.ProviderWebTrans()?.Transparent(Tag, data);
20
20
  }
21
21
  }
22
22
  }
@@ -16,12 +16,9 @@ namespace XD.SDK.Common.Internal.Standalone
16
16
  {
17
17
  XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
18
18
  var dic = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
19
- dic.TryGetValue("extra", out var extra);
20
- callbackFunction?.Invoke(new WebBridgeResponse.Success
21
- {
22
- Data = extra
23
- });
19
+ webView.ProviderWebTrans()?.TransObserver(WebActionEnum.CLOSE, dic);
24
20
  UIManager.Dismiss();
21
+ webView.Release();
25
22
  }
26
23
  }
27
24
  }
@@ -16,7 +16,7 @@ namespace XD.SDK.Common.Internal.Standalone
16
16
  {
17
17
  XDGLogger.Debug("GameMessageWebFunction.Handler()");
18
18
  var dic = JsonConvert.DeserializeObject<Dictionary<string, object>>(data);
19
- webView.ProviderWebTrans().TransObserver(WebActionEnum.MESSAGE, dic);
19
+ webView.ProviderWebTrans()?.TransObserver(WebActionEnum.MESSAGE, dic);
20
20
  }
21
21
  }
22
22
  }
@@ -16,7 +16,7 @@ namespace XD.SDK.Common.Internal.Standalone
16
16
  public void Handler(IBridgeWebView webView, string data, Action<object> callbackFunction)
17
17
  {
18
18
  XDGLogger.Debug($"message from javascript by:{GetName()} with data:{data}");
19
- webView.ProviderWebTrans().Transparent(GetName(), data);
19
+ webView.ProviderWebTrans()?.Transparent(GetName(), data);
20
20
  }
21
21
  }
22
22
  }
@@ -34,39 +34,46 @@ namespace XD.SDK.Common.Internal.Standalone
34
34
 
35
35
  private void OnMessageEmitted()
36
36
  {
37
- webView.MessageEmitted += (_, args) =>
37
+ try
38
38
  {
39
- try
39
+ webView.MessageEmitted += (_, args) =>
40
40
  {
41
- if (!IsWhiteList())
42
- {
43
- XDGLogger.Debug($"WebBridgeController OnMessageEmitted 白名单校验失败");
44
- return;
45
- }
46
-
47
- var content = DecodeBase64String(args.Value);
48
- var dic = JsonConvert.DeserializeObject<Dictionary<string, object>>(content);
49
- if (dic == null)
41
+ try
50
42
  {
51
- XDGLogger.Debug($"WebBridgeController OnMessageEmitted 解析 jsBridge 参数失败");
52
- return;
43
+ if (!IsWhiteList())
44
+ {
45
+ XDGLogger.Debug($"WebBridgeController OnMessageEmitted 白名单校验失败");
46
+ return;
47
+ }
48
+
49
+ var content = DecodeBase64String(args.Value);
50
+ var dic = JsonConvert.DeserializeObject<Dictionary<string, object>>(content);
51
+ if (dic == null)
52
+ {
53
+ XDGLogger.Debug($"WebBridgeController OnMessageEmitted 解析 jsBridge 参数失败");
54
+ return;
55
+ }
56
+
57
+ if (dic.TryGetValue("responseId", out var responseId))
58
+ {
59
+ DispatchResponse(responseId as string, dic["responseData"]);
60
+ return;
61
+ }
62
+
63
+ dic.TryGetValue("handlerName", out var handlerName);
64
+ dic.TryGetValue("callbackId", out var callbackId);
65
+ DispatchHandler(handlerName as string, callbackId as string, dic["data"]);
53
66
  }
54
-
55
- if (dic.TryGetValue("responseId", out var responseId))
67
+ catch (Exception e)
56
68
  {
57
- DispatchResponse(responseId as string, dic["responseData"]);
58
- return;
69
+ XDGLogger.Debug(e.Message);
59
70
  }
60
-
61
- dic.TryGetValue("handlerName", out var handlerName);
62
- dic.TryGetValue("callbackId", out var callbackId);
63
- DispatchHandler(handlerName as string, callbackId as string, dic["data"]);
64
- }
65
- catch (Exception e)
66
- {
67
- XDGLogger.Debug(e.Message);
68
- }
69
- };
71
+ };
72
+ }
73
+ catch (Exception e)
74
+ {
75
+ XDGLogger.Debug(e.Message);
76
+ }
70
77
  }
71
78
 
72
79
  public void RegisterHandler(IWebFunction handler)
@@ -88,8 +88,15 @@ namespace XD.SDK.Common.Internal.Standalone
88
88
 
89
89
  private void OnDestroy()
90
90
  {
91
- canvasWebViewPrefab.Destroy();
92
- webBridgeController.Release();
91
+ try
92
+ {
93
+ webBridgeController?.Release();
94
+ canvasWebViewPrefab?.Destroy();
95
+ }
96
+ catch (Exception e)
97
+ {
98
+ XDGLogger.Warn(e.Message);
99
+ }
93
100
  }
94
101
 
95
102
  private async void OnBackButtonClicked()
@@ -167,7 +174,7 @@ namespace XD.SDK.Common.Internal.Standalone
167
174
 
168
175
  if (loading)
169
176
  {
170
- UIManager.ShowLoading();
177
+ UIManager.ShowLoading(false, 5);
171
178
  }
172
179
  }
173
180
 
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.0.1",
4
+ "version": "7.0.2",
5
5
  "description": "XDGSDK",
6
6
  "unity": "2019.3",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.xd.sdk.foundation": "7.0.1"
9
+ "com.xd.sdk.foundation": "7.0.2"
10
10
  }
11
11
  }