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.
- package/Editor/Android/XDCommonAndroidGradleProcessor.cs +1 -3
- package/Editor/iOS/XDGIOSCommonProcessor.cs +7 -5
- package/Plugins/Android/libs/XDGCommon_7.1.0.aar +0 -0
- package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.1.0.aar +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/NSDictionary+XDG.h +1 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDCommonSDK.h +2 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDFacebookInfo.h +2 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementConfig.h +26 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGAnnouncementManager.h +28 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGBridgeWeb.h +5 -3
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +2 -2
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGKuaiShouShareParam.h.meta +7 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGLogger.h +2 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGWebParams.h +2 -1
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDKuaiShouInfo.h.meta +7 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
- package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Headers/XDTapSDK4WrapperSDK.h +3 -3
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/de.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/de.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/en.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/en.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/es.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/es.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/fr.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/fr.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/in.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/in.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ja.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ja.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ko.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ko.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ms.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ms.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/pt.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/pt.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ru.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/ru.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/th.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/th.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/tr.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/tr.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/vi.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/vi.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hans.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hans.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hant.lproj/Localizable.strings.meta +7 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle/zh-Hant.lproj.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/TapSupportResource.bundle.meta +8 -0
- package/Plugins/iOS/XDTapSDK4WrapperSDK.framework/XDTapSDK4WrapperSDK +0 -0
- package/Resources/Prefabs/XDSDKUI.prefab +1 -1
- package/Resources/Prefabs/XDWebBridgeView.prefab +1 -1
- package/Runtime/Internal/Mobile/Bridge/BridgeConstants.cs +7 -0
- package/Runtime/Internal/Mobile/CommonFeaturesImpl.cs +1 -0
- package/Runtime/Internal/Standalone/CommonFeaturesImpl.cs +12 -7
- package/Runtime/Internal/Standalone/Config/AppConfig.cs +3 -1
- package/Runtime/Internal/Standalone/Config/Config.cs +3 -1
- package/Runtime/Internal/Standalone/Config/ConfigModule.cs +8 -4
- package/Runtime/Internal/Standalone/Utils/SteamWrapper.cs +77 -32
- package/Runtime/Internal/Standalone/Web/Function/BackgroundColorWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/CloseVisibleWebFunction.cs +1 -2
- package/Runtime/Internal/Standalone/Web/Function/CloseWebFunction.cs +2 -5
- package/Runtime/Internal/Standalone/Web/Function/GameMessageWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/Function/NavigationWebFunction.cs +1 -1
- package/Runtime/Internal/Standalone/Web/PreloadWebTransmit.cs +1 -0
- package/Runtime/Internal/Standalone/Web/PreloadWebTransmit.cs.meta +3 -0
- package/Runtime/Internal/Standalone/Web/WebBridgeController.cs +34 -27
- package/Runtime/Internal/Standalone/Web/WebRequest.cs +62 -13
- package/Runtime/Internal/Standalone/Web/XDWebBridgeView.cs +18 -37
- package/package.json +2 -2
- package/Plugins/Android/libs/XDGCommon_7.0.1.aar +0 -0
- package/Plugins/Android/libs/XDGTapTapWrapperInternal_7.0.1.aar +0 -0
- /package/Plugins/Android/libs/{XDGBridgeCommon_v7_7.0.1.aar → XDGBridgeCommon_v7_7.1.0.aar} +0 -0
- /package/Plugins/Android/libs/{XDGBridgeCommon_v7_7.0.1.aar.meta → XDGBridgeCommon_v7_7.1.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDGCommon_7.0.1.aar.meta → XDGCommon_7.1.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDGTapTapWrapperInternal_7.0.1.aar.meta → XDGTapTapWrapperInternal_7.1.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDTapTapWrapper_7.0.1.aar → XDTapTapWrapper_7.1.0.aar} +0 -0
- /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.
|
|
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
|
-
|
|
457
|
-
|
|
458
|
-
if (!item.Key.Equals("taptap"))
|
|
456
|
+
if (customPlistDic != null) {
|
|
457
|
+
foreach (var item in customPlistDic)
|
|
459
458
|
{
|
|
460
|
-
|
|
459
|
+
if (!item.Key.Equals("taptap"))
|
|
460
|
+
{
|
|
461
|
+
_rootDic.SetString(item.Key, item.Value.ToString());
|
|
462
|
+
}
|
|
461
463
|
}
|
|
462
464
|
}
|
|
463
465
|
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
|
@@ -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,
|
|
24
|
+
@property (nonatomic, assign) BOOL noUI;
|
|
24
25
|
|
|
25
26
|
+ (XDGWebParams *)paramsWithUrl:(NSString *)url;
|
|
26
27
|
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
19
|
-
#define XDGTapSDK4_VERSION_CODE @"
|
|
20
|
-
// HASH
|
|
18
|
+
#define XDGTapSDK4_VERSION @"7.1.0"
|
|
19
|
+
#define XDGTapSDK4_VERSION_CODE @"7001000"
|
|
20
|
+
// HASH 669fedcf
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|