update wechat ios sdk to 2.0.5

This commit is contained in:
Junhui Chen 2025-07-24 16:49:03 +08:00
parent 629cb18cbd
commit f589f9ebd7
4 changed files with 42 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// test3
//
// WXApi.h
// 所有Api接口
//

View File

@ -308,6 +308,9 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
@property (nonatomic, copy, nullable) NSString *code;
/** 第三方程序发送时用来标识其请求的唯一性的标志由第三方程序调用sendReq时传入由微信终端回传
* @note state字符串长度不能超过1K
* @note
* SendAuthResp的内容
* SendAuthResp.state符合预期时
*/
@property (nonatomic, copy, nullable) NSString *state;
@property (nonatomic, copy, nullable) NSString *lang;
@ -821,7 +824,7 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
/*! @brief 设置消息缩略图的方法
*
* @param image
* @note 64K
* @note 256K
*/
- (void)setThumbImage:(UIImage *)image;
@ -853,6 +856,17 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
*/
@property (nonatomic, copy, nullable) NSString *imgDataHash;
/** 分享的图片消息是否要带小程序入口,若 'entranceMiniProgramUsername' 非空则显示
*
* @note app图片消息
*/
@property (nonatomic, copy, nullable) NSString *entranceMiniProgramUsername;
/** 分享的图片消息显示的小程序入口可以跳转的小程序路径
* 'entranceMiniProgramUsername'
*/
@property (nonatomic, copy, nullable) NSString *entranceMiniProgramPath;
@end
@ -1235,6 +1249,31 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
@end
@interface WXNativeGamePageObject : NSObject
/** 是否为视频类型
*/
@property (nonatomic, assign) BOOL isVideo;
/** 视频时长
@note
*/
@property (nonatomic, assign) UInt32 videoDuration;
/** 透传字段
@note 100K
*/
@property (nonatomic, copy) NSString *shareData;
/** 缩略图
@note 256K
*/
@property (nonatomic, strong) NSData *gameThumbData;
+ (WXNativeGamePageObject *)object;
@end
#pragma mark - WXLaunchMiniProgramReq
/*! @brief WXLaunchMiniProgramReq对象, 可实现通过sdk拉起微信小程序

Binary file not shown.

View File

@ -7,7 +7,7 @@
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"esModuleInterop": true,
"importsNotUsedAsValues": "error",
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": ["esnext"],