com.xd.sdk.common 6.26.2 → 6.28.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 (50) hide show
  1. package/Editor/Android/AndroidGradleProjectConfig.cs +66 -0
  2. package/Editor/Android/AndroidGradleProjectConfig.cs.meta +11 -0
  3. package/Editor/Android/VersionCatalog.cs +41 -0
  4. package/Editor/Android/VersionCatalog.cs.meta +3 -0
  5. package/Editor/Android/XDAndroidProjectProcessor.cs +323 -0
  6. package/Editor/Android/XDAndroidProjectProcessor.cs.meta +11 -0
  7. package/Editor/Android.meta +8 -0
  8. package/Editor/XDConfigModel.cs +59 -0
  9. package/Editor/XDConfigModel.cs.meta +1 -1
  10. package/Editor/XDGIOSCommonProcessor.cs +48 -15
  11. package/Editor/XDGScriptHandlerProcessor.cs +55 -0
  12. package/Mobile/Bridge/BridgeConstants.cs +48 -0
  13. package/Mobile/Bridge/BridgeConstants.cs.meta +11 -0
  14. package/Mobile/Bridge.meta +8 -0
  15. package/Plugins/Android/libs/XDGCommon_6.28.0.aar +0 -0
  16. package/Plugins/Android/libs/{XDGCommon_6.26.2.aar.meta → XDGCommon_6.28.0.aar.meta} +1 -1
  17. package/Plugins/iOS/XDCommonSDK.framework/Headers/NSError+XDG.h +3 -0
  18. package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalRouterSchemes.h +3 -0
  19. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDCommonSDK.h +2 -0
  20. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDConfigManager.h +1 -0
  21. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGBridgeWeb.h +2 -0
  22. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +5 -0
  23. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGDouYinShareParam.h +1 -1
  24. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGFacebookShareParam.h +1 -1
  25. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGInstagramShareParam.h +32 -0
  26. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGInstagramShareParam.h.meta +7 -0
  27. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGLineShareParam.h +1 -1
  28. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGLogger.h +13 -0
  29. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGPaymentLogger.h +9 -0
  30. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGPush.h +1 -1
  31. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGQQShareParam.h +1 -1
  32. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGShareParamBase.h +4 -2
  33. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGTapTapShareParam.h +1 -1
  34. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGThirdSDKHelper.h +2 -0
  35. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGTikTokShareParam.h +32 -0
  36. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGTikTokShareParam.h.meta +7 -0
  37. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGTwitterShareParam.h +1 -1
  38. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGWeChatShareParam.h +1 -1
  39. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGWebParams.h +3 -0
  40. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGWebRequest.h +1 -0
  41. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGWeiboShareParam.h +1 -1
  42. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGXHSShareParam.h +1 -1
  43. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDTikTokInfo.h +18 -0
  44. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDTikTokInfo.h.meta +7 -0
  45. package/Plugins/iOS/XDCommonSDK.framework/Headers/XDVersion.h +3 -3
  46. package/Plugins/iOS/XDCommonSDK.framework/Info.plist +0 -0
  47. package/Plugins/iOS/XDCommonSDK.framework/XDCommonSDK +0 -0
  48. package/Plugins/iOS/XDCommonSDK.framework.meta +54 -1
  49. package/package.json +1 -1
  50. package/Plugins/Android/libs/XDGCommon_6.26.2.aar +0 -0
@@ -45,6 +45,61 @@ namespace XD.SDK.Common.Editor
45
45
  streamWriter.Write(all);
46
46
  streamWriter.Close();
47
47
  }
48
+
49
+ public void WriteBetween(string start, string end, string text)
50
+ {
51
+ StreamReader streamReader = new StreamReader(filePath);
52
+ string all = streamReader.ReadToEnd();
53
+ if (string.IsNullOrEmpty(all))
54
+ {
55
+ Debug.LogError("读取文件失败 --- 文件路径 : " + filePath);
56
+ return;
57
+ }
58
+
59
+ // 兼容不同 OS 的 Line Separators
60
+ start = Regex.Replace(start, "\r\n", "\n", RegexOptions.IgnoreCase);
61
+ end = Regex.Replace(end, "\r\n", "\n", RegexOptions.IgnoreCase);
62
+ all = Regex.Replace(all, "\r\n", "\n", RegexOptions.IgnoreCase);
63
+ streamReader.Close();
64
+
65
+ int startIndex = -1;
66
+ int endIndex = -1;
67
+
68
+ while (true)
69
+ {
70
+ // 找到下一个 start
71
+ startIndex = all.IndexOf(start, startIndex + 1, StringComparison.Ordinal);
72
+ if (startIndex == -1)
73
+ {
74
+ Debug.LogWarning(filePath + "中没有找到相邻的 start 和 end");
75
+ return;
76
+ }
77
+
78
+ // 获取 start 后的下一行内容
79
+ int nextLineIndex = all.IndexOf("\n", startIndex + start.Length, StringComparison.Ordinal);
80
+ if (nextLineIndex == -1) continue; // 没有下一行,继续找下一个 start
81
+
82
+ int lineEndIndex = all.IndexOf("\n", nextLineIndex + 1, StringComparison.Ordinal);
83
+ if (lineEndIndex == -1) lineEndIndex = all.Length; // 如果是最后一行
84
+
85
+ string nextLineContent = all.Substring(nextLineIndex + 1, lineEndIndex - nextLineIndex - 1);
86
+
87
+ // 检查下一行内容是否包含 end
88
+ if (nextLineContent.Contains(end))
89
+ {
90
+ endIndex = all.IndexOf(end, nextLineIndex + 1, StringComparison.Ordinal);
91
+ break; // 找到相邻的 start 和包含 end 的下一行
92
+ }
93
+ }
94
+
95
+ // 在结束字符串之前插入内容
96
+ endIndex = all.LastIndexOf("\n", endIndex, StringComparison.Ordinal);
97
+ all = all.Substring(0, endIndex) + "\n" + text + "\n" + all.Substring(endIndex);
98
+
99
+ StreamWriter streamWriter = new StreamWriter(filePath);
100
+ streamWriter.Write(all);
101
+ streamWriter.Close();
102
+ }
48
103
 
49
104
  public void Replace(string below, string newText)
50
105
  {
@@ -0,0 +1,48 @@
1
+ #if UNITY_ANDROID || UNITY_IOS
2
+ namespace XD.SDK.Common.Internal.Mobile.Bridge
3
+ {
4
+ public static class BridgeConstants
5
+ {
6
+
7
+ // copy from 7.x, 保留
8
+ // public const string VersionKey = "Engine-Version";
9
+
10
+ // public const string PlatformKey = "Engine-Platform";
11
+
12
+ // public static class Common
13
+ // {
14
+ // public const string BRIDGE_NAME = "XDGBridgeCommon";
15
+ // public const string SERVICE_NAME = "com.xd.sdk.common.bridge.BridgeCommon";
16
+ // public const string SERVICE_IMPL = "com.xd.sdk.common.bridge.BridgeCommonImpl";
17
+ // }
18
+ //
19
+ // public static class Account
20
+ // {
21
+ // public const string BRIDGE_NAME = "XDGBridgeAccount";
22
+ // public const string SERVICE_NAME = "com.xd.sdk.account.bridge.BridgeAccount";
23
+ // public const string SERVICE_IMPL = "com.xd.sdk.account.bridge.BridgeAccountImpl";
24
+ // }
25
+ //
26
+ // public static class Payment
27
+ // {
28
+ // public const string BRIDGE_NAME = "XDGBridgePayment";
29
+ // public const string SERVICE_NAME = "com.xd.sdk.payment.bridge.BridgePayment";
30
+ // public const string SERVICE_IMPL = "com.xd.sdk.payment.bridge.BridgePaymentImpl";
31
+ // }
32
+ //
33
+ // public static class Share
34
+ // {
35
+ // public const string BRIDGE_NAME = "XDGBridgeSharing";
36
+ // public const string SERVICE_NAME = "com.xd.sdk.sharing.bridge.BridgeSharing";
37
+ // public const string SERVICE_IMPL = "com.xd.sdk.sharing.bridge.BridgeSharingImpl";
38
+ // }
39
+
40
+ public static class Push
41
+ {
42
+ public const string BRIDGE_NAME = "XDGBridgePush";
43
+ public const string SERVICE_NAME = "com.xd.sdk.push.bridge.BridgePush";
44
+ public const string SERVICE_IMPL = "com.xd.sdk.push.bridge.BridgePushImpl";
45
+ }
46
+ }
47
+ }
48
+ #endif
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: e8bcefb10e1a44797b3657b7a3909ee7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: df692a5b133f34192b497450fbe6718d
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: e686a7aff623e41a59d2ddb495336e95
2
+ guid: 5fa00129f07884cc581d19d1efd4d0fb
3
3
  PluginImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2
@@ -16,9 +16,12 @@ static const int XDGErrorCodeNotLogin = 60003;
16
16
  static const int XDGErrorCodeCancelled = 60010;
17
17
  static const int XDGErrorCodeInvalidParam = 60020;
18
18
  static const int XDGErrorCodeServiceNotAvailable = 60030;
19
+ static const int XDGErrorCodeNetworkError = 60040;
19
20
 
20
21
  static const int XDGErrorCodeAuthTypeNotAvailable = 62001; // Current auth type is not available.
21
22
 
23
+ static const int XDGErrorCodePaymentInvalidProduct = 63001;
24
+
22
25
  @interface NSError (XDG)
23
26
 
24
27
  + (NSError *)XDGErrorAccountWithCode:(NSInteger)code description:(NSString *)description;
@@ -35,6 +35,9 @@ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_FACEBOOK;
35
35
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_LINE;
36
36
  FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_TWITTER;
37
37
 
38
+ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_TIKTOK;
39
+ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_INSTAGRAM;
40
+
38
41
  @interface TDSGlobalRouterSchemes : NSObject
39
42
 
40
43
  @end
@@ -100,6 +100,8 @@ FOUNDATION_EXPORT const unsigned char XDCommonSDKVersionString[];
100
100
  #import <XDCommonSDK/XDGXHSShareParam.h>
101
101
  #import <XDCommonSDK/XDGDouyinShareParam.h>
102
102
  #import <XDCommonSDK/XDGTapTapShareParam.h>
103
+ #import <XDCommonSDK/XDGTikTokShareParam.h>
104
+ #import <XDCommonSDK/XDGInstagramShareParam.h>
103
105
  #import <XDCommonSDK/XDGAgreementManager.h>
104
106
 
105
107
  #import <XDCommonSDK/XDGCommonTool.h>
@@ -58,6 +58,7 @@ typedef void (^XDConfigHandler)(BOOL success, NSString *_Nullable msg);
58
58
  + (BOOL)douyinEnable;
59
59
  + (BOOL)xhsEnable;
60
60
  + (BOOL)TTEnable;
61
+ + (BOOL)TikTokEnable;
61
62
 
62
63
  + (BOOL)needReportService;
63
64
  @end
@@ -15,6 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
15
15
 
16
16
  @property (nonatomic, strong, readonly) WKWebView *webView;
17
17
 
18
+ @property (nonatomic, weak) UIViewController *rootViewController;
19
+
18
20
  @property (nonatomic, weak) id<XDGBridgeIWebController> controller;
19
21
 
20
22
  @property (nonatomic, copy) XDGWebActionHandler webHandler;
@@ -15,6 +15,7 @@
15
15
  #import <XDCommonSDK/XDFirebaseInfo.h>
16
16
  #import <XDCommonSDK/XDAdjustInfo.h>
17
17
  #import <XDCommonSDK/XDAppsFlyerInfo.h>
18
+ #import <XDCommonSDK/XDTikTokInfo.h>
18
19
  #import <XDCommonSDK/XDGGameBindEntry.h>
19
20
  #import <XDCommonSDK/XDGAgreementConfig.h>
20
21
  #import <XDCommonSDK/XDWeChatInfo.h>
@@ -57,6 +58,8 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
57
58
  @property (nonatomic, strong) XDFacebookInfo *facebookInfo;
58
59
  /// Facebook 授权权限,如果使用 Facebook 登录,必须配置
59
60
  @property (nonatomic, strong) NSArray *facebookLoginPersmissions;
61
+ /// TikTok 配置信息
62
+ @property (nonatomic, strong) XDTikTokInfo *tiktokInfo;
60
63
  /// Line 配置信息
61
64
  @property (nonatomic, strong) XDLineInfo *lineInfo;
62
65
  /// Twitter 配置信息
@@ -104,6 +107,8 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
104
107
  @property (nonatomic, assign) BOOL enableTapPostAuth;
105
108
  /// WebView 白名单
106
109
  @property (nonatomic, strong) NSArray *webWhiteList;
110
+ /// 自动注册推送
111
+ @property (nonatomic, assign) BOOL pushAutoInit;
107
112
 
108
113
  - (BOOL)isCN;
109
114
 
@@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN
31
31
  @property (nonatomic, strong, nullable) NSString *videoUrl;
32
32
 
33
33
  /// 检查参数是否可用
34
- - (NSError *)checkValid;
34
+ - (NSError *_Nullable)checkValid;
35
35
 
36
36
  @end
37
37
 
@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
28
28
  @property (nonatomic, strong, nullable) NSString *linkSummary;
29
29
 
30
30
  /// 检查参数是否可用
31
- - (NSError *)checkValid;
31
+ - (NSError *_Nullable)checkValid;
32
32
  @end
33
33
 
34
34
  NS_ASSUME_NONNULL_END
@@ -0,0 +1,32 @@
1
+ //
2
+ // XDGInstagramShareParam.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2025/5/21.
6
+ //
7
+
8
+ #import <XDCommonSDK/XDCommonSDK.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDGInstagramShareParam : XDGShareParamBase
13
+ /// 分享的图片
14
+ @property (nonatomic, strong, nullable) UIImage *image;
15
+
16
+ /// 分享的图片的本地沙盒路径
17
+ @property (nonatomic, strong, nullable) NSString *imageUrl;
18
+
19
+ /// 分享的图片 Data
20
+ @property (nonatomic, strong, nullable) NSData *imageData;
21
+
22
+ /// 分享的视频的 localIdentifier
23
+ @property (nonatomic, strong, nullable) NSString *videoId;
24
+
25
+ /// 分享的视频 url
26
+ @property (nonatomic, strong, nullable) NSString *videoUrl;
27
+
28
+ /// 检查参数是否可用
29
+ - (NSError *_Nullable)checkValid;
30
+ @end
31
+
32
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 6232301c77d49433f94245d68a0a11b8
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
28
28
  @property (nonatomic, strong, nullable) NSString *linkUrl;
29
29
 
30
30
  /// 检查参数是否可用
31
- - (NSError *)checkValid;
31
+ - (NSError *_Nullable)checkValid;
32
32
  @end
33
33
 
34
34
  NS_ASSUME_NONNULL_END
@@ -45,4 +45,17 @@ typedef void (^XDGLoggerCallback) (NSString *content);
45
45
 
46
46
  @end
47
47
 
48
+ @interface XDGLogger (WebBridge)
49
+
50
+ + (void)webBridgeLog:(nonnull NSString *)content;
51
+
52
+ + (void)webBridgeLog:(nonnull NSString *)content secureContent:(NSString *_Nullable)secureContent;
53
+ @end
54
+
55
+ @interface XDGLogger (Share)
56
+
57
+ + (void)shareLog:(NSString *_Nullable)content secureContent:(NSString *_Nullable)secureContent;
58
+
59
+ @end
60
+
48
61
  NS_ASSUME_NONNULL_END
@@ -27,6 +27,15 @@ extern NSString * const XDGPLPayTypeRestore;
27
27
  // 开始补单
28
28
  - (void)paymentRestoreStart:(NSString *)productId;
29
29
 
30
+ // 检查支付方式
31
+ - (void)paymentCheckThird;
32
+
33
+ // 支付方式检查失败
34
+ - (void)paymentCheckThirdFailed:(NSString *)reason;
35
+
36
+ // 拉起支付页面
37
+ - (void)paymentOpenWeb;
38
+
30
39
  // 创建订单
31
40
  - (void)createOrder:(NSInteger)quantity;
32
41
 
@@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
39
39
  /// 开启系统通知
40
40
  /// - Parameter handler: 开启结果回调
41
41
  /// - success: 是否成功
42
- + (void)registerPushWithHandler:(void (^)(BOOL success))handler;
42
+ + (void)registerPushWithHandler:(void (^_Nullable)(BOOL success) )handler;
43
43
 
44
44
  /// 设定当前应用图标角标数量
45
45
  /// - Parameter number: 角标数量
@@ -51,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
51
51
  @property (nonatomic, strong, nullable) NSData *linkThumbData;
52
52
 
53
53
  /// 检查参数是否可用
54
- - (NSError *)checkValid;
54
+ - (NSError *_Nullable)checkValid;
55
55
  @end
56
56
 
57
57
  NS_ASSUME_NONNULL_END
@@ -19,7 +19,9 @@ typedef NS_ENUM(NSInteger, XDGSharePlatformType) {
19
19
  XDGSharePlatformTypeFacebook = 5,
20
20
  XDGSharePlatformTypeTwitter = 6,
21
21
  XDGSharePlatformTypeLine = 7,
22
- XDGSharePlatformTypeTapTap = 8
22
+ XDGSharePlatformTypeTapTap = 8,
23
+ XDGSharePlatformTypeTikTok = 9,
24
+ XDGSharePlatformTypeInstagram = 10
23
25
  };
24
26
 
25
27
  typedef NS_ENUM(NSInteger, XDGShareSceneType) {
@@ -42,7 +44,7 @@ typedef void (^XDGShareHandler)(NSError *_Nullable error, BOOL cancel);
42
44
 
43
45
  - (XDGSharePlatformType)getPlatform;
44
46
 
45
- - (NSError *)checkValid;
47
+ - (NSError *_Nullable)checkValid;
46
48
 
47
49
  - (NSDictionary *)generateDictionaryWithHandler:(XDGShareHandler)handler;
48
50
 
@@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
39
39
  @property (nonatomic, strong, nullable) NSString *failUrl;
40
40
 
41
41
  /// 检查参数是否可用
42
- - (NSError *)checkValid;
42
+ - (NSError *_Nullable)checkValid;
43
43
 
44
44
  @end
45
45
 
@@ -11,6 +11,8 @@ NS_ASSUME_NONNULL_BEGIN
11
11
 
12
12
  @interface XDGThirdSDKHelper : NSObject
13
13
 
14
+ + (void)checkThirdSDKInstallStatus;
15
+
14
16
  + (void)initThirdPartySDK;
15
17
 
16
18
  + (void)setupThirdPartySDK:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
@@ -0,0 +1,32 @@
1
+ //
2
+ // XDGTikTokShareParam.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2025/5/21.
6
+ //
7
+
8
+ #import <XDCommonSDK/XDCommonSDK.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDGTikTokShareParam : XDGShareParamBase
13
+ /// 分享的图片
14
+ @property (nonatomic, strong, nullable) UIImage *image;
15
+
16
+ /// 分享的图片的本地沙盒路径
17
+ @property (nonatomic, strong, nullable) NSString *imageUrl;
18
+
19
+ /// 分享的图片 Data
20
+ @property (nonatomic, strong, nullable) NSData *imageData;
21
+
22
+ /// 分享的视频的 localIdentifier
23
+ @property (nonatomic, strong, nullable) NSString *videoId;
24
+
25
+ /// 分享的视频 url
26
+ @property (nonatomic, strong, nullable) NSString *videoUrl;
27
+
28
+ /// 检查参数是否可用
29
+ - (NSError *_Nullable)checkValid;
30
+ @end
31
+
32
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: c7add8712255b421b9edbdacc7ab111b
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
28
28
  @property (nonatomic, strong, nullable) NSString *linkUrl;
29
29
 
30
30
  /// 检查参数是否可用
31
- - (NSError *)checkValid;
31
+ - (NSError *_Nullable)checkValid;
32
32
  @end
33
33
 
34
34
  NS_ASSUME_NONNULL_END
@@ -45,7 +45,7 @@ NS_ASSUME_NONNULL_BEGIN
45
45
  @property (nonatomic, strong, nullable) NSData *linkThumbData;
46
46
 
47
47
  /// 检查参数是否可用
48
- - (NSError *)checkValid;
48
+ - (NSError *_Nullable)checkValid;
49
49
  @end
50
50
 
51
51
  NS_ASSUME_NONNULL_END
@@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
13
13
 
14
14
  /// 背景颜色支持 RGBA 格式的 hex string
15
15
  @interface XDGWebParams : NSObject
16
+ @property (nonatomic, strong, nullable) NSString *state;
16
17
  @property (nonatomic, strong, nullable) NSString *targetUrl;
17
18
  @property (nonatomic, strong, nullable) NSString *backgroundColor;
18
19
  @property (nonatomic, strong, nullable) NSString *navigationTitle;
@@ -22,6 +23,8 @@ NS_ASSUME_NONNULL_BEGIN
22
23
  @property (nonatomic, copy) XDGWebActionHandler webHandler;
23
24
 
24
25
  + (XDGWebParams *)paramsWithUrl:(NSString *)url;
26
+
27
+ - (NSString *)toString;
25
28
  @end
26
29
 
27
30
  NS_ASSUME_NONNULL_END
@@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
17
17
 
18
18
  + (void)openWebPageWithURL:(NSString *)url handler:(XDGWebActionHandler _Nullable)handler;
19
19
 
20
+ + (void)openWebPageWithParams:(XDGWebParams *)params;
20
21
  @end
21
22
 
22
23
  NS_ASSUME_NONNULL_END
@@ -37,7 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
37
37
  @property (nonatomic, strong, nullable) NSString *superGroupExtras;
38
38
 
39
39
  /// 检查参数是否可用
40
- - (NSError *)checkValid;
40
+ - (NSError *_Nullable)checkValid;
41
41
  @end
42
42
 
43
43
  NS_ASSUME_NONNULL_END
@@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
34
34
  @property (nonatomic, strong, nullable) NSString *title;
35
35
 
36
36
  /// 检查参数是否可用
37
- - (NSError *)checkValid;
37
+ - (NSError *_Nullable)checkValid;
38
38
  @end
39
39
 
40
40
  NS_ASSUME_NONNULL_END
@@ -0,0 +1,18 @@
1
+ //
2
+ // XDTikTokInfo.h
3
+ // XDCommonSDK
4
+ //
5
+ // Created by Fattycat on 2025/5/20.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface XDTikTokInfo : NSObject
13
+ @property (nonatomic, copy) NSString *clientKey;
14
+ @property (nonatomic, copy) NSString *universalLink;
15
+ + (instancetype)instanceWithInfoDic:(NSDictionary *)infoDic;
16
+ @end
17
+
18
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 50adccace85f84304be80a84ccf7c977
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 @"6.26.2"
9
- #define XDSDK_VERSION_CODE @"6026020"
10
- // HASH 3e572e74
8
+ #define XDSDK_VERSION @"6.28.0"
9
+ #define XDSDK_VERSION_CODE @"6028000"
10
+ // HASH cbb163ac
@@ -12,17 +12,70 @@ PluginImporter:
12
12
  isExplicitlyReferenced: 0
13
13
  validateReferences: 1
14
14
  platformData:
15
+ - first:
16
+ : Any
17
+ second:
18
+ enabled: 0
19
+ settings:
20
+ Exclude Android: 1
21
+ Exclude Editor: 1
22
+ Exclude Linux64: 1
23
+ Exclude OSXUniversal: 1
24
+ Exclude Win: 1
25
+ Exclude Win64: 1
26
+ Exclude iOS: 0
27
+ - first:
28
+ Android: Android
29
+ second:
30
+ enabled: 0
31
+ settings:
32
+ CPU: ARMv7
15
33
  - first:
16
34
  Any:
17
35
  second:
18
- enabled: 1
36
+ enabled: 0
19
37
  settings: {}
20
38
  - first:
21
39
  Editor: Editor
22
40
  second:
23
41
  enabled: 0
24
42
  settings:
43
+ CPU: AnyCPU
25
44
  DefaultValueInitialized: true
45
+ OS: AnyOS
46
+ - first:
47
+ Standalone: Linux64
48
+ second:
49
+ enabled: 0
50
+ settings:
51
+ CPU: None
52
+ - first:
53
+ Standalone: OSXUniversal
54
+ second:
55
+ enabled: 0
56
+ settings:
57
+ CPU: None
58
+ - first:
59
+ Standalone: Win
60
+ second:
61
+ enabled: 0
62
+ settings:
63
+ CPU: None
64
+ - first:
65
+ Standalone: Win64
66
+ second:
67
+ enabled: 0
68
+ settings:
69
+ CPU: None
70
+ - first:
71
+ iPhone: iOS
72
+ second:
73
+ enabled: 1
74
+ settings:
75
+ AddToEmbeddedBinaries: false
76
+ CPU: AnyCPU
77
+ CompileFlags:
78
+ FrameworkDependencies:
26
79
  userData:
27
80
  assetBundleName:
28
81
  assetBundleVariant:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "com.xd.sdk.common",
3
3
  "displayName": "XDSDK Common",
4
- "version": "6.26.2",
4
+ "version": "6.28.0",
5
5
  "description": "XDSDK",
6
6
  "unity": "2018.3",
7
7
  "license": "MIT",