feat 更新 IOS 的 SDK 版本,支持使用 notpay sdk

This commit is contained in:
little-snow-fox 2020-06-13 10:51:24 +08:00
parent a6d9eb6c83
commit 17be75c6d2
6 changed files with 86 additions and 4 deletions

View File

@ -4,7 +4,7 @@
[React Native] bridging library that integrates WeChat SDKs:
- [x] iOS SDK 1.8.6.1
- [x] iOS SDK 1.8.7.1
- [x] Android SDK 5.5.6
## 前言
@ -17,6 +17,11 @@
最后,感谢 [yorkie](https://github.com/yorkie) 和各位开发者为 react-native-wechat 做出的贡献。
## 附言
如果你的 IOS 版本需要使用不带支付功能的 WeChat SDK请使用带有 “-notpay” 后缀的 NPM 包。
If you need to use the WeChat SDK without payment for your IOS version, use the NPM package with the suffix "-notpay".
## 目录
- [安装](#安装)

View File

@ -1,3 +1,16 @@
重要!
SDK1.8.7.1
1. 修复Xcode11以下编译不通过
SDK1.8.7
1. 修复iPadOS未安装微信的情况下因为UA问题无法授权登录
2. 修复未安装微信的情况下, 适配了UIScene的App因为UIAlertView Crash
3. 增加Universal Link检测函数
SDK1.8.6.2
1. 修改包含"UIWebView"字符的类名
SDK1.8.6.1
1.短信授权登录使用的UIWebview切换成WKWebview

View File

@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
* GetMessageFromWXReqShowMessageFromWXReq等
* @param req
*/
- (void) onReq:(BaseReq*)req;
- (void)onReq:(BaseReq*)req;
@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
* SendMessageToWXRespSendAuthResp等
* @param resp具体的回应内容
*/
- (void) onResp:(BaseResp*)resp;
- (void)onResp:(BaseResp*)resp;
@end
@ -48,6 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
@end
#pragma mark - WXApi
/*! @brief 微信Api接口函数类
@ -157,6 +158,18 @@ NS_ASSUME_NONNULL_BEGIN
+ (void)sendAuthReq:(SendAuthReq *)req viewController:(UIViewController*)viewController delegate:(nullable id<WXApiDelegate>)delegate completion:(void (^ __nullable)(BOOL success))completion;
/*! @brief 测试函数用于排查当前App通过Universal Link方式分享到微信的流程
1: registerApp:universalLink接口,
2: Log产生startLogByLevel函数Log排查问题
3: block
4: SDK时调试使用
*
* completion回调的step为WXULCheckStepFinal时Universal Link接入成功
* @param completion Block
*/
+ (void)checkUniversalLinkReady:(nonnull WXCheckULCompletion)completion;
/*! @brief WXApi的成员函数接受微信的log信息。byBlock
1:SDK会强引用这个block,,
2:startLog by block之后startLoad,logBlocklogBlock
@ -164,6 +177,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param level log的级别
* @param logBlock log的回调block
*/
+ (void)startLogByLevel:(WXLogLevel)level logBlock:(WXLogBolock)logBlock;
/*! @brief WXApi的成员函数接受微信的log信息。byDelegate
@ -178,6 +192,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param
*/
+ (void)stopLog;
@end
NS_ASSUME_NONNULL_END

View File

@ -80,6 +80,55 @@ typedef NS_ENUM(NSInteger,WXLogLevel) {
*/
typedef void(^WXLogBolock)(NSString *log);
/*! @brief 微信Universal Link检查函数 (WXApi#checkUniversalLinkReady:),检查步骤枚举值
*
* WXULCheckStepParams
* WXULCheckStepSystemVersion
* WXULCheckStepWechatVersion
* WXULCheckStepSDKInnerOperation SDK内部操作检测
* WXULCheckStepLaunchWechat App拉起微信检测
* WXULCheckStepBackToCurrentApp App检测
* WXULCheckStepFinal
*/
typedef NS_ENUM(NSInteger, WXULCheckStep)
{
WXULCheckStepParams,
WXULCheckStepSystemVersion,
WXULCheckStepWechatVersion,
WXULCheckStepSDKInnerOperation,
WXULCheckStepLaunchWechat,
WXULCheckStepBackToCurrentApp,
WXULCheckStepFinal,
};
#pragma mark - WXCheckULStepResult
/*! @brief 该类为微信Universal Link检测函数结果类
*
*/
@interface WXCheckULStepResult : NSObject
/** 是否成功 */
@property(nonatomic, assign) BOOL success;
/** 当前错误信息 */
@property(nonatomic, strong) NSString* errorInfo;
/** 修正建议 */
@property(nonatomic, strong) NSString* suggestion;
- (instancetype)initWithCheckResult:(BOOL)success errorInfo:(nullable NSString*)errorInfo suggestion:(nullable NSString*)suggestion;
@end
/*! @brief 微信Universal Link检查函数 (WXApi#checkUniversalLinkReady:)回调Block
*
* @param step
* @param result
*/
typedef void(^WXCheckULCompletion)(WXULCheckStep step, WXCheckULStepResult* result);
#pragma mark - BaseReq
/*! @brief 该类为微信终端SDK所有请求类的基类
*

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "react-native-wechat-lib",
"version": "1.1.16",
"version": "1.1.18",
"description": "react-native library for wechat app. 支持分享和拉起小程序。",
"main": "index.js",
"scripts": {