com.xd.sdk.common 6.28.3 → 6.29.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/VersionCatalog.cs +2 -0
- package/Editor/XDConfigModel.cs +8 -0
- package/Editor/XDGIOSCommonProcessor.cs +24 -6
- package/Editor/XDGScriptHandlerProcessor.cs +2 -2
- package/Plugins/Android/libs/XDGCommon_6.29.0.aar +0 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/TDSGlobalRouterSchemes.h +1 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDConfigManager.h +1 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGConfig.h +3 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGKuaiShouShareParam.h +35 -0
- 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/XDGShareParamBase.h +2 -1
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDGSharing.h +3 -0
- package/Plugins/iOS/XDCommonSDK.framework/Headers/XDKuaiShouInfo.h +19 -0
- 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/package.json +1 -1
- package/Plugins/Android/libs/XDGCommon_6.28.3.aar +0 -0
- /package/Plugins/Android/libs/{XDGCommon_6.28.3.aar.meta → XDGCommon_6.29.0.aar.meta} +0 -0
|
@@ -34,6 +34,8 @@ namespace XD.SDK.Common.Editor
|
|
|
34
34
|
public static readonly string SinaWeibo = "12.5.0@aar";
|
|
35
35
|
public static readonly string Douyin = "0.1.9.9";
|
|
36
36
|
|
|
37
|
+
public static readonly string Kuaishou = "3.7.6";
|
|
38
|
+
|
|
37
39
|
public static readonly string AliyunPush = "3.9.5";
|
|
38
40
|
public static readonly string AliyunAuxiliaryChannel = "3.9.4.1";
|
|
39
41
|
}
|
package/Editor/XDConfigModel.cs
CHANGED
|
@@ -28,6 +28,7 @@ namespace XD.SDK.Common.Editor {
|
|
|
28
28
|
public DouYinConfig douyin { get; set; }
|
|
29
29
|
public AliyunConfig aliyun { get; set; }
|
|
30
30
|
public TikTokConfig tiktok { get; set; }
|
|
31
|
+
public KuaiShouConfig kuaishou { get; set; }
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
public class Adjust {
|
|
@@ -180,4 +181,11 @@ namespace XD.SDK.Common.Editor {
|
|
|
180
181
|
{
|
|
181
182
|
public string client_key { get; set; }
|
|
182
183
|
}
|
|
184
|
+
|
|
185
|
+
public class KuaiShouConfig
|
|
186
|
+
{
|
|
187
|
+
public string app_id { get; set; }
|
|
188
|
+
|
|
189
|
+
public string universal_link { get; set; }
|
|
190
|
+
}
|
|
183
191
|
}
|
|
@@ -327,7 +327,15 @@ namespace XD.SDK.Common.Editor
|
|
|
327
327
|
"snssdk1180",
|
|
328
328
|
"snssdk1233",
|
|
329
329
|
|
|
330
|
-
"instagram"
|
|
330
|
+
"instagram",
|
|
331
|
+
|
|
332
|
+
"kwai",
|
|
333
|
+
"kwaiAuth2",
|
|
334
|
+
"kwaiopenapi",
|
|
335
|
+
"KwaiBundleToken",
|
|
336
|
+
"kwai.clip.multi",
|
|
337
|
+
"KwaiSDKMediaV2",
|
|
338
|
+
"ksnebula"
|
|
331
339
|
};
|
|
332
340
|
|
|
333
341
|
// 添加Scheme,用添加,不要覆盖替换!
|
|
@@ -384,6 +392,7 @@ namespace XD.SDK.Common.Editor
|
|
|
384
392
|
string xhsId = configModel.xhs != null ? configModel.xhs.app_id_ios : null;
|
|
385
393
|
string douyinId = configModel.douyin != null ? configModel.douyin.app_id : null;
|
|
386
394
|
string tiktokId = configModel.tiktok != null ? configModel.tiktok.client_key : null;
|
|
395
|
+
string kuaishouId = configModel.kuaishou != null ? configModel.kuaishou.app_id : null;
|
|
387
396
|
|
|
388
397
|
// 添加 CFBundleURLTypes,用添加而不是覆盖
|
|
389
398
|
PlistElementDict dict = _plist.root.AsDict();
|
|
@@ -517,6 +526,15 @@ namespace XD.SDK.Common.Editor
|
|
|
517
526
|
array2.AddString(tiktokId);
|
|
518
527
|
}
|
|
519
528
|
|
|
529
|
+
if (!string.IsNullOrEmpty(kuaishouId))
|
|
530
|
+
{
|
|
531
|
+
dict2 = array.AddDict();
|
|
532
|
+
dict2.SetString("CFBundleURLName", "kuaishou");
|
|
533
|
+
PlistElementArray array2 = dict2.CreateArray("CFBundleURLSchemes");
|
|
534
|
+
array2 = dict2.CreateArray("CFBundleURLSchemes");
|
|
535
|
+
array2.AddString(kuaishouId);
|
|
536
|
+
}
|
|
537
|
+
|
|
520
538
|
File.WriteAllText(_plistPath, _plist.WriteToString());
|
|
521
539
|
}
|
|
522
540
|
|
|
@@ -560,16 +578,16 @@ namespace XD.SDK.Common.Editor
|
|
|
560
578
|
UnityAppController.WriteBelow(@"#include <assert.h>", @"#import <XDCommonSDK/XDCommonSDK.h>");
|
|
561
579
|
|
|
562
580
|
UnityAppController.WriteBelow(@"applicationDidFinishLaunching",
|
|
563
|
-
@"
|
|
581
|
+
@" [XDGSDK application:application didFinishLaunchingWithOptions:launchOptions];");
|
|
564
582
|
UnityAppController.WriteBelow(@"AppController_SendNotificationWithArg(kUnityOnOpenURL, notifData);",
|
|
565
|
-
@"
|
|
583
|
+
@" [XDGSDK application:app openURL:url options:options];");
|
|
566
584
|
UnityAppController.WriteBelow(@"AppController_SendNotificationWithArg(kUnityDidRegisterForRemoteNotificationsWithDeviceToken, deviceToken);", @" [XDGSDK application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];");
|
|
567
|
-
UnityAppController.
|
|
568
|
-
|
|
585
|
+
UnityAppController.WriteBelow(@"didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler
|
|
586
|
+
{"," [XDGSDK application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:handler];");
|
|
569
587
|
if (CheckoutUniversalLinkHolder(unityAppControllerPath, @"NSURL* url = userActivity.webpageURL;"))
|
|
570
588
|
{
|
|
571
589
|
UnityAppController.WriteBelow(@"NSURL* url = userActivity.webpageURL;",
|
|
572
|
-
@"
|
|
590
|
+
@" [XDGSDK application:application continueUserActivity:userActivity restorationHandler:restorationHandler];");
|
|
573
591
|
}
|
|
574
592
|
else
|
|
575
593
|
{
|
|
@@ -35,7 +35,7 @@ namespace XD.SDK.Common.Editor
|
|
|
35
35
|
int beginIndex = all.IndexOf(below, StringComparison.Ordinal);
|
|
36
36
|
if (beginIndex == -1)
|
|
37
37
|
{
|
|
38
|
-
Debug.
|
|
38
|
+
Debug.LogError(filePath + "中没有找到字符串" + below);
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -71,7 +71,7 @@ namespace XD.SDK.Common.Editor
|
|
|
71
71
|
startIndex = all.IndexOf(start, startIndex + 1, StringComparison.Ordinal);
|
|
72
72
|
if (startIndex == -1)
|
|
73
73
|
{
|
|
74
|
-
Debug.
|
|
74
|
+
Debug.LogError(filePath + "中没有找到相邻的 start 和 end");
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
|
|
Binary file
|
|
@@ -30,6 +30,7 @@ FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_WEIBO;
|
|
|
30
30
|
FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_DOUYIN;
|
|
31
31
|
FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_XHS;
|
|
32
32
|
FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_TapTap;
|
|
33
|
+
FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_KuaiShou;
|
|
33
34
|
|
|
34
35
|
FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_FACEBOOK;
|
|
35
36
|
FOUNDATION_EXPORT TDSGlobalRouterScheme TDSGLOBAL_SHARE_LINE;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#import <XDCommonSDK/XDDouYinInfo.h>
|
|
25
25
|
#import <XDCommonSDK/XDXHSInfo.h>
|
|
26
26
|
#import <XDCommonSDK/XDAliYunInfo.h>
|
|
27
|
+
#import <XDCommonSDK/XDKuaiShouInfo.h>
|
|
27
28
|
|
|
28
29
|
NS_ASSUME_NONNULL_BEGIN
|
|
29
30
|
|
|
@@ -84,6 +85,8 @@ typedef NS_ENUM(NSInteger, XDSDKRegionType) {
|
|
|
84
85
|
@property (nonatomic, strong) XDXHSInfo *xhsInfo;
|
|
85
86
|
/// 阿里云 配置信息
|
|
86
87
|
@property (nonatomic, strong) XDAliYunInfo *aliyunInfo;
|
|
88
|
+
/// 快手 配置信息
|
|
89
|
+
@property (nonatomic, strong) XDKuaiShouInfo *kuaiShouInfo;
|
|
87
90
|
|
|
88
91
|
/// 统一登录窗口中的品牌向 logo 素材 URL 数组,需要3个,不配置的话默认https://res.xdcdn.net/TDS/Global/res/xd_logo.png
|
|
89
92
|
@property (nonatomic, copy) NSArray *logos;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// XDGKuaiShouShareParam.h
|
|
3
|
+
// XDCommonSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Fattycat on 2025/8/28.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <XDCommonSDK/XDGShareParamBase.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface XDGKuaiShouShareParam : XDGShareParamBase
|
|
14
|
+
|
|
15
|
+
/// 分享的图片的本地沙盒路径
|
|
16
|
+
@property (nonatomic, strong, nullable) NSString *imageUrl;
|
|
17
|
+
|
|
18
|
+
/// 分享的图片 Data
|
|
19
|
+
@property (nonatomic, strong, nullable) NSData *imageData;
|
|
20
|
+
|
|
21
|
+
/// 分享的视频的 localIdentifier
|
|
22
|
+
@property (nonatomic, strong, nullable) NSString *videoId;
|
|
23
|
+
|
|
24
|
+
/// 分享的视频 url
|
|
25
|
+
@property (nonatomic, strong, nullable) NSString *videoUrl;
|
|
26
|
+
|
|
27
|
+
/// 分享的标签
|
|
28
|
+
@property (nonatomic, strong, nullable) NSArray<NSString *> *tags;
|
|
29
|
+
|
|
30
|
+
/// 检查参数是否可用
|
|
31
|
+
- (NSError *_Nullable)checkValid;
|
|
32
|
+
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -21,7 +21,8 @@ typedef NS_ENUM(NSInteger, XDGSharePlatformType) {
|
|
|
21
21
|
XDGSharePlatformTypeLine = 7,
|
|
22
22
|
XDGSharePlatformTypeTapTap = 8,
|
|
23
23
|
XDGSharePlatformTypeTikTok = 9,
|
|
24
|
-
XDGSharePlatformTypeInstagram = 10
|
|
24
|
+
XDGSharePlatformTypeInstagram = 10,
|
|
25
|
+
XDGSharePlatformTypeKuaiShou = 11
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
typedef NS_ENUM(NSInteger, XDGShareSceneType) {
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
#import <XDCommonSDK/XDGTwitterShareParam.h>
|
|
17
17
|
#import <XDCommonSDK/XDGLineShareParam.h>
|
|
18
18
|
#import <XDCommonSDK/XDGTapTapShareParam.h>
|
|
19
|
+
#import <XDCommonSDK/XDGTikTokShareParam.h>
|
|
20
|
+
#import <XDCommonSDK/XDGInstagramShareParam.h>
|
|
21
|
+
#import <XDCommonSDK/XDGKuaiShouShareParam.h>
|
|
19
22
|
|
|
20
23
|
NS_ASSUME_NONNULL_BEGIN
|
|
21
24
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// XDKuaiShouInfo.h
|
|
3
|
+
// XDCommonSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Fattycat on 2025/8/28.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface XDKuaiShouInfo : NSObject
|
|
13
|
+
@property (nonatomic, copy) NSString *appId;
|
|
14
|
+
@property (nonatomic, copy) NSString *universalLink;
|
|
15
|
+
|
|
16
|
+
+ (instancetype)instanceWithInfoDic:(NSDictionary *)infoDic;
|
|
17
|
+
@end
|
|
18
|
+
|
|
19
|
+
NS_ASSUME_NONNULL_END
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
File without changes
|