Commit 9c29137767010284ed84eb213f8e45c3d122d92f

Authored by alexYang
1 parent b27a5c1eb8
Exists in master

iap支付回调增加失败的回调、第三方支付删除bluepay支付方式

Showing 84 changed files with 16 additions and 951 deletions Side-by-side Diff

... ... @@ -2,8 +2,8 @@
2 2  
3 3  
4 4 接入手册
5   -V 3.5.2
6   -2017年4月28日
  5 +V 3.5.3
  6 +2017年6月14日
7 7  
8 8 ## 概述
9 9 #### 本SDK提供gump账号,fb账号,vk账号,Google帐号四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。
... ... @@ -14,7 +14,6 @@ V 3.5.2
14 14 MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、GameSDK.framework、StoreKit.framework、GameSDKResources.bundle
15 15 + 以下为可选,若接入vk登录则需要添加以下framework和bundle,其中VKSdk.framework和VKSDKResources.bundle请自行从vk.com下载,使用1.3版本
16 16 VKSdk.framework、VKBridge.framework、VKSDKResources.bundle
17   -+ 以下为可选,若接入bluePay第三方支付方式需要添加一下的framework和bundle,其中CoreBuePay.framework直接引入工程,之后再依次引入CoreTelephony.framework、MessageUI.framework、SystemConfiguration.framework,最后将BlueMobile.bundle拖入项目中
18 17  
19 18  
20 19 ### 2、引入头文件,设置build setting
... ... @@ -34,27 +33,6 @@ Xcode 5: Open your application settings then select the Info tab. In the URL Typ
34 33 Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifier to vk+APP_ID
35 34 ![](images/vk2.jpg)
36 35  
37   -3)配置plist和scheme(BluePay的linePay使用,不接入BluePay的LinePay可忽略)
38   -
39   - plist部分:
40   - <key>LSApplicationQueriesSchemes</key>
41   - <array>
42   - <string>line</string>
43   - </array>
44   - scheme部分:
45   - <key>CFBundleURLTypes</key>
46   - <array>
47   - <dict>
48   - <key>CFBundleTypeRole</key>
49   - <string>None</string>
50   - <key>CFBundleURLName</key>
51   - <string>com.gump.sdk</string>
52   - <key>CFBundleURLSchemes</key>
53   - <array>
54   - <string> gump+游戏的appId </string>
55   - </array>
56   - </dict>
57   - </array>
58 36 ### 4、在工程里添加SDK登录代码
59 37  
60 38 [LetsGameAPI instance].appId = @"100"; // 设置appId
... ... @@ -122,11 +100,14 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi
122 100 [payInfo setValue:@"10" forKey:@"amount"];//对应支付项的支付金额,实际支付金额以itunes配置为准
123 101 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//扩展信息,可以游戏自定义,建议传自有订单号
124 102 [payInfo setValue:@"test.product.1" forKey:@"product"];//itunes 后台配置的对应支付项的productId
125   - [[LetsGameAPI instance] iap:payInfo forUser:@"" handleCallback:^(NSString* orderId){
  103 + [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) {
126 104 //此处的回调表明支付已经完成,但此时支付不一定成功,需要服务端验证支付结果
127 105 //orderId为gump生成的订单号,此订单号可以在gump server查询此笔支付是否成功
128   - NSLog(@"iap completed orderId of gumptech:%@",orderId);
  106 + NSLog(@"IAP completed orderId of Gumptech:%@",orderId);
  107 + } failCallback:^(NSString *orderId) {
  108 + NSLog(@"IAP file orderId of Gumptech:%@",orderId);
129 109 }];
  110 +
130 111 ### 8、token的获取
131 112 FB登录之后会产生token并自动登录,需要如果需要token的话,需要自己调用接口获取。
132 113  
ios/BlueMobile.bundle/Blue.ref
... ... @@ -1,135 +0,0 @@
1   -
2   -<resources>
3   -<lang value="th">en</lang>
4   -<ek value="ocearStarPay">2_589B573643EED41D1D213AE37C706BAB</ek>
5   -<productId value="100">56</productId>
6   -<promotionId value="1000">1000</promotionId>
7   -
8   -<!--for sms 默认的价格列表该列表的value是*100的,500对应5THB 用于 <price value="1000">15</price> value 的值是价格点,比如:500 == 5THB,对应15个金币-->
9   -<prices>
10   -<price value="500" default="true">10PKR</price>
11   -<price value="5000">15</price>
12   -<price value="1000">20</price>
13   -<price value="1900">30</price>
14   -<price value="2000">50</price>
15   -<price value="25000">500</price>
16   -</prices>
17   -
18   -<!-- price's list for bank。 200 thb。the min price.200 thb 可以购买2000金币 -->
19   -<prices-bankcharge>
20   -<price value="10000">2000 Golden</price>
21   -<price value="25000">2500 Golden</price>
22   -<price value="30000">3000 Golden</price>
23   -<price value="35000">3500 Golden</price>
24   -<price value="40000">4000 Golden</price>
25   -<price value="45000">4500 Golden</price>
26   -</prices-bankcharge>
27   -
28   -<!-- for line-->
29   -<prices-line>
30   -<price value="10000">2000</price>
31   -<price value="25000">2500</price>
32   -<price value="30000">3000</price>
33   -<price value="35000">3500</price>
34   -<price value="40000">4000</price>
35   -<price value="45000">4500</price>
36   -</prices-line>
37   -<!-- 所有泰国的cashcard 的value值均 *100. 5000 对应50THB -->
38   -<prices-truemoney>
39   -<price value="5000">500</price>
40   -<price value="9000">900</price>
41   -<price value="15000">1500</price>
42   -<price value="30000">3000</price>
43   -<price value="50000">5000</price>
44   -<price value="100000">10000</price>
45   -</prices-truemoney>
46   -<!-- 12call支持市面上所有的 50,100,300,500,1000泰铢面额。 -->
47   -<prices-12call>
48   -<price value="5000">500</price>
49   -<price value="10000">1000</price>
50   -<price value="30000">3000</price>
51   -<price value="50000">5000</price>
52   -<price value="100000">10000</price>
53   -</prices-12call>
54   -<!-- happy 60,100,200,300,500-->
55   -<prices-happy>
56   -<price value="6000">600</price>
57   -<price value="10000">1000</price>
58   -<price value="20000">2000</price>
59   -<price value="30000">3000</price>
60   -<price value="50000">5000</price>
61   -</prices-happy>
62   -
63   -<!-- viettel 10,000,20,000, 30,000, 50,000, 100,000, 200,000, 500,000-->
64   -<prices-viettel>
65   -<price value="10000">100</price>
66   -<price value="20000">200</price>
67   -<price value="30000">300</price>
68   -<price value="50000">500</price>
69   -<price value="100000">1000</price>
70   -<price value="200000">2000</price>
71   -<price value="500000">5000</price>
72   -</prices-viettel>
73   -<!-- mobifone 10,000,20,000, 30,000, 50,000, 100,000, 200,000, 500,000-->
74   -<prices-mobifone>
75   -<price value="10000">100</price>
76   -<price value="20000">200</price>
77   -<price value="30000">300</price>
78   -<price value="50000">500</price>
79   -<price value="100000">1000</price>
80   -<price value="200000">2000</price>
81   -<price value="500000">5000</price>
82   -</prices-mobifone>
83   -<!-- vinafone 10,000,20,000, 30,000, 50,000, 100,000, 200,000, 500,000-->
84   -<prices-vinaphone>
85   -<price value="10000">100</price>
86   -<price value="20000">200</price>
87   -<price value="30000">300</price>
88   -<price value="50000">500</price>
89   -<price value="100000">1000</price>
90   -<price value="200000">2000</price>
91   -<price value="500000">5000</price>
92   -</prices-vinaphone>
93   -<!--VTC 10,000,20,000, 50,000, 100,000, 200,000, 30,0000, 500,000 -->
94   -<prices-vtc>
95   -<price value="10000">100</price>
96   -<price value="20000">200</price>
97   -<price value="50000">500</price>
98   -<price value="100000">1000</price>
99   -<price value="200000">2000</price>
100   -<price value="300000">3000</price>
101   -<price value="500000">5000</price>
102   -</prices-vtc>
103   -<!--telkomsel 5,000,10,000, 25,000, 50,000, 100,000, 250,0000, 500,000 -->
104   -<prices-telkomsel>
105   -<price value="5000">50</price>
106   -<price value="10000">100</price>
107   -<price value="25000">250</price>
108   -<price value="100000">1000</price>
109   -<price value="250000">2500</price>
110   -<price value="500000">5000</price>
111   -
112   -</prices-telkomsel>
113   -
114   -<!--unipin 10,000,20,000, 50,000, 100,000, 200,000, 300,0000, 500,000, 2000,000 -->
115   -<prices-unipin>
116   -<price value="10000">10</price>
117   -<price value="20000">20</price>
118   -<price value="50000">50</price>
119   -<price value="100000">100</price>
120   -<price value="200000">200</price>
121   -<price value="300000">300</price>
122   -<price value="500000">500</price>
123   -<price value="2000000">2000</price>
124   -</prices-unipin>
125   -
126   -
127   -<!--indomog 20,000, 50,000, 100,000, 200,000, 500,000 -->
128   -<prices-indomog>
129   -<price value="20000">200</price>
130   -<price value="50000">500</price>
131   -<price value="100000">1000</price>
132   -<price value="200000">2000</price>
133   -<price value="500000">5000</price>
134   -</prices-indomog>
135   -</resources>
ios/BlueMobile.bundle/CashCard~ipad.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/CashCard~ipad.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/CashCard~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/CashCard~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/DialogView~ipad.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/DialogView~ipad.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/DialogView~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/DialogView~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/OPTView~ipad.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/OPTView~ipad.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/OPTView~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/OPTView~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/OfflineView~ipad.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/OfflineView~ipad.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/OfflineView~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/OfflineView~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/PMent~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/PMent~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/PircesListView~ipad.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/PircesListView~ipad.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/PircesListView~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/PircesListView~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/PkgInfo
... ... @@ -1 +0,0 @@
1   -APPL????
2 0 \ No newline at end of file
ios/BlueMobile.bundle/PricesListView~ipad.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/PricesListView~ipad.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/PricesListView~iphone.nib/objects-8.0+.nib
No preview for this file type
ios/BlueMobile.bundle/PricesListView~iphone.nib/runtime.nib
No preview for this file type
ios/BlueMobile.bundle/bluep_logo.png

27.6 KB

ios/BlueMobile.bundle/bluep_logo_10001.png

5.15 KB

ios/BlueMobile.bundle/bluep_logo_10002.png

31 KB

ios/BlueMobile.bundle/bluep_logo_10003.png

4.95 KB

ios/BlueMobile.bundle/bluep_logo_10005.png

30.2 KB

ios/BlueMobile.bundle/bluep_logo_10006.png

30.3 KB

ios/BlueMobile.bundle/bluep_logo_10007.png

28 KB

ios/BlueMobile.bundle/bluep_logo_10008.png

8.92 KB

ios/BlueMobile.bundle/bluep_logo_10009.png

21 KB

ios/BlueMobile.bundle/bluep_logo_10010.png

94.4 KB

ios/BlueMobile.bundle/bluep_logo_10011.png

32.1 KB

ios/BlueMobile.bundle/bluep_logo_10017.png

42.4 KB

ios/BlueMobile.bundle/bluep_logo_10018.png

14.8 KB

ios/BlueMobile.bundle/bluep_logo_10019.png

20.7 KB

ios/BlueMobile.bundle/bluepay_logo_10001.png

6.08 KB

ios/BlueMobile.bundle/bluepay_logo_10002.png

31.7 KB

ios/BlueMobile.bundle/bluepay_logo_10003.png

18.8 KB

ios/BlueMobile.bundle/bluepay_logo_10005.png

24.6 KB

ios/BlueMobile.bundle/bluepay_logo_10006.png

22.9 KB

ios/BlueMobile.bundle/bluepay_logo_10007.png

22.7 KB

ios/BlueMobile.bundle/bluepay_logo_10009.png

17 KB

ios/BlueMobile.bundle/bluepay_logo_10010.png

27.9 KB

ios/BlueMobile.bundle/bluepay_logo_10011.png

28.1 KB

ios/BlueMobile.bundle/bluepay_logo_10017.png

15 KB

ios/BlueMobile.bundle/icon.png

21 KB

ios/BlueMobile.bundle/refresh.png

5.41 KB

ios/BlueMobile.bundle/refresh_down.png

3.36 KB

ios/CoreBlue.framework/CoreBlue
No preview for this file type
ios/CoreBlue.framework/Headers/ASBlueMessage.h
... ... @@ -1,31 +0,0 @@
1   -//
2   -// BlueMessage.h
3   -
4   -//
5   -// Created by guojianmin on 16/1/13.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef BlueMessage_h
10   -#define BlueMessage_h
11   -
12   -
13   -#endif /* BlueMessage_h */
14   -
15   -#define TELCO_INDOSAT @"indosat"
16   -#define TELCO_XL @"xl"
17   -
18   -@interface BlueMessage : NSObject
19   -{
20   - NSInteger _code;
21   - NSString* _desc;
22   - NSString* _price;
23   - NSString* _propsName;
24   - NSString* _transactionId;
25   - NSString* _pCode;
26   -
27   -
28   -}
29   -@property(nonatomic, retain) NSString* desc,*price,*propsName ,*transactionId,*pCode,*publisher,*telco;
30   -@property(nonatomic) NSInteger code;
31   -@end
32 0 \ No newline at end of file
ios/CoreBlue.framework/Headers/Blue.h
... ... @@ -1,89 +0,0 @@
1   -//
2   -// BluePay.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/13.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef Blue_h
10   -#define Blue_h
11   -
12   -
13   -#import <UIKit/UIKit.h>
14   -
15   -#endif /* Blue_h */
16   -
17   -
18   -enum result
19   -{
20   - RESULT_FAILED,
21   - RESULT_SECCESS,
22   - RESULT_CANCEL
23   -};
24   -@interface Blue : NSObject
25   -/*!
26   - @param id delegate the callback of payment,your must implementation PayDelegate protocol
27   - @param id Context the view controller of your view
28   - @param NSString transactionId
29   - @param NSString customerId
30   - @param NSString currency
31   - @param NSString price
32   - @param NSInteger messageid
33   - @param NSString propsName
34   - @param BOOL isShowDialog
35   - @return if return false ,payDelegate is nil,please implete PayDelegate.
36   - */
37   -+(bool) byMessage:(id _Nonnull) delegate context:(UIViewController* _Nonnull)context transationId:(NSString*_Nonnull) transactionId currency:(NSString* _Nullable) currency price:(NSString*_Nonnull) price messageid:(NSUInteger) messageId prpsName:(NSString*_Nonnull) propsName isShowDialog :(BOOL) isShowDialog ;
38   -/*!
39   - @param delegate id, the callback of payment.
40   - @param context controller of your view.
41   - @param NSString customId,
42   - @param NSString transactionId,
43   - @param NSString propsName,
44   - @param NSString publisher,
45   - @param NSString cardNo,
46   - @param NSString serialNo,
47   - @param boolean isShowLoading
48   - @return bool return false ,means that your delegate or contextis nil,please implementation PayDelegate
49   - */
50   -+(bool)byCC:(id _Nonnull)delegate context:(UIViewController*_Nonnull) context transactionId:(NSString*_Nonnull) transactionId customerId:(NSString* _Nullable) cusId publisher:(NSString* _Nonnull) publisher prpsName:(NSString*_Nonnull) propsName
51   - cNo:( NSString* _Nullable) cNo sNo:(NSString*_Nullable) sNo isShowDialog :(BOOL) isShowDialog;
52   -//+(id) getInstance;
53   -+(bool)byBK:(id _Nonnull)delegate ctx:(UIViewController*_Nonnull) context tId:(NSString*_Nonnull) transactionId currency:(NSString*_Nullable)currency price:(NSString* _Nonnull) price propsName:(NSString* _Nonnull)propsName isShowDialog:(BOOL)isShowDialog;
54   -/*!
55   - @description
56   - @param delegate id, the callback of payment.
57   - @param context controller of your view.
58   - @param NSString customId,
59   - @param NSString transactionId,
60   - @param NSString propsName,
61   - @param NSString publisher, PUBLISHER_OFFLINE,PUBLISHER_OFFLINE_ATM,PUBLISHER_OTC,if equals PUBLISHER_OFFLINE, the msisdn will never take effect,and will show up a dialog to enter phone number and select the payment channel.
62   - @param NSString msisdn phone number ,can be null
63   - @param boolean isShowLoading
64   - @return bool return false ,means that your delegate or contextis nil,please implementation PayDelegate
65   - */
66   -
67   -+(bool) byOffline:(id _Nonnull)delegate ctx:(UIViewController* _Nonnull)context tId:(NSString * _Nonnull)transactionId customerId:(NSString *_Nullable)cstId price:(NSString * _Nullable)price propsName:(NSString *_Nonnull)propsName publisher:(NSString*_Nonnull)publisher msisdn:(NSString* _Nullable)phone isShowDialog:(BOOL)isShowDialog;
68   -/**
69   - @param delegate (PayDelegate --> id) the protocol for callback.
70   - @param contexxt (UIView*) the view which you call this interface.
71   - @param transcactionId (NSString*) the transactionId for this transaction.
72   - @param price (NSString *) the price you want to pay.the price must be 1:1 ,for example, pay for 1THB ,the price=@"1",of cause you can use the tarrif id replace the price..
73   - @param propsName (NSString*) the propsName.
74   - @param publisher (NSString*) now that we just support PUBLISHER_LINE,if this param's value is other, will finish this payment.
75   - @param scheme (NSString*) the scheme for the appcation where you want to go when this payment finished.
76   - @param isShowDialog YES or NO.
77   - @return bool true or false . if return false ,it means that delegate or context containt nil value.
78   - */
79   -+(bool) byWL:(id _Nonnull)delegate context:(UIViewController* _Nonnull)context transationId:(NSString*_Nonnull) transactionId currency:(NSString*_Nullable)currency price:(NSString*_Nullable) price prpsName:(NSString* _Nonnull) propsName publisher:(NSString* _Nonnull)publisher schceme:(NSString* _Nonnull)scheme isShowDialog :(BOOL) isShowDialog ;
80   -+(bool)byUI:(id _Nonnull)delegate context:(UIViewController* _Nonnull) ctx transationId:(NSString* _Nonnull) transactionId cumstomerId:(NSString* _Nullable)cid currency:(NSString*_Nullable)currency price:(NSString* _Nullable) price messageid:(NSUInteger) messageId prpsName:(NSString* _Nonnull) propsName schceme:(NSString*_Nullable)scheme isShowDialog :(BOOL) isShowDialog ;
81   -+(void) queryTrans:(NSString*_Nonnull)transcactionId publisher:(NSString* _Nonnull)publisher num:(NSInteger) num isShow:(BOOL)isShow;
82   -/**
83   - *@decription configure the loading dialog ,
84   - @param BOOL if YES ,will show the loading dialog ,else will not.
85   - */
86   -+(void)setShowCardLoading:(BOOL)isOrNot;
87   -
88   -@end
89   -//static BluePay* bluePay = nil;
90 0 \ No newline at end of file
ios/CoreBlue.framework/Headers/Client.h
... ... @@ -1,64 +0,0 @@
1   -//
2   -// Client.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/9.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef Client_h
10   -#define Client_h
11   -//#import <Foundation/Foundation.h>
12   -#import "InitSDKProtocol.h"
13   -#endif /* Client_h */
14   -
15   -
16   -#define INIT_RESULT_SUCCESS 1
17   -#define INIT_RESULT_FAILED_KEY 0
18   -#define INIT_RESULT_FAILED_PARAMS -1
19   -#define INIT_RESULT_FAILED_KEY_PARAMS -2
20   -
21   -
22   -
23   -
24   -@interface Client : NSObject
25   -{
26   - id<InitSDKProtocal> _initDelegate;
27   -}
28   -@property (nonatomic,retain) id<InitSDKProtocal> initDelegate;
29   -
30   -
31   -/*!
32   - * @discription init the BluePay sdk, you must call this method at first.
33   - * @param int productionId
34   - * @param NSString promotionId
35   - * @param NSString key
36   - * @param NSString lan
37   - * @return void
38   - */
39   --(void )initSDK:(int) productId promotion:(NSString*) promotionId key:(NSString *)key language:(NSString*) lan showLoading:(BOOL)showLoading;
40   -/**
41   - * @discription init sdk with BluePay.ref file.
42   - * @param showLoading if true,will show a loding dialog.
43   - */
44   --(void) initSDK:(BOOL)showLoading;
45   -
46   -/*!
47   - * @return NSString * return the promotionId;
48   - */
49   -+(NSString*) promotionId;
50   -
51   -/*!
52   - * @return int return the productId
53   - */
54   -+(int) productId;
55   -+(void) setProductId:(NSInteger) productId;
56   -+(void)setPromotionId:(NSString*) promotionId;
57   -
58   -+(NSString*) key;
59   -+(void) setKey:(NSString*)key;
60   -+(id)getInstance;
61   -+(bool) isInit;
62   -
63   -@end
64   -
ios/CoreBlue.framework/Headers/ClientHelper.h
... ... @@ -1,34 +0,0 @@
1   -//
2   -// ClientHelper.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/25.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef ClientHelper_h
10   -#define ClientHelper_h
11   -
12   -#endif /* ClientHelper_h */
13   -
14   -@interface ClientHelper : NSObject
15   -
16   -/*!
17   - * @discription return the UUID from local.this uuid have stored by generateUUID function.
18   - */
19   -+(NSString*)UUID;
20   -/*!
21   - *@discription return the tid by random.
22   - *@param NSString* never will be null
23   - *
24   - */
25   -+(NSString*) generateTId;
26   -
27   -/*!
28   - *@discription generate uuid and store on local.
29   - *
30   - */
31   -
32   -+(void)generateUUID;
33   -
34   -@end
ios/CoreBlue.framework/Headers/CoreBlue.h
... ... @@ -1,27 +0,0 @@
1   -//
2   -// CoreBlue.h
3   -// CoreBlue
4   -//
5   -// Created by wangAlvin on 16/8/3.
6   -// Copyright © 2016年 wangAlvin. All rights reserved.
7   -//
8   -
9   -#import <UIKit/UIKit.h>
10   -
11   -//! Project version number for CoreBlue.
12   -FOUNDATION_EXPORT double CoreBlueVersionNumber;
13   -
14   -//! Project version string for CoreBlue.
15   -FOUNDATION_EXPORT const unsigned char CoreBlueVersionString[];
16   -
17   -// In this header, you should import all the public headers of your framework using statements like #import <CoreBlue/PublicHeader.h>
18   -
19   -
20   -#import <CoreBlue/Client.h>
21   -#import <CoreBlue/ClientHelper.h>
22   -#import <CoreBlue/ASBlueMessage.h>
23   -#import <CoreBlue/InitSDKProtocol.h>
24   -#import <CoreBlue/PDelegate.h>
25   -#import <CoreBlue/Blue.h>
26   -#import <CoreBlue/PublisherCode.h>
27   -#import <CoreBlue/Trace.h>
ios/CoreBlue.framework/Headers/InitSDKProtocol.h
... ... @@ -1,37 +0,0 @@
1   -//
2   -// InitProtocol.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/9.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef InitSDKProtocol_h
10   -#define InitSDKProtocol_h
11   -#import <Foundation/Foundation.h>
12   -#endif /* InitProtocol_h */
13   -
14   -
15   -@protocol InitSDKProtocal <NSObject>
16   -@required
17   -/*!
18   - *@discription this functin must be impletation on the class which you want to init the BluePay SDK. this function is required .if finish init will call this function nomatter init failed or seccess.
19   - * @param int result the result code
20   - *@param NSString* msg the message of the result.
21   - */
22   --(void)complete:(int)code result:(NSString*) msg;
23   -
24   -
25   -@required
26   -
27   -@end
28   -@interface InitResult : NSObject
29   -
30   -enum RESULT
31   -{
32   - FAIL_PARAMETER = -1,
33   - FAIL_KEY = -2,
34   - FAIL = 0,
35   - SUECCESS = 1
36   -};
37   -@end
38 0 \ No newline at end of file
ios/CoreBlue.framework/Headers/PDelegate.h
... ... @@ -1,32 +0,0 @@
1   -//
2   -// PayDelegate.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/13.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef PDelegate_h
10   -#define PDelegate_h
11   -
12   -#import "ASBlueMessage.h"
13   -
14   -#endif /* PayDelegate_h */
15   -
16   -
17   -#define RESULT_405 405 /* error in sdk inner*/
18   -#define RESULT_403 403 /*not init*/
19   -#define RESULT_407 407 /*send message error*/
20   -#define RESULT_603 603 /*user cancel payment*/
21   -
22   -@protocol PDelegate <NSObject>
23   -
24   -/*!
25   - *@discription the function which will be called after finish pay nomatter pay seccess or failed.Of course thie function is required, you must implementate on your class which you want to do the payment.
26   - * @param code the request result code ,1 means seccess,-1 means failed.
27   - * @param msg BlueMessage, the msg contains price ,response code and request message.
28   - */
29   -@required
30   --(void) onComplete:(int) code message:(BlueMessage*) msg;
31   -
32   -@end
33 0 \ No newline at end of file
ios/CoreBlue.framework/Headers/Protocol.h
... ... @@ -1,19 +0,0 @@
1   -//
2   -// Protocol.h
3   -// BluePay
4   -// define the protocol for callback
5   -// Created by guojianmin on 16/1/9.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef Protocol_h
10   -#define Protocol_h
11   -#import <Foundation/Foundation.h>
12   -
13   -#endif /* Protocol_h */
14   -
15   -@protocol Protocol <NSObject>
16   -
17   -
18   --(void) doTask:(NSMutableDictionary*)params;
19   -@end
20 0 \ No newline at end of file
ios/CoreBlue.framework/Headers/PublisherCode.h
... ... @@ -1,56 +0,0 @@
1   -//
2   -// PublisherCode.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/14.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef PublisherCode_h
10   -#define PublisherCode_h
11   -
12   -
13   -#endif /* PublisherCode_h */
14   -
15   -
16   -#define PUBLISHER_BLUECOIN @"10001"
17   -
18   -/** 12Call支付 */
19   -#define PUBLISHER_12CALL @"10002"
20   -/** TrueMoney支付 */
21   -#define PUBLISHER_TRUEMONEY @"10003"
22   -
23   -
24   -#define PUBLISHER_MOBIFONE @"10005"
25   -
26   -#define PUBLISHER_VINAPHONE @"10006"
27   -
28   -#define PUBLISHER_VIETTEL @"10007"
29   -
30   -#define PUBLISHER_UNIPIN @"10008"
31   -
32   -#define PUBLISHER_HAPPY @"10009"
33   -
34   -#define PUBLISHER_VTC @"10010"
35   -#define PUBLISHER_HOPE @"10011"
36   -#define PUBLISHER_LINE @"10012"
37   -
38   -/** MESSAGE支付 */
39   -#define PUBLISHER_MESSAGE @"10013"
40   -
41   -/**
42   - *
43   - * baidu 支付
44   - */
45   -#define PUBLISHER_DCB_INDOSAT @"10014"
46   -#define PUBLISHER_DCB_SMARTFREN @"10015"
47   -#define PUBLISHER_DCB @"10016"
48   -#define PUBLISHER_INDOMOG @"10017"
49   -
50   -/** bank支付 */
51   -#define PUBLISHER_BK @"10018"
52   -#define PUBLISHER_LENGTH @(18)
53   -
54   -#define PUBLISHER_OFFLINE @"10019"
55   -#define PUBLISHER_OFFLINE_ATM @"10020"
56   -#define PUBLISHER_OFFLINE_OTC @"10021"
ios/CoreBlue.framework/Headers/Thread.h
... ... @@ -1,31 +0,0 @@
1   -//
2   -// Thread.h
3   -// BluePay
4   -//
5   -// Created by guojianmin on 16/1/9.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef Thread_h
10   -
11   -#define Thread_h
12   -
13   -#import <Foundation/Foundation.h>
14   -#import "Protocol.h"
15   -#endif /* Thread_h */
16   -
17   -
18   -@interface Thread : NSOperation
19   -{
20   - __unsafe_unretained id<Protocol > _threadProc;
21   - NSMutableDictionary* _params;
22   -
23   -}
24   -@property(nonatomic,assign) id<Protocol> threadProc;
25   -@property(nonatomic,copy) NSMutableDictionary * params;
26   -/*!
27   - * @discription 重写了init函数
28   - * @param aParams NSMutableDictionary* 参数表,往往是用于请求服务器的参数列表
29   - **/
30   --(Thread*) init: (NSMutableDictionary*) aParams;;
31   -@end
32 0 \ No newline at end of file
ios/CoreBlue.framework/Headers/Trace.h
... ... @@ -1,24 +0,0 @@
1   -//
2   -// Trace.h
3   -// CoreBluePay
4   -//
5   -// Created by guojianmin on 16/2/24.
6   -// Copyright © 2016年 alvin. All rights reserved.
7   -//
8   -
9   -#ifndef Trace_h
10   -#define Trace_h
11   -
12   -
13   -#endif /* Trace_h */
14   -
15   -
16   -@interface Trace : NSObject
17   -
18   -
19   -+(void) i:(NSString*) tag info:(NSString*) msg;
20   -
21   -+(void) e:(NSString*) tag info:(NSString*) msg;
22   -+(void) on;
23   -+(void) off;
24   -@end
25 0 \ No newline at end of file
ios/CoreBlue.framework/Info.plist
No preview for this file type
ios/CoreBlue.framework/Modules/module.modulemap
... ... @@ -1,6 +0,0 @@
1   -framework module CoreBlue {
2   - umbrella header "CoreBlue.h"
3   -
4   - export *
5   - module * { export * }
6   -}
ios/CoreBlue.framework/PrivateHeaders/UILoadingButton.h
... ... @@ -1,35 +0,0 @@
1   -//
2   -// UILoadingButton.h
3   -// Blue
4   -//
5   -// Created by wangAlvin on 16/8/26.
6   -// Copyright © 2016年 wangAlvin. All rights reserved.
7   -//
8   -
9   -#ifndef UILoadingButton_h
10   -#define UILoadingButton_h
11   -#import <UIKit/UIKit.h>
12   -#import <UIKit/UIKitDefines.h>
13   -#endif /* UILoadingButton_h */
14   -
15   -//typedef NS_OPTIONS(NSUInteger, UILBControlState) {
16   -// UILBControlStateNormal = 0,
17   -// UILBControlStateHighlighted = 1 << 0, // used when UIControl isHighlighted is set
18   -// UILBControlStateDisabled = 1 << 1,
19   -// UILBControlStateSelected = 1 << 2, // flag usable by app (see below)
20   -// UILBControlStateFocused NS_ENUM_AVAILABLE_IOS(9_0) = 1 << 3, // Applicable only when the screen supports focus
21   -// UILBControlStateApplication = 0x00FF0000, // additional flags available for application use
22   -// UILBControlStateReserved = 0xFF000000, // flags reserved for internal framework use
23   -// UILBControlStateLoading = 1<<4,
24   -// UILBControlStateStopLoading = 1<< 6
25   -//
26   -//};
27   -
28   -@interface UILoadingButton : UIButton
29   -
30   -//-(void) setTitle:(NSString *)title forState:(UILBControlState)state;
31   -
32   --(void)setIndicatorHidden:(BOOL)hidden;
33   --(void)startLoading:(void (^)()) handler;
34   --(void)stopLoading:(void (^)()) handler;
35   -@end
36 0 \ No newline at end of file
ios/CoreBlue.framework/PrivateHeaders/UIOptToolsView.h
... ... @@ -1,23 +0,0 @@
1   -//
2   -// UIOptToolsView.h
3   -// Blue
4   -//
5   -// Created by wangAlvin on 16/8/25.
6   -// Copyright © 2016年 wangAlvin. All rights reserved.
7   -//
8   -
9   -#ifndef UIOptToolsView_h
10   -#define UIOptToolsView_h
11   -#import <UIKit/UIKit.h>
12   -
13   -#endif /* UIOptToolsView_h */
14   -
15   -
16   -typedef void (^ verify)(NSString* ) ;
17   -
18   -@interface UIOptToolsView : UIViewController
19   -
20   -
21   --(id)initWithBlock:(verify )handler;
22   --(void)show:(id) target verifyAction:(_Nonnull SEL) action;
23   -@end
24 0 \ No newline at end of file
ios/CoreBlue.framework/PrivateHeaders/UIToast.h
... ... @@ -1,30 +0,0 @@
1   -//
2   -// UIToast.h
3   -// Blue
4   -//
5   -// Created by wangAlvin on 16/8/23.
6   -// Copyright © 2016年 wangAlvin. All rights reserved.
7   -//
8   -
9   -#ifndef UIToast_h
10   -#define UIToast_h
11   -#import <UIKit/UIKit.h>
12   -
13   -#endif /* UIToast_h */
14   -
15   -
16   -#define TOAST_SHOW_LONG 0
17   -#define TOAST_SHOW_SHORT 1
18   -
19   -@interface UIToast : UILabel
20   -
21   --(id)initWithText:(NSString*)text;
22   -
23   --(void)dismiss;
24   -
25   --(void)show:(NSInteger) shortOrLong;
26   -
27   -+(void)show:(NSString*) text howLong:(NSInteger) showtime;
28   -
29   -@end
30   -
ios/CoreBlue.framework/_CodeSignature/CodeDirectory
No preview for this file type
ios/CoreBlue.framework/_CodeSignature/CodeRequirements
No preview for this file type
ios/CoreBlue.framework/_CodeSignature/CodeResources
... ... @@ -1,231 +0,0 @@
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>files</key>
6   - <dict>
7   - <key>Headers/ASBlueMessage.h</key>
8   - <data>
9   - lGOZqEvwgYZZoaR03cJod+Gpvno=
10   - </data>
11   - <key>Headers/Blue.h</key>
12   - <data>
13   - fX01vOJrPphg4K9l+QokRPGD42g=
14   - </data>
15   - <key>Headers/Client.h</key>
16   - <data>
17   - 5pTBxXKrsTii/tEQYOADYouNZOo=
18   - </data>
19   - <key>Headers/ClientHelper.h</key>
20   - <data>
21   - FvHKK8rno8AJMwHzL7m0ClnDfnU=
22   - </data>
23   - <key>Headers/CoreBlue.h</key>
24   - <data>
25   - siszpYrqOeAOHzWusz+fBS+agQ8=
26   - </data>
27   - <key>Headers/InitSDKProtocol.h</key>
28   - <data>
29   - 6sgdYVdvRphNbvDkol5nc6IcpiY=
30   - </data>
31   - <key>Headers/PDelegate.h</key>
32   - <data>
33   - vdhYDCPrkAAnJvkUfUcfa2QVEMI=
34   - </data>
35   - <key>Headers/Protocol.h</key>
36   - <data>
37   - 1xBLQLrUZxnqwBdA1xtsCftv1+U=
38   - </data>
39   - <key>Headers/PublisherCode.h</key>
40   - <data>
41   - kQkEQbhqvXmMi1YKEv7BDpg+nvw=
42   - </data>
43   - <key>Headers/Thread.h</key>
44   - <data>
45   - ET72v6JztXCucIi4Gi+gfUvPmnY=
46   - </data>
47   - <key>Headers/Trace.h</key>
48   - <data>
49   - 1u6JHY8AkxNbX9GvGaLVs3k3Stk=
50   - </data>
51   - <key>Info.plist</key>
52   - <data>
53   - zXK40TuMk86dQt1PSup/ugCCWJw=
54   - </data>
55   - <key>Modules/module.modulemap</key>
56   - <data>
57   - wQWW/+ZqXesq4/4qG8NjcayKsdI=
58   - </data>
59   - <key>PrivateHeaders/UILoadingButton.h</key>
60   - <data>
61   - Edpg44GeRNByFEiCWI94kRBrg24=
62   - </data>
63   - <key>PrivateHeaders/UIOptToolsView.h</key>
64   - <data>
65   - WD2ty0UMmaNsUlPTQj+duHEjVuo=
66   - </data>
67   - <key>PrivateHeaders/UIToast.h</key>
68   - <data>
69   - vuDss5RUbINCVIawUMVfD59P8uQ=
70   - </data>
71   - </dict>
72   - <key>files2</key>
73   - <dict>
74   - <key>Headers/ASBlueMessage.h</key>
75   - <data>
76   - lGOZqEvwgYZZoaR03cJod+Gpvno=
77   - </data>
78   - <key>Headers/Blue.h</key>
79   - <data>
80   - fX01vOJrPphg4K9l+QokRPGD42g=
81   - </data>
82   - <key>Headers/Client.h</key>
83   - <data>
84   - 5pTBxXKrsTii/tEQYOADYouNZOo=
85   - </data>
86   - <key>Headers/ClientHelper.h</key>
87   - <data>
88   - FvHKK8rno8AJMwHzL7m0ClnDfnU=
89   - </data>
90   - <key>Headers/CoreBlue.h</key>
91   - <data>
92   - siszpYrqOeAOHzWusz+fBS+agQ8=
93   - </data>
94   - <key>Headers/InitSDKProtocol.h</key>
95   - <data>
96   - 6sgdYVdvRphNbvDkol5nc6IcpiY=
97   - </data>
98   - <key>Headers/PDelegate.h</key>
99   - <data>
100   - vdhYDCPrkAAnJvkUfUcfa2QVEMI=
101   - </data>
102   - <key>Headers/Protocol.h</key>
103   - <data>
104   - 1xBLQLrUZxnqwBdA1xtsCftv1+U=
105   - </data>
106   - <key>Headers/PublisherCode.h</key>
107   - <data>
108   - kQkEQbhqvXmMi1YKEv7BDpg+nvw=
109   - </data>
110   - <key>Headers/Thread.h</key>
111   - <data>
112   - ET72v6JztXCucIi4Gi+gfUvPmnY=
113   - </data>
114   - <key>Headers/Trace.h</key>
115   - <data>
116   - 1u6JHY8AkxNbX9GvGaLVs3k3Stk=
117   - </data>
118   - <key>Modules/module.modulemap</key>
119   - <data>
120   - wQWW/+ZqXesq4/4qG8NjcayKsdI=
121   - </data>
122   - <key>PrivateHeaders/UILoadingButton.h</key>
123   - <data>
124   - Edpg44GeRNByFEiCWI94kRBrg24=
125   - </data>
126   - <key>PrivateHeaders/UIOptToolsView.h</key>
127   - <data>
128   - WD2ty0UMmaNsUlPTQj+duHEjVuo=
129   - </data>
130   - <key>PrivateHeaders/UIToast.h</key>
131   - <data>
132   - vuDss5RUbINCVIawUMVfD59P8uQ=
133   - </data>
134   - </dict>
135   - <key>rules</key>
136   - <dict>
137   - <key>^</key>
138   - <true/>
139   - <key>^.*\.lproj/</key>
140   - <dict>
141   - <key>optional</key>
142   - <true/>
143   - <key>weight</key>
144   - <real>1000</real>
145   - </dict>
146   - <key>^.*\.lproj/locversion.plist$</key>
147   - <dict>
148   - <key>omit</key>
149   - <true/>
150   - <key>weight</key>
151   - <real>1100</real>
152   - </dict>
153   - <key>^version.plist$</key>
154   - <true/>
155   - </dict>
156   - <key>rules2</key>
157   - <dict>
158   - <key>.*\.dSYM($|/)</key>
159   - <dict>
160   - <key>weight</key>
161   - <real>11</real>
162   - </dict>
163   - <key>^</key>
164   - <dict>
165   - <key>weight</key>
166   - <real>20</real>
167   - </dict>
168   - <key>^(.*/)?\.DS_Store$</key>
169   - <dict>
170   - <key>omit</key>
171   - <true/>
172   - <key>weight</key>
173   - <real>2000</real>
174   - </dict>
175   - <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
176   - <dict>
177   - <key>nested</key>
178   - <true/>
179   - <key>weight</key>
180   - <real>10</real>
181   - </dict>
182   - <key>^.*</key>
183   - <true/>
184   - <key>^.*\.lproj/</key>
185   - <dict>
186   - <key>optional</key>
187   - <true/>
188   - <key>weight</key>
189   - <real>1000</real>
190   - </dict>
191   - <key>^.*\.lproj/locversion.plist$</key>
192   - <dict>
193   - <key>omit</key>
194   - <true/>
195   - <key>weight</key>
196   - <real>1100</real>
197   - </dict>
198   - <key>^Info\.plist$</key>
199   - <dict>
200   - <key>omit</key>
201   - <true/>
202   - <key>weight</key>
203   - <real>20</real>
204   - </dict>
205   - <key>^PkgInfo$</key>
206   - <dict>
207   - <key>omit</key>
208   - <true/>
209   - <key>weight</key>
210   - <real>20</real>
211   - </dict>
212   - <key>^[^/]+$</key>
213   - <dict>
214   - <key>nested</key>
215   - <true/>
216   - <key>weight</key>
217   - <real>10</real>
218   - </dict>
219   - <key>^embedded\.provisionprofile$</key>
220   - <dict>
221   - <key>weight</key>
222   - <real>20</real>
223   - </dict>
224   - <key>^version\.plist$</key>
225   - <dict>
226   - <key>weight</key>
227   - <real>20</real>
228   - </dict>
229   - </dict>
230   -</dict>
231   -</plist>
ios/CoreBlue.framework/_CodeSignature/CodeSignature
No preview for this file type
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
... ... @@ -15,7 +15,7 @@ static BOOL isDisableGoogle = NO;
15 15  
16 16 static BOOL hiddenLogo = NO;
17 17  
18   -static NSString *version = @"3.5.2";
  18 +static NSString *version = @"3.5.3";
19 19  
20 20 @interface LetsGameAPI : NSObject<UIApplicationDelegate>
21 21  
... ... @@ -52,7 +52,9 @@ static NSString *version = @&quot;3.5.2&quot;;
52 52  
53 53 -(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback;
54 54  
55   --(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback;
  55 +//-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback;
  56 +
  57 +-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback;
56 58  
57 59 -(void)registeIapObserver;
58 60  
ios/GameSDK.zip
No preview for this file type
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.pbxproj
... ... @@ -15,9 +15,6 @@
15 15 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */; };
16 16 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */; };
17 17 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 752A5F491CDC8B3200C36131 /* GameSDK.framework */; };
18   - 75B72C8F1DAA422000CFACFF /* CoreBlue.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75B72C8E1DAA422000CFACFF /* CoreBlue.framework */; };
19   - 75B72C911DAA422C00CFACFF /* MessageUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75B72C901DAA422C00CFACFF /* MessageUI.framework */; };
20   - 75B72C931DAA423500CFACFF /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75B72C921DAA423500CFACFF /* CoreTelephony.framework */; };
21 18 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; };
22 19 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; };
23 20 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; };
... ... @@ -25,7 +22,6 @@
25 22 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; };
26 23 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; };
27 24 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; };
28   - 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */; };
29 25 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; };
30 26 /* End PBXBuildFile section */
31 27  
... ... @@ -51,9 +47,6 @@
51 47 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GameSDKResources.bundle; path = ../../GameSDKResources.bundle; sourceTree = "<group>"; };
52 48 752A5F491CDC8B3200C36131 /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; };
53 49 758F7C501E9795720055AA0A /* GameSDK.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GameSDK.xcodeproj; path = ../../../iosgamesdk_newdn/GameSDK/GameSDK.xcodeproj; sourceTree = "<group>"; };
54   - 75B72C8E1DAA422000CFACFF /* CoreBlue.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBlue.framework; path = ../CoreBlue.framework; sourceTree = "<group>"; };
55   - 75B72C901DAA422C00CFACFF /* MessageUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MessageUI.framework; path = System/Library/Frameworks/MessageUI.framework; sourceTree = SDKROOT; };
56   - 75B72C921DAA423500CFACFF /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
57 50 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GameSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
58 51 9934F1B119303DC6005EF4AB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
59 52 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
... ... @@ -67,7 +60,6 @@
67 60 9934F23819307153005EF4AB /* LSGMainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSGMainViewController.h; sourceTree = "<group>"; };
68 61 9934F23919307153005EF4AB /* LSGMainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSGMainViewController.m; sourceTree = "<group>"; };
69 62 997523271930A42500F50D29 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
70   - 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
71 63 997523311930A52600F50D29 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
72 64 /* End PBXFileReference section */
73 65  
... ... @@ -76,10 +68,6 @@
76 68 isa = PBXFrameworksBuildPhase;
77 69 buildActionMask = 2147483647;
78 70 files = (
79   - 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */,
80   - 75B72C931DAA423500CFACFF /* CoreTelephony.framework in Frameworks */,
81   - 75B72C911DAA422C00CFACFF /* MessageUI.framework in Frameworks */,
82   - 75B72C8F1DAA422000CFACFF /* CoreBlue.framework in Frameworks */,
83 71 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */,
84 72 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */,
85 73 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */,
... ... @@ -143,9 +131,6 @@
143 131 9934F1B019303DC6005EF4AB /* Frameworks */ = {
144 132 isa = PBXGroup;
145 133 children = (
146   - 75B72C921DAA423500CFACFF /* CoreTelephony.framework */,
147   - 75B72C901DAA422C00CFACFF /* MessageUI.framework */,
148   - 75B72C8E1DAA422000CFACFF /* CoreBlue.framework */,
149 134 752A5F491CDC8B3200C36131 /* GameSDK.framework */,
150 135 331262361C50B56800B1B435 /* VKBridge.framework */,
151 136 3309D97E1C4394C800534E33 /* VKSdk.framework */,
... ... @@ -153,7 +138,6 @@
153 138 3309D8541C312F6500534E33 /* QuartzCore.framework */,
154 139 3309D8521C312F5900534E33 /* StoreKit.framework */,
155 140 997523311930A52600F50D29 /* MobileCoreServices.framework */,
156   - 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */,
157 141 997523271930A42500F50D29 /* CFNetwork.framework */,
158 142 9934F1B119303DC6005EF4AB /* Foundation.framework */,
159 143 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */,
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m
... ... @@ -35,7 +35,6 @@
35 35 [[UIApplication sharedApplication] setStatusBarHidden:YES];
36 36 [[LetsGameAPI instance] registeIapObserver];
37 37  
38   -
39 38 return YES;
40 39 }
41 40  
ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
... ... @@ -136,9 +136,13 @@
136 136 [payInfo setValue:@"10" forKey:@"amount"];
137 137 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];
138 138 [payInfo setValue:@"test.product.1" forKey:@"product"];
139   - [[LetsGameAPI instance] iap:payInfo forUser:@"" handleCallback:^(NSString* orderId){
  139 + [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) {
  140 + //注意测试仅仅是通知客户端成功,但是还需要向服务器请求验证是否成功,以服务端验证为准
140 141 NSLog(@"IAP completed orderId of Gumptech:%@",orderId);
  142 + } failCallback:^(NSString *orderId) {
  143 + NSLog(@"IAP file orderId of Gumptech:%@",orderId);
141 144 }];
  145 +
142 146 }
143 147  
144 148