Skip to content

Commit 78fddce

Browse files
committed
Version 2.1.0
1 parent a292068 commit 78fddce

File tree

213 files changed

+799
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+799
-110
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

Pingpp.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Pingpp'
3-
s.version = '2.0.6'
3+
s.version = '2.1.0'
44
s.summary = 'Pingplusplus iOS SDK'
55
s.description = <<-DESC
66
移动应用支付接口。
@@ -43,6 +43,7 @@ Pod::Spec.new do |s|
4343

4444
s.subspec 'Wx' do |wx|
4545
wx.vendored_libraries = 'lib/Channels/Wx/*.a'
46+
wx.public_header_files = 'lib/Channels/Wx/*.h'
4647
wx.ios.library = 'sqlite3'
4748
wx.dependency 'Pingpp/Core'
4849
end

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.6
1+
2.1.0
Binary file not shown.
Binary file not shown.
5.75 KB
Binary file not shown.
32 Bytes
Binary file not shown.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletBalancePayPopPayViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletBalancePayPopPayViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletBalancePayPopPayViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletBalanceWithdrawalsViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletBalanceWithdrawalsViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletBalanceWithdrawalsViewController.nib/runtime.nib

100755100644
File mode changed.
Binary file not shown.
Binary file not shown.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayBindCardMainViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayBindCardMainViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayBindCardMainViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayBindCardNoMainViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayBindCardNoMainViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayBindCardNoMainViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayChoseCardsViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayChoseCardsViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayChoseCardsViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayCreditCardInfoViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayCreditCardInfoViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayCreditCardInfoViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayCreditCardUserInfoViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayCreditCardUserInfoViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayCreditCardUserInfoViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayIntoDetailViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayIntoDetailViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayIntoDetailViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayMainViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayMainViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayMainViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPasswordView.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPasswordView.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPasswordView.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPasswordViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPasswordViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPasswordViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPopPayViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPopPayViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayPopPayViewController.nib/runtime.nib

100755100644
File mode changed.
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPaySavingCardInfoViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPaySavingCardInfoViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPaySavingCardInfoViewController.nib/runtime.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayVerifiedCodeViewController.nib/objects-8.0+.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayVerifiedCodeViewController.nib/objects.nib

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/BDWalletPayVerifiedCodeViewController.nib/runtime.nib

100755100644
File mode changed.
Binary file not shown.
-157 Bytes
-226 Bytes
-88 Bytes
Binary file not shown.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/Info.plist

100755100644
14 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-84 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3.41 KB
5.23 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
85 Bytes
Binary file not shown.
Binary file not shown.
-108 Bytes
-106 Bytes
-107 Bytes
-135 Bytes
-137 Bytes
Binary file not shown.
Binary file not shown.
156 Bytes
36 Bytes
-8 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
46 Bytes
332 Bytes
218 Bytes
-193 Bytes
-133 Bytes
-187 Bytes
216 Bytes
Binary file not shown.
-146 Bytes
-134 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
67 Bytes
-197 Bytes
-504 Bytes
95 Bytes

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/[email protected]

100755100644
File mode changed.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/[email protected]

100755100644
File mode changed.
276 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-601 Bytes
-11 Bytes
Binary file not shown.
-228 Bytes
-172 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-58 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/en.lproj/InfoPlist.strings

100755100644
File mode changed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
185 Bytes
195 Bytes

lib/Channels/Bfb/BaiduWalletSDKBundle.bundle/service.cfg

Lines changed: 0 additions & 100 deletions
This file was deleted.

lib/Channels/Bfb/libBaiduWalletSDK.a

100755100644
23 MB
Binary file not shown.

lib/Channels/Bfb/libpingpp+bfb.a

221 KB
Binary file not shown.
2.69 MB
Binary file not shown.

lib/Channels/UnionPay/libpingpp+up.a

9.59 KB
Binary file not shown.

lib/Channels/Wx/WXApi.h

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
//
2+
// WXApi.h
3+
// 所有Api接口
4+
//
5+
// Created by Wechat on 12-2-28.
6+
// Copyright (c) 2012年 Tencent. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import "WXApiObject.h"
11+
12+
13+
#pragma mark - WXApiDelegate
14+
/*! @brief 接收并处理来自微信终端程序的事件消息
15+
*
16+
* 接收并处理来自微信终端程序的事件消息,期间微信界面会切换到第三方应用程序。
17+
* WXApiDelegate 会在handleOpenURL:delegate:中使用并触发。
18+
*/
19+
@protocol WXApiDelegate <NSObject>
20+
@optional
21+
22+
/*! @brief 收到一个来自微信的请求,第三方应用程序处理完后调用sendResp向微信发送结果
23+
*
24+
* 收到一个来自微信的请求,异步处理完成后必须调用sendResp发送处理结果给微信。
25+
* 可能收到的请求有GetMessageFromWXReq、ShowMessageFromWXReq等。
26+
* @param req 具体请求内容,是自动释放的
27+
*/
28+
-(void) onReq:(BaseReq*)req;
29+
30+
31+
32+
/*! @brief 发送一个sendReq后,收到微信的回应
33+
*
34+
* 收到一个来自微信的处理结果。调用一次sendReq后会收到onResp。
35+
* 可能收到的处理结果有SendMessageToWXResp、SendAuthResp等。
36+
* @param resp具体的回应内容,是自动释放的
37+
*/
38+
-(void) onResp:(BaseResp*)resp;
39+
40+
@end
41+
42+
43+
44+
#pragma mark - WXApi
45+
46+
/*! @brief 微信Api接口函数类
47+
*
48+
* 该类封装了微信终端SDK的所有接口
49+
*/
50+
@interface WXApi : NSObject
51+
52+
/*! @brief WXApi的成员函数,向微信终端程序注册第三方应用。
53+
*
54+
* 需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。
55+
* iOS7及以上系统需要调起一次微信才会出现在微信的可用应用列表中。
56+
* @attention 请保证在主线程中调用此函数
57+
* @param appid 微信开发者ID
58+
* @return 成功返回YES,失败返回NO。
59+
*/
60+
+(BOOL) registerApp:(NSString *)appid;
61+
62+
63+
64+
/*! @brief WXApi的成员函数,向微信终端程序注册第三方应用。
65+
*
66+
* 需要在每次启动第三方应用程序时调用。第一次调用后,会在微信的可用应用列表中出现。
67+
* @see registerApp
68+
* @param appid 微信开发者ID
69+
* @param appdesc 应用附加信息,长度不超过1024字节
70+
* @return 成功返回YES,失败返回NO。
71+
*/
72+
+(BOOL) registerApp:(NSString *)appid withDescription:(NSString *)appdesc;
73+
74+
75+
76+
/*! @brief 处理微信通过URL启动App时传递的数据
77+
*
78+
* 需要在 application:openURL:sourceApplication:annotation:或者application:handleOpenURL中调用。
79+
* @param url 微信启动第三方应用时传递过来的URL
80+
* @param delegate WXApiDelegate对象,用来接收微信触发的消息。
81+
* @return 成功返回YES,失败返回NO。
82+
*/
83+
+(BOOL) handleOpenURL:(NSURL *) url delegate:(id<WXApiDelegate>) delegate;
84+
85+
86+
87+
/*! @brief 检查微信是否已被用户安装
88+
*
89+
* @return 微信已安装返回YES,未安装返回NO。
90+
*/
91+
+(BOOL) isWXAppInstalled;
92+
93+
94+
95+
/*! @brief 判断当前微信的版本是否支持OpenApi
96+
*
97+
* @return 支持返回YES,不支持返回NO。
98+
*/
99+
+(BOOL) isWXAppSupportApi;
100+
101+
102+
103+
/*! @brief 获取微信的itunes安装地址
104+
*
105+
* @return 微信的安装地址字符串。
106+
*/
107+
+(NSString *) getWXAppInstallUrl;
108+
109+
110+
111+
/*! @brief 获取当前微信SDK的版本号
112+
*
113+
* @return 返回当前微信SDK的版本号
114+
*/
115+
+(NSString *) getApiVersion;
116+
117+
118+
119+
/*! @brief 打开微信
120+
*
121+
* @return 成功返回YES,失败返回NO。
122+
*/
123+
+(BOOL) openWXApp;
124+
125+
126+
127+
/*! @brief 发送请求到微信,等待微信返回onResp
128+
*
129+
* 函数调用后,会切换到微信的界面。第三方应用程序等待微信返回onResp。微信在异步处理完成后一定会调用onResp。支持以下类型
130+
* SendAuthReq、SendMessageToWXReq、PayReq等。
131+
* @param req 具体的发送请求,在调用函数后,请自己释放。
132+
* @return 成功返回YES,失败返回NO。
133+
*/
134+
+(BOOL) sendReq:(BaseReq*)req;
135+
136+
/*! @brief 发送Auth请求到微信,支持用户没安装微信,等待微信返回onResp
137+
*
138+
* 函数调用后,会切换到微信的界面。第三方应用程序等待微信返回onResp。微信在异步处理完成后一定会调用onResp。支持SendAuthReq类型。
139+
* @param req 具体的发送请求,在调用函数后,请自己释放。
140+
* @param viewController 当前界面对象。
141+
* @param delegate WXApiDelegate对象,用来接收微信触发的消息。
142+
* @return 成功返回YES,失败返回NO。
143+
*/
144+
+(BOOL) sendAuthReq:(SendAuthReq*) req viewController : (UIViewController*) viewController delegate:(id<WXApiDelegate>) delegate;
145+
146+
147+
/*! @brief 收到微信onReq的请求,发送对应的应答给微信,并切换到微信界面
148+
*
149+
* 函数调用后,会切换到微信的界面。第三方应用程序收到微信onReq的请求,异步处理该请求,完成后必须调用该函数。可能发送的相应有
150+
* GetMessageFromWXResp、ShowMessageFromWXResp等。
151+
* @param resp 具体的应答内容,调用函数后,请自己释放
152+
* @return 成功返回YES,失败返回NO。
153+
*/
154+
+(BOOL) sendResp:(BaseResp*)resp;
155+
156+
157+
@end

0 commit comments

Comments
 (0)