Skip to content

Commit

Permalink
SDK1.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinguang Wang committed Apr 3, 2017
1 parent fec11b6 commit f3cffb9
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 48 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
###### SDK1.7.7
- 增加SDK分享小程序
- 增加选择发票接口

###### SDK1.7.6
- 提高稳定性
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/starboychina/WechatKit.svg)](https://travis-ci.org/starboychina/WechatKit)
[![Swift version](https://img.shields.io/badge/swift-3.0-orange.svg)](https://developer.apple.com/swift/)
[![Documentation](https://starboychina.github.io/WechatKit/badge.svg)](https://starboychina.github.io/WechatKit/)
[![SwiftLint](https://img.shields.io/badge/SwiftLint-passing-brightgreen.svg)](https://github.com/realm/SwiftLint)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![CocoaPods Compatible](https://img.shields.io/badge/CocoaPods-Compatible-4BC51D.svg?style=flat)](https://cocoapods.org/pods/WechatKit)
Expand Down
8 changes: 6 additions & 2 deletions SDKExport/README.txt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
重要!

SDK1.7.7
1 增加SDK分享小程序
2 增加选择发票接口

SDK1.7.6
1. 提高稳定性
2 修复mta崩溃
3 新增接口支持开发者关闭mta数据统计上报
1 修复mta崩溃
2 新增接口支持开发者关闭mta数据统计上报

SDK1.7.5
1. 提高稳定性
Expand Down
1 change: 0 additions & 1 deletion SDKExport/WXApi.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
*/
+(BOOL) registerApp:(NSString *)appid;


/*! @brief WXApi的成员函数,向微信终端程序注册第三方应用。
*
* 需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。
Expand Down
122 changes: 80 additions & 42 deletions SDKExport/WXApiObject.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/*! @brief 错误码
*
Expand Down Expand Up @@ -57,6 +58,7 @@ enum WXMPWebviewType {
};



/*! @brief 应用支持接收微信的文件类型
*
*/
Expand Down Expand Up @@ -114,6 +116,8 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
#pragma mark - WXMediaMessage
@class WXMediaMessage;

#ifndef BUILD_WITHOUT_PAY

/*! @brief 第三方向微信终端发起支付的消息结构体
*
* 第三方向微信终端发起支付的消息结构体,微信终端处理后会向第三方返回处理结果
Expand All @@ -136,7 +140,10 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)

@end

#endif


#ifndef BUILD_WITHOUT_PAY

#pragma mark - PayResp
/*! @brief 微信终端返回给第三方的关于支付结果的结构体
Expand All @@ -150,37 +157,7 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)

@end



/*! @brief 第三方向微信终端发起拆企业红包的消息结构体
*
* 第三方向微信终端发起拆企业红包的消息结构体,微信终端处理后会向第三方返回处理结果
* @see HBReq
*/
@interface HBReq : BaseReq

/** 随机串,防重发 */
@property (nonatomic, retain) NSString *nonceStr;
/** 时间戳,防重发 */
@property (nonatomic, assign) UInt32 timeStamp;
/** 商家根据微信企业红包开发文档填写的数据和签名 */
@property (nonatomic, retain) NSString *package;
/** 商家根据微信企业红包开发文档对数据做的签名 */
@property (nonatomic, retain) NSString *sign;

@end



#pragma mark - HBResp
/*! @brief 微信终端返回给第三方的关于拆企业红包结果的结构体
*
* 微信终端返回给第三方的关于拆企业红包结果的结构体
*/
@interface HBResp : BaseResp

@end

#endif



Expand Down Expand Up @@ -351,6 +328,15 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
@property (nonatomic, retain) NSString* sessionFrom;
@end

#pragma mark - OpenTempSessionResp
/*! @brief 微信终端向第三方程序返回的OpenTempSessionReq处理结果。
*
* 第三方程序向微信终端发送OpenTempSessionReq后,微信发送回来的处理结果,该结果用OpenTempSessionResp表示。
*/
@interface OpenTempSessionResp : BaseResp

@end

#pragma mark - OpenWebviewReq
/* ! @brief 第三方通知微信启动内部浏览器,打开指定网页
*
Expand All @@ -373,16 +359,6 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)

@end


#pragma mark - OpenTempSessionResp
/*! @brief 微信终端向第三方程序返回的OpenTempSessionReq处理结果。
*
* 第三方程序向微信终端发送OpenTempSessionReq后,微信发送回来的处理结果,该结果用OpenTempSessionResp表示。
*/
@interface OpenTempSessionResp : BaseResp

@end

#pragma mark - OpenRankListReq
/* ! @brief 第三方通知微信,打开硬件排行榜
*
Expand Down Expand Up @@ -469,6 +445,32 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
@property (nonatomic,retain) NSString* appID;
@end;

#pragma mark - WXInvoiceItem

@interface WXInvoiceItem : NSObject
/** 卡id
* @attention 长度不能超过1024字节
*/
@property (nonatomic,retain) NSString* cardId;
/** ext信息
* @attention 长度不能超过2024字节
*/
@property (nonatomic,retain) NSString* extMsg;
/**
* @attention 卡的状态,req不需要填。resp:0为未添加,1为已添加。
*/
@property (nonatomic,assign) UInt32 cardState;
/**
* @attention req不需要填,chooseCard返回的。
*/
@property (nonatomic,retain) NSString* encryptCode;
/**
* @attention req不需要填,chooseCard返回的。
*/
@property (nonatomic,retain) NSString* appID;

@end

#pragma mark - AddCardToWXCardPackageReq
/* ! @brief 请求添加卡券至微信卡包
*
Expand Down Expand Up @@ -522,6 +524,28 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
@property (nonatomic,retain) NSArray* cardAry;
@end


#pragma mark - WXChooseInvoiceReq
/* ! @brief 请求从微信选取发票
*
*/
@interface WXChooseInvoiceReq : BaseReq
@property (nonatomic, strong) NSString *appID;
@property (nonatomic, assign) UInt32 shopID;
@property (nonatomic, strong) NSString *signType;
@property (nonatomic, strong) NSString *cardSign;
@property (nonatomic, assign) UInt32 timeStamp;
@property (nonatomic, strong) NSString *nonceStr;
@end

#pragma mark - WXChooseInvoiceResp
/** ! @brief 微信返回第三方请求选择发票结果
*
*/
@interface WXChooseInvoiceResp : BaseResp
@property (nonatomic, strong) NSArray* cardAry;
@end

#pragma mark - WXMediaMessage

/*! @brief 多媒体消息结构体
Expand Down Expand Up @@ -779,6 +803,21 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)

@end

@interface WXMiniProgramObject : NSObject

/*! @brief WXMiniProgramObject对象
*
* @note 返回的WXMiniProgramObject对象是自动释放的
*/
+(WXMiniProgramObject *) object;

@property (nonatomic, strong) NSString *webpageUrl; //低版本网页链接

@property (nonatomic, strong) NSString *userName; //小程序username

@property (nonatomic, strong) NSString *path; //小程序页面的路径

@end

#pragma mark - WXTextObject
/*! @brief 多媒体消息中包含的文本数据对象
Expand All @@ -800,4 +839,3 @@ typedef NS_ENUM(UInt64, enAppSupportContentFlag)
@property (nonatomic, retain) NSString *contentText;

@end

Empty file modified SDKExport/WechatAuthSDK.h
100644 → 100755
Empty file.
Binary file modified SDKExport/libWeChatSDK.a
100644 → 100755
Binary file not shown.
6 changes: 3 additions & 3 deletions WechatKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "WechatKit"
s.version = "0.3.0"
s.summary = "一款快速实现微信第三方登录的框架(Swift3.0版) SDK1.7.6"
s.version = "0.3.1"
s.summary = "一款快速实现微信第三方登录的框架(Swift3.0版) SDK1.7.7"
s.homepage = "https://github.com/starboychina/WechatKit"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "starboychina" => "wechatkit.github.com@kansea.com" }
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.vendored_libraries = 'SDKExport/libWeChatSDK.a'
s.public_header_files = 'WechatKit/*.h', 'SDKExport/*.h'

s.frameworks = 'SystemConfiguration', 'CoreTelephony', 'CFNetwork'
s.frameworks = 'SystemConfiguration', 'Security', 'CoreTelephony', 'CFNetwork', 'UIKit'
s.libraries = 'z', 'c++', 'sqlite3.0'
s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC -all_load' }
end

0 comments on commit f3cffb9

Please sign in to comment.