Skip to content

Commit 4fca94a

Browse files
committed
Update WX framework
1 parent 0782b4d commit 4fca94a

File tree

9 files changed

+97
-318
lines changed

9 files changed

+97
-318
lines changed

Flat.xcodeproj/project.pbxproj

Lines changed: 30 additions & 314 deletions
Large diffs are not rendered by default.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyAccessedAPIType</key>
9+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
10+
<key>NSPrivacyAccessedAPITypeReasons</key>
11+
<array>
12+
<string>CA92.1</string>
13+
</array>
14+
</dict>
15+
</array>
16+
</dict>
17+
</plist>

Flat/Vendor/WechatOpenSDK-XCFramework.xcframework/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
重要!
2+
SDK2.0.4
3+
1.增加privacy manifest文件
4+
2.修复跳微信时可能卡顿的问题
5+
26
SDK2.0.2
37
1. 优化XCFramework打包方式
48

Flat/Vendor/WechatOpenSDK-XCFramework.xcframework/ios-arm64_armv7/Headers/WXApi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ typedef BOOL(^WXGrantReadPasteBoardPermissionCompletion)(void);
126126
+ (BOOL)isWXAppSupportStateAPI;
127127

128128

129+
#ifndef BUILD_WITHOUT_PAY
130+
/*! @brief 判断当前微信的版本是否支持二维码拉起微信支付
131+
*
132+
* @attention 需在工程LSApplicationQueriesSchemes配置中添加weixinQRCodePayAPI
133+
* @return 支持返回YES,不支持返回NO。
134+
*/
135+
+ (BOOL)isWXAppSupportQRCodePayAPI;
136+
137+
#endif
129138

130139

131140
/*! @brief 获取微信的itunes安装地址

Flat/Vendor/WechatOpenSDK-XCFramework.xcframework/ios-arm64_armv7/Headers/WXApiObject.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
164164
#pragma mark - WXMediaMessage
165165
@class WXMediaMessage;
166166

167-
168-
169167
#pragma mark - SendAuthReq
170168
/*! @brief 第三方程序向微信终端请求认证的消息结构
171169
*
@@ -206,6 +204,9 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
206204
@property (nonatomic, copy, nullable) NSString *code;
207205
/** 第三方程序发送时用来标识其请求的唯一性的标志,由第三方程序调用sendReq时传入,由微信终端回传
208206
* @note state字符串长度不能超过1K
207+
* @note 在复杂度较高的应用程序中,可能会出现其他模块请求的响应对象被错误地回调到当前模块。
208+
* 为了避免影响其他模块,建议当前模块的开发者根据SendAuthResp的内容,采用白名单的方式进行处理。
209+
* 例如,SendAuthResp.state符合预期时,才对其进行处理。
209210
*/
210211
@property (nonatomic, copy, nullable) NSString *state;
211212
@property (nonatomic, copy, nullable) NSString *lang;
@@ -751,6 +752,17 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
751752
*/
752753
@property (nonatomic, copy, nullable) NSString *imgDataHash;
753754

755+
/** 分享的图片消息是否要带小程序入口,若 'entranceMiniProgramUsername' 非空则显示
756+
* 仅部分小程序类目可用
757+
* @note 本字段为空则发送普通app图片消息
758+
*/
759+
@property (nonatomic, copy, nullable) NSString *entranceMiniProgramUsername;
760+
761+
/** 分享的图片消息显示的小程序入口可以跳转的小程序路径
762+
* 仅当 'entranceMiniProgramUsername' 非空时生效
763+
*/
764+
@property (nonatomic, copy, nullable) NSString *entranceMiniProgramPath;
765+
754766
@end
755767

756768

Binary file not shown.

Flat/Vendor/WechatOpenSDK-XCFramework.xcframework/ios-arm64_i386_x86_64-simulator/Headers/WXApi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ typedef BOOL(^WXGrantReadPasteBoardPermissionCompletion)(void);
126126
+ (BOOL)isWXAppSupportStateAPI;
127127

128128

129+
#ifndef BUILD_WITHOUT_PAY
130+
/*! @brief 判断当前微信的版本是否支持二维码拉起微信支付
131+
*
132+
* @attention 需在工程LSApplicationQueriesSchemes配置中添加weixinQRCodePayAPI
133+
* @return 支持返回YES,不支持返回NO。
134+
*/
135+
+ (BOOL)isWXAppSupportQRCodePayAPI;
136+
137+
#endif
129138

130139

131140
/*! @brief 获取微信的itunes安装地址

Flat/Vendor/WechatOpenSDK-XCFramework.xcframework/ios-arm64_i386_x86_64-simulator/Headers/WXApiObject.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
164164
#pragma mark - WXMediaMessage
165165
@class WXMediaMessage;
166166

167-
168-
169167
#pragma mark - SendAuthReq
170168
/*! @brief 第三方程序向微信终端请求认证的消息结构
171169
*
@@ -206,6 +204,9 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
206204
@property (nonatomic, copy, nullable) NSString *code;
207205
/** 第三方程序发送时用来标识其请求的唯一性的标志,由第三方程序调用sendReq时传入,由微信终端回传
208206
* @note state字符串长度不能超过1K
207+
* @note 在复杂度较高的应用程序中,可能会出现其他模块请求的响应对象被错误地回调到当前模块。
208+
* 为了避免影响其他模块,建议当前模块的开发者根据SendAuthResp的内容,采用白名单的方式进行处理。
209+
* 例如,SendAuthResp.state符合预期时,才对其进行处理。
209210
*/
210211
@property (nonatomic, copy, nullable) NSString *state;
211212
@property (nonatomic, copy, nullable) NSString *lang;
@@ -751,6 +752,17 @@ typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* resu
751752
*/
752753
@property (nonatomic, copy, nullable) NSString *imgDataHash;
753754

755+
/** 分享的图片消息是否要带小程序入口,若 'entranceMiniProgramUsername' 非空则显示
756+
* 仅部分小程序类目可用
757+
* @note 本字段为空则发送普通app图片消息
758+
*/
759+
@property (nonatomic, copy, nullable) NSString *entranceMiniProgramUsername;
760+
761+
/** 分享的图片消息显示的小程序入口可以跳转的小程序路径
762+
* 仅当 'entranceMiniProgramUsername' 非空时生效
763+
*/
764+
@property (nonatomic, copy, nullable) NSString *entranceMiniProgramPath;
765+
754766
@end
755767

756768

0 commit comments

Comments
 (0)