com.xd.sdk.common 7.0.1 → 7.1.0

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 (80) hide show
  1. package/Editor/Android/XDCommonAndroidGradleProcessor.cs +1 -3
  2. package/Editor/iOS/XDGIOSCommonProcessor.cs +7 -5
  3. package/Plugins/Android/libs/XDGCommon_7.1.0.aar +0 -0
  4. package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.1.0.aar +0 -0
  5. package/Plugins/iOS/XDCommonSDK.framework/Headers/NSDictionary+XDG.h +1 -0
  6. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDCommonSDK.h +2 -0
  7. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDFacebookInfo.h +2 -0
  8. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementConfig.h +26 -0
  9. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementManager.h +28 -0
  10. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGBridgeWeb.h +5 -3
  11. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +2 -2
  12. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGKuaiShouShareParam.h.meta +7 -0
  13. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGLogger.h +2 -0
  14. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGWebParams.h +2 -1
  15. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDKuaiShouInfo.h.meta +7 -0
  16. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
  17. package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
  18. package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
  19. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK.h +3 -3
  20. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Info.plist +0 -0
  21. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/de.lproj/Localizable.strings.meta +7 -0
  22. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/de.lproj.meta +8 -0
  23. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/en.lproj/Localizable.strings.meta +7 -0
  24. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/en.lproj.meta +8 -0
  25. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/es.lproj/Localizable.strings.meta +7 -0
  26. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/es.lproj.meta +8 -0
  27. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/fr.lproj/Localizable.strings.meta +7 -0
  28. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/fr.lproj.meta +8 -0
  29. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/in.lproj/Localizable.strings.meta +7 -0
  30. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/in.lproj.meta +8 -0
  31. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ja.lproj/Localizable.strings.meta +7 -0
  32. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ja.lproj.meta +8 -0
  33. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ko.lproj/Localizable.strings.meta +7 -0
  34. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ko.lproj.meta +8 -0
  35. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ms.lproj/Localizable.strings.meta +7 -0
  36. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ms.lproj.meta +8 -0
  37. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/pt.lproj/Localizable.strings.meta +7 -0
  38. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/pt.lproj.meta +8 -0
  39. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ru.lproj/Localizable.strings.meta +7 -0
  40. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ru.lproj.meta +8 -0
  41. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/th.lproj/Localizable.strings.meta +7 -0
  42. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/th.lproj.meta +8 -0
  43. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/tr.lproj/Localizable.strings.meta +7 -0
  44. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/tr.lproj.meta +8 -0
  45. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/vi.lproj/Localizable.strings.meta +7 -0
  46. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/vi.lproj.meta +8 -0
  47. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hans.lproj/Localizable.strings.meta +7 -0
  48. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hans.lproj.meta +8 -0
  49. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hant.lproj/Localizable.strings.meta +7 -0
  50. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hant.lproj.meta +8 -0
  51. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle.meta +8 -0
  52. package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/XDTapSDK4WrapperSDK +0 -0
  53. package/Resources/Prefabs/XDSDKUI.prefab +1 -1
  54. package/Resources/Prefabs/XDWebBridgeView.prefab +1 -1
  55. package/Runtime/Internal/Mobile/Bridge/BridgeConstants.cs +7 -0
  56. package/Runtime/Internal/Mobile/CommonFeaturesImpl.cs +1 -0
  57. package/Runtime/Internal/Standalone/CommonFeaturesImpl.cs +12 -7
  58. package/Runtime/Internal/Standalone/Config/AppConfig.cs +3 -1
  59. package/Runtime/Internal/Standalone/Config/Config.cs +3 -1
  60. package/Runtime/Internal/Standalone/Config/ConfigModule.cs +8 -4
  61. package/Runtime/Internal/Standalone/Utils/SteamWrapper.cs +77 -32
  62. package/Runtime/Internal/Standalone/Web/Function/BackgroundColorWebFunction.cs +1 -1
  63. package/Runtime/Internal/Standalone/Web/Function/CloseVisibleWebFunction.cs +1 -2
  64. package/Runtime/Internal/Standalone/Web/Function/CloseWebFunction.cs +2 -5
  65. package/Runtime/Internal/Standalone/Web/Function/GameMessageWebFunction.cs +1 -1
  66. package/Runtime/Internal/Standalone/Web/Function/NavigationWebFunction.cs +1 -1
  67. package/Runtime/Internal/Standalone/Web/PreloadWebTransmit.cs +1 -0
  68. package/Runtime/Internal/Standalone/Web/PreloadWebTransmit.cs.meta +3 -0
  69. package/Runtime/Internal/Standalone/Web/WebBridgeController.cs +34 -27
  70. package/Runtime/Internal/Standalone/Web/WebRequest.cs +62 -13
  71. package/Runtime/Internal/Standalone/Web/XDWebBridgeView.cs +18 -37
  72. package/package.json +2 -2
  73. package/Plugins/Android/libs/XDGCommon_7.0.1.aar +0 -0
  74. package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.0.1.aar +0 -0
  75. /package/Plugins/Android/libs/{XDGBridgeCommon_v7_7.0.1.aar → XDGBridgeCommon_v7_7.1.0.aar} +0 -0
  76. /package/Plugins/Android/libs/{XDGBridgeCommon_v7_7.0.1.aar.meta → XDGBridgeCommon_v7_7.1.0.aar.meta} +0 -0
  77. /package/Plugins/Android/libs/{XDGCommon_7.0.1.aar.meta → XDGCommon_7.1.0.aar.meta} +0 -0
  78. /package/Plugins/Android/libs/{XDGTapTapWrapperInternal_7.0.1.aar.meta → XDGTapTapWrapperInternal_7.1.0.aar.meta} +0 -0
  79. /package/Plugins/Android/libs/{XDTapTapWrapper_7.0.1.aar → XDTapTapWrapper_7.1.0.aar} +0 -0
  80. /package/Plugins/Android/libs/{XDTapTapWrapper_7.0.1.aar.meta → XDTapTapWrapper_7.1.0.aar.meta} +0 -0
@@ -1,4 +1,3 @@
1
- #if UNITY_EDITOR && UNITY_ANDROID
2
1
  using System.Collections.Generic;
3
2
  using System.IO;
4
3
  using UnityEditor.Build;
@@ -108,5 +107,4 @@ namespace XD.SDK.Common.Editor
108
107
  if (File.Exists(targetPath)) File.Delete(targetPath);
109
108
  }
110
109
  }
111
- }
112
- #endif
110
+ }
@@ -251,7 +251,7 @@ namespace XD.SDK.Common.Editor
251
251
  }
252
252
  else
253
253
  {
254
- Debug.LogError("[XDSDK] 资源文件夹不存在: " + moduleIOSResourcesFolder);
254
+ Debug.LogWarning("[XDSDK] 资源文件夹不存在: " + moduleIOSResourcesFolder);
255
255
  }
256
256
  }
257
257
 
@@ -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
 
@@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
24
24
  - (NSString *)xdg_jsonStringNotPretty;
25
25
  - (NSString *)xdg_jsonStringPretty;
26
26
  - (NSDictionary *)safeDictionary;
27
+ - (NSString *)xdg_queryString;
27
28
  @end
28
29
 
29
30
  NS_ASSUME_NONNULL_END
@@ -114,3 +114,5 @@ FOUNDATION_EXPORT const unsigned char XDCommonSDKVersionString[];
114
114
  #import <XDCommonSDK/XDGWebFunctionHolder.h>
115
115
 
116
116
  #import <XDCommonSDK/XDGTapSDK.h>
117
+ #import <XDCommonSDK/XDGAnnouncementManager.h>
118
+ #import <XDCommonSDK/XDGAnnouncementConfig.h>
@@ -13,6 +13,8 @@ NS_ASSUME_NONNULL_BEGIN
13
13
 
14
14
  @property (nonatomic, copy) NSString *appId;
15
15
  @property (nonatomic, copy) NSString *clientToken;
16
+ @property (nonatomic, copy) NSString *gameName;
17
+ @property (nonatomic, strong) NSArray *loginPermissions;
16
18
 
17
19
  + (instancetype)instanceWithInfoDic:(NSDictionary *)infoDic;
18
20
  @end
@@ -0,0 +1,26 @@
1
+ //
2
+ // XDGAnnouncementConfig.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2025/10/20.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDGAnnouncementConfig : NSObject
13
+
14
+ /// 服务器 Code
15
+ @property (nonatomic, strong, nullable) NSString *serverCode;
16
+ /// 渠道标签
17
+ @property (nonatomic, strong, nullable) NSString *channel;
18
+ /// 透传参数
19
+ @property (nonatomic, strong, nullable) NSString *extra;
20
+
21
+ + (instancetype)configWithDict:(NSDictionary *)dict;
22
+
23
+ - (NSDictionary *)toDictionary;
24
+ @end
25
+
26
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // XDGAnnouncementManager.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2025/10/14.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #import <XDCommonSDK/XDGWebDefines.h>
11
+ #import <XDCommonSDK/XDGAnnouncementConfig.h>
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ @interface XDGAnnouncementManager : NSObject
16
+
17
+ /// 打开公告页面
18
+ /// - Parameters:
19
+ /// - data: 数据
20
+ /// - handler: 回调
21
+ + (void)openPageWithConfig:(XDGAnnouncementConfig *)config handler:(XDGWebActionHandler _Nullable)handler;
22
+
23
+ /// 获取公告未读状态
24
+ /// - Parameter handler: 回调
25
+ + (void)requestUnreadWithConfig:(XDGAnnouncementConfig *)config handler:(void (^)(bool hasRedDot))handler;
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -15,11 +15,11 @@ NS_ASSUME_NONNULL_BEGIN
15
15
 
16
16
  @property (nonatomic, strong, readonly) WKWebView *webView;
17
17
 
18
- @property (nonatomic, weak) UIViewController *rootViewController;
18
+ @property (nonatomic, weak, nullable) UIViewController *rootViewController;
19
19
 
20
- @property (nonatomic, weak) id<XDGBridgeIWebController> controller;
20
+ @property (nonatomic, weak, nullable) id<XDGBridgeIWebController> controller;
21
21
 
22
- @property (nonatomic, copy) XDGWebActionHandler webHandler;
22
+ @property (nonatomic, copy, nullable) XDGWebActionHandler webHandler;
23
23
 
24
24
  - (instancetype)initWithDefault:(BOOL)isPreload;
25
25
 
@@ -29,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
29
29
 
30
30
  - (void)dismiss;
31
31
 
32
+ - (void)dismissWithData:(NSDictionary *_Nullable)data;
33
+
32
34
  @end
33
35
 
34
36
  NS_ASSUME_NONNULL_END
@@ -53,8 +53,6 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
53
53
  @property (nonatomic, strong) XDAppleInfo *appleInfo;
54
54
  /// Facebook 配置信息
55
55
  @property (nonatomic, strong) XDFacebookInfo *facebookInfo;
56
- /// Facebook 授权权限,如果使用 Facebook 登录,必须配置
57
- @property (nonatomic, strong) NSArray *facebookLoginPersmissions;
58
56
  /// TikTok 配置信息
59
57
  @property (nonatomic, strong) XDTikTokInfo *tiktokInfo;
60
58
  /// Line 配置信息
@@ -110,6 +108,8 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
110
108
  @property (nonatomic, assign) BOOL pushAutoInit;
111
109
  /// 关闭客服
112
110
  @property (nonatomic, assign) BOOL disableSupport;
111
+ /// 关闭网页预热
112
+ @property (nonatomic, assign) BOOL disableWebPreload;
113
113
 
114
114
  - (BOOL)isCN;
115
115
 
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 4ef4fde55809047faa517b09986f46fd
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -23,6 +23,8 @@ typedef void (^XDGLoggerCallback) (NSString *content);
23
23
 
24
24
  + (void)commonSecureLog:(NSString *)content;
25
25
 
26
+ + (void)commonLog:(NSString *)content secureContent:(NSString *_Nullable)secureContent;
27
+
26
28
  + (void)logWithTag:(NSString *)tag content:(NSString *)content;
27
29
 
28
30
  + (void)logSecureWithTag:(NSString *)tag content:(NSString *)content;
@@ -17,10 +17,11 @@ NS_ASSUME_NONNULL_BEGIN
17
17
  @property (nonatomic, strong, nullable) NSString *targetUrl;
18
18
  @property (nonatomic, strong, nullable) NSString *backgroundColor;
19
19
  @property (nonatomic, strong, nullable) NSString *navigationTitle;
20
+ @property (nonatomic, copy, nullable) XDGWebActionHandler webHandler;
20
21
  @property (nonatomic, assign) BOOL showNavigationBar;
21
22
  @property (nonatomic, assign) BOOL showCloseButton;
22
23
  @property (nonatomic, assign) BOOL showLoading;
23
- @property (nonatomic, copy) XDGWebActionHandler webHandler;
24
+ @property (nonatomic, assign) BOOL noUI;
24
25
 
25
26
  + (XDGWebParams *)paramsWithUrl:(NSString *)url;
26
27
 
@@ -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.1.0"
9
+ #define XDSDK_VERSION_CODE @"7001000"
10
+ // HASH 669fedcf
@@ -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.1.0"
19
+ #define XDGTapSDK4_VERSION_CODE @"7001000"
20
+ // HASH 669fedcf
@@ -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:
@@ -138,7 +138,7 @@ Canvas:
138
138
  m_AdditionalShaderChannelsFlag: 0
139
139
  m_UpdateRectTransformForStandalone: 0
140
140
  m_SortingLayerID: 0
141
- m_SortingOrder: 999
141
+ m_SortingOrder: 1001
142
142
  m_TargetDisplay: 0
143
143
  --- !u!114 &114453665955884244
144
144
  MonoBehaviour:
@@ -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
@@ -46,6 +46,13 @@ namespace XD.SDK.Common.Internal.Mobile.Bridge
46
46
  public const string ServiceImpl = "com.xd.sdk.push.bridge.BridgePushImpl";
47
47
  }
48
48
 
49
+ public static class Announcement
50
+ {
51
+ public const string BridgeName = "XDGBridgeAnnouncement";
52
+ public const string ServiceName = "com.xd.sdk.announcement.bridge.BridgeAnnouncement";
53
+ public const string ServiceImpl = "com.xd.sdk.announcement.bridge.BridgeAnnouncementImpl";
54
+ }
55
+
49
56
  }
50
57
  }
51
58
  #endif
@@ -14,6 +14,7 @@ namespace XD.SDK.Common.Internal.Mobile
14
14
  public class CommonFeaturesImpl : IXDGCommonExtended
15
15
  {
16
16
  private static CommonFeaturesImpl instance;
17
+
17
18
  private static readonly object lockObj = new object();
18
19
 
19
20
  public static CommonFeaturesImpl Instance
@@ -184,14 +184,14 @@ 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();
191
191
  //TODO 初始化客服
192
192
  InitSupportModule();
193
193
  // TODO UA 设置因为 WebView Demo 得提前设置,所有后续需要改造
194
- InitWebViewUa();
194
+ InitWebView();
195
195
 
196
196
  isInited = true;
197
197
  }
@@ -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,
@@ -228,16 +229,20 @@ namespace XD.SDK.Common.Internal.Standalone
228
229
  XDGEventBus.Publish(XDGEvents.AccountSupportStartPolling);
229
230
  }
230
231
 
231
- private static void InitWebViewUa()
232
+ private static void InitWebView()
232
233
  {
233
234
  var region = ConfigModule.IsGlobal ? "global" : "cn";
234
235
  try
235
236
  {
236
237
  Web.SetUserAgent($"{WebBridgeConstants.UserAgent} Unity/{Application.unityVersion} XDSDK/{XDGConstants.SDK_VERSION} ({XDGConstants.SDK_VERSION_CODE}; {region})");
237
238
  }
238
- catch (Exception e)
239
+ catch (Exception)
240
+ {
241
+ // ignore
242
+ }
243
+ if (!ConfigModule.DisableWebPreload)
239
244
  {
240
-
245
+ WebRequest.Preload(ConfigModule.IsGlobal ? "https://poster.xd.com/r/versions.html" : "https://poster.xd.cn/r/versions.html");
241
246
  }
242
247
  }
243
248
  }