Commit e8af7574172ea1934a233bfe357ded4e4c25c098

Authored by alexYang
1 parent 51fd2d6b45
Exists in master and in 1 other branch dev

wechat login add

Showing 15 changed files with 283 additions and 58 deletions Inline Diff

1 # Gump IOS SDK使用文档 1 # Gump IOS SDK使用文档
2 2
3 3
4 接入手册 4 接入手册
5 V 3.4.8 5 V 3.4.9
6 2017年6月13日 6 2017年6月13日
7 7
8 ## 概述 8 ## 概述
9 #### 本SDK提供gump账号,fb账号,vk账号,Google帐号四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 9 #### 本SDK提供gump账号,fb账号,vk账号,Google帐号四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。
10 10
11 ## 接入步骤 11 ## 接入步骤
12 ### 1、添加Framework和资源文件 12 ### 1、添加Framework和资源文件
13 + 以下为必须添加的framework以及资源bundle: 13 + 以下为必须添加的framework以及资源bundle:
14 MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、GameSDK.framework、StoreKit.framework、GameSDKResources.bundle 14 MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、GameSDK.framework、StoreKit.framework、GameSDKResources.bundle
15 + 以下为可选,若接入vk登录则需要添加以下framework和bundle,其中VKSdk.framework和VKSDKResources.bundle请自行从vk.com下载,使用1.3版本 15 + 以下为可选,若接入vk登录则需要添加以下framework和bundle,其中VKSdk.framework和VKSDKResources.bundle请自行从vk.com下载,使用1.3版本
16 VKSdk.framework、VKBridge.framework、VKSDKResources.bundle 16 VKSdk.framework、VKBridge.framework、VKSDKResources.bundle
17 + 以下可选,若接入微信登陆则需要添加如下的framework:
18 libsqlite3.0.dylib, libc++.dylib, Security.framework, CoreTelephony.framework, CFNetwork.framework
17 19
18 20
19 ### 2、引入头文件,设置build setting 21 ### 2、引入头文件,设置build setting
20 需要使用头文件有LetsGameAPI.h和VKBridge.h,其中VKBridge.h为接入vk时使用,不接入vk可忽略。 22 需要使用头文件有LetsGameAPI.h和VKBridge.h,其中VKBridge.h为接入vk时使用,不接入vk可忽略。
21 因sdk内使用了category,需要设置other linker flag为 -ObjC 23 因sdk内使用了category,需要设置other linker flag为 -ObjC
22 24
23 25
24 ### 3、增加必要配置 26 ### 3、增加必要配置
25 1)在application delegate中, 在application:openURL:sourceApplication:annotation:添加返回: 27 1)在application delegate中, 在application:openURL:sourceApplication:annotation:添加返回:
26 28
27 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; 29 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication];
28 30
29 31
30 2)配置URL-schema(vk专用,不接入vk可忽略) 32 2)配置URL-schema(vk专用,不接入vk可忽略)
31 Xcode 5: Open your application settings then select the Info tab. In the URL Types section click the plus sign. Enter vk+APP_ID (e.g. vk1234567) to the Identifier and URL Schemes fields. 33 Xcode 5: Open your application settings then select the Info tab. In the URL Types section click the plus sign. Enter vk+APP_ID (e.g. vk1234567) to the Identifier and URL Schemes fields.
32 ![](images/vk1.jpg) 34 ![](images/vk1.jpg)
33 Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifier to vk+APP_ID 35 Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifier to vk+APP_ID
34 ![](images/vk2.jpg) 36 ![](images/vk2.jpg)
37 3)配置UIL-schema(weChat专用,不接入可以忽略)
38 选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id
39 选中“TARGETS”一栏,在“info”标签栏的“LSApplicationQueriesSchemes“添加weixin和wechat
35 40
36 ### 4、在工程里添加SDK登录代码 41 ### 4、在工程里添加SDK登录代码
37 42
38 [LetsGameAPI instance].appId = @"100"; // 设置appId 43 [LetsGameAPI instance].appId = @"100"; // 设置appId
39 [LetsGameAPI instance].appKey = @"100"; // 设置appKey 44 [LetsGameAPI instance].appKey = @"100"; // 设置appKey
40 45
41 //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略 46 //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略
42 //VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; 47 //VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"];
43 //[LetsGameAPI instance].vkBridge = vkBridge; 48 //[LetsGameAPI instance].vkBridge = vkBridge;
44 49
45 //隐藏fb登录 50 //隐藏fb登录
46 [LetsGameAPI disableFB:YES]; 51 [LetsGameAPI disableFB:YES];
47 //隐藏Google登录 52 //隐藏Google登录
48 [LetsGameAPI disableGoogle:YES]; 53 [LetsGameAPI disableGoogle:YES];
49 //隐藏gumptech的logo 54 //隐藏gumptech的logo
50 [LetsGameAPI hiddenLogo:YES]; 55 [LetsGameAPI hiddenLogo:YES];
51 56
52 [[LetsGameAPI instance] showLoginView]; // 弹出登录页面 57 [[LetsGameAPI instance] showLoginView]; // 弹出登录页面
53 58
54 // 登录成功回调 59 // 登录成功回调
55 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { 60 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) {
56 NSLog(@"%@", [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %d", userId, sessionKey, type]); 61 NSLog(@"%@", [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %d", userId, sessionKey, type]);
57 }; 62 };
58 63
59 // 登录失败回调 64 // 登录失败回调
60 [LetsGameAPI instance].dismissBlock = ^() { 65 [LetsGameAPI instance].dismissBlock = ^() {
61 NSLog(@"dismiss without login"); 66 NSLog(@"dismiss without login");
62 }; 67 };
63 68
64 ### 5、登录注销 69 ### 5、登录注销
65 注销接口只要设置过appId和appKey之后就不需要设置了,注销完成之后会回到登录界面。FB登录回到登录页面,Gump登录或者游客登录回到登录框。 70 注销接口只要设置过appId和appKey之后就不需要设置了,注销完成之后会回到登录界面。FB登录回到登录页面,Gump登录或者游客登录回到登录框。
66 71
67 [LetsGameAPI instance].appId = @"100";//设置appId 72 [LetsGameAPI instance].appId = @"100";//设置appId
68 [LetsGameAPI instance].appKey = @"100";//设置appkey 73 [LetsGameAPI instance].appKey = @"100";//设置appkey
69 [[LetsGameAPI instance] logout]; //注销 74 [[LetsGameAPI instance] logout]; //注销
70 75
71 76
72 ### 6、第三方支付 77 ### 6、第三方支付
73 [LetsGameAPI instance].appId = @"10022"; 78 [LetsGameAPI instance].appId = @"10022";
74 [LetsGameAPI instance].appKey = @"f899139df5e1059396431415e770c6dd"; 79 [LetsGameAPI instance].appKey = @"f899139df5e1059396431415e770c6dd";
75 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 80 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
76 [payInfo setValue:@"5001" forKey:@"serverId"];//服务器id,必传参数 81 [payInfo setValue:@"5001" forKey:@"serverId"];//服务器id,必传参数
77 [payInfo setValue:@"10010" forKey:@"roleId"];//用户角色id 82 [payInfo setValue:@"10010" forKey:@"roleId"];//用户角色id
78 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id 83 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id
79 [payInfo setValue:@"10" forKey:@"amount"];//金额 84 [payInfo setValue:@"10" forKey:@"amount"];//金额
80 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//外部订单信息 85 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//外部订单信息
81 [payInfo setValue:@"元宝" forKey:@"product"];//物品信息 86 [payInfo setValue:@"元宝" forKey:@"product"];//物品信息
82 [payInfo setValue:self.sessionKey forKey:@"sessionKey"];//登录成功的sessionKey 87 [payInfo setValue:self.sessionKey forKey:@"sessionKey"];//登录成功的sessionKey
83 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{ 88 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{
84 //第三方支付完成时的回调(包括支付成功和支付失败,除了支付过程中取消的),取消的不会有回调 89 //第三方支付完成时的回调(包括支付成功和支付失败,除了支付过程中取消的),取消的不会有回调
85 NSLog(@"第三方支付完成"); 90 NSLog(@"第三方支付完成");
86 }]]; 91 }]];
87 92
88 ### 7、IAP支付 93 ### 7、IAP支付
89 若要使用apple IAP支付,需要在AppDelegate的application: didFinishLaunchingWithOptions:方法内注册iap observer,使用如下方法 94 若要使用apple IAP支付,需要在AppDelegate的application: didFinishLaunchingWithOptions:方法内注册iap observer,使用如下方法
90 95
91 [[LetsGameAPI instance] registeIapObserver]; 96 [[LetsGameAPI instance] registeIapObserver];
92 具体调用iap支付的方法如下: 97 具体调用iap支付的方法如下:
93 98
94 [LetsGameAPI instance].appId = @"10022"; 99 [LetsGameAPI instance].appId = @"10022";
95 [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; 100 [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab";
96 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 101 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
97 [payInfo setValue:@"5001" forKey:@"serverId"];//当前用户所在的服务器Id 102 [payInfo setValue:@"5001" forKey:@"serverId"];//当前用户所在的服务器Id
98 [payInfo setValue:@"10010" forKey:@"roleId"];//当前用户的角色id 103 [payInfo setValue:@"10010" forKey:@"roleId"];//当前用户的角色id
99 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id,用于统计 104 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id,用于统计
100 [payInfo setValue:@"10" forKey:@"amount"];//对应支付项的支付金额,实际支付金额以itunes配置为准 105 [payInfo setValue:@"10" forKey:@"amount"];//对应支付项的支付金额,实际支付金额以itunes配置为准
101 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//扩展信息,可以游戏自定义,建议传自有订单号 106 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//扩展信息,可以游戏自定义,建议传自有订单号
102 [payInfo setValue:@"test.product.1" forKey:@"product"];//itunes 后台配置的对应支付项的productId 107 [payInfo setValue:@"test.product.1" forKey:@"product"];//itunes 后台配置的对应支付项的productId
103 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) { 108 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) {
104 //此处的回调表明支付已经完成,但此时支付不一定成功,需要服务端验证支付结果 109 //此处的回调表明支付已经完成,但此时支付不一定成功,需要服务端验证支付结果
105 //orderId为gump生成的订单号,此订单号可以在gump server查询此笔支付是否成功 110 //orderId为gump生成的订单号,此订单号可以在gump server查询此笔支付是否成功
106 NSLog(@"IAP completed orderId of Gumptech:%@",orderId); 111 NSLog(@"IAP completed orderId of Gumptech:%@",orderId);
107 } failCallback:^(NSString *orderId) { 112 } failCallback:^(NSString *orderId) {
108 //支付失败 113 //支付失败
109 NSLog(@"IAP file orderId of Gumptech:%@",orderId); 114 NSLog(@"IAP file orderId of Gumptech:%@",orderId);
110 }]; 115 }];
111 ### 8、token的获取 116 ### 8、token的获取
112 FB登录之后会产生token并自动登录,需要如果需要token的话,需要自己调用接口获取。 117 FB登录之后会产生token并自动登录,需要如果需要token的话,需要自己调用接口获取。
113 118
114 //tokenString:token字符串 119 //tokenString:token字符串
115 //refreshTime:refreshTime token最后刷新的时间,即获取的token的时间 120 //refreshTime:refreshTime token最后刷新的时间,即获取的token的时间
116 //expirationTime:expirationTime token最后的有效时间 121 //expirationTime:expirationTime token最后的有效时间
117 [[LetsGameAPI instance] obtainAccessTokenSuccess:^(NSString *tokenString, NSString *refreshTime, NSString *expirationTime) { 122 [[LetsGameAPI instance] obtainAccessTokenSuccess:^(NSString *tokenString, NSString *refreshTime, NSString *expirationTime) {
118 NSLog(@"tokenString %@, refreshTime %@, expirationTime %@", tokenString, refreshTime, expirationTime); 123 NSLog(@"tokenString %@, refreshTime %@, expirationTime %@", tokenString, refreshTime, expirationTime);
119 } failure:^(NSString *errorString) { 124 } failure:^(NSString *errorString) {
120 NSLog(@"get token faile"); 125 NSLog(@"get token faile");
121 }]; 126 }];
122 127
123 128
124 ### 9、第三方支付版本 129 ### 9、第三方支付版本
125 第三方支付,分成两个版本:没有gump币和有gump币,不设置时默认为带gump币版本,如果使用不带gump币的版本如下设置: 130 第三方支付,分成两个版本:没有gump币和有gump币,不设置时默认为带gump币版本,如果使用不带gump币的版本如下设置:
126 131
127 需要在 application:didFinishLaunchingWithOptions方法中添加: 132 需要在 application:didFinishLaunchingWithOptions方法中添加:
128 133
129 [[LetsGameAPI instance] decideWebPayVersion:1] 134 [[LetsGameAPI instance] decideWebPayVersion:1]
130 135
131 136
132 ### 10、关于侵权还是侵权的接口显示 137 ### 10、关于侵权还是侵权的接口显示
133 运营在后台配置此包名和版本在什么时候显示侵权内容还是不侵权内容,此接口调用需要在游戏才开始加载的时候调用,返回值是YES的时候显示侵权内容,在NO的时候显示不侵权内容。 138 运营在后台配置此包名和版本在什么时候显示侵权内容还是不侵权内容,此接口调用需要在游戏才开始加载的时候调用,返回值是YES的时候显示侵权内容,在NO的时候显示不侵权内容。
134 139
135 注意:关于运营配置的游戏的版本号,我们默认取的是Bulid版本号的值,请注意。 140 注意:关于运营配置的游戏的版本号,我们默认取的是Bulid版本号的值,请注意。
136 141
137 [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) { 142 [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) {
138 if (resultStatus) { 143 if (resultStatus) {
139 NSLog(@"YES 侵权"); 144 NSLog(@"YES 侵权");
140 }else{ 145 }else{
141 NSLog(@"NO 不侵权"); 146 NSLog(@"NO 不侵权");
142 } 147 }
143 }]; 148 }];
144 149
150 ### 11、微信登陆
145 151
152 首先在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;方法中向微信注册应用
153 //微信登陆
154 [[LetsGameAPI instance] registerAppWeChatWithAppId:@"appId" appKey:@"appKey" Success:^{
155 NSLog(@"注册成功");
156 } failure:^{
157 NSLog(@"注册失败");
158 }];
146 159
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
ios/GameSDK.framework/Versions/A/Headers/LSGAccount.h
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 typedef NS_ENUM(NSInteger, LSGAccountType) { 3 typedef NS_ENUM(NSInteger, LSGAccountType) {
4 LSGAccountTypeRegist = 1, 4 LSGAccountTypeRegist = 1,
5 LSGAccountTypeFBRegist = 2, 5 LSGAccountTypeFBRegist = 2,
6 LSGAccountTypeQuickRegist = 4, 6 LSGAccountTypeQuickRegist = 4,
7 LSGAccountTypeVKRegist = 8, 7 LSGAccountTypeVKRegist = 8,
8 LSGAccountTypeGoogleRegist = 16, 8 LSGAccountTypeGoogleRegist = 16,
9 LSGAccountTypeWeChatRegist = 32,
9 }; 10 };
10 11
11 //判断是不是自动登录情况 12 //判断是不是自动登录情况
12 #define LSGAccountTypeBaseLogin 32 13 #define LSGAccountTypeBaseLogin 64
13 14
14 @interface LSGAccount : NSObject 15 @interface LSGAccount : NSObject
15 16
16 @property(nonatomic, assign) LSGAccountType type; 17 @property(nonatomic, assign) LSGAccountType type;
17 @property(nonatomic, strong) NSString *username; 18 @property(nonatomic, strong) NSString *username;
18 @property(nonatomic, strong) NSString *nickName; 19 @property(nonatomic, strong) NSString *nickName;
19 @property(nonatomic, strong) NSString *password; 20 @property(nonatomic, strong) NSString *password;
20 @property(nonatomic, strong) NSString *userId; 21 @property(nonatomic, strong) NSString *userId;
21 @property(nonatomic, strong) NSString *sessionKey; 22 @property(nonatomic, strong) NSString *sessionKey;
22 @property(nonatomic, strong) NSString *deviceId; 23 @property(nonatomic, strong) NSString *deviceId;
23 24
24 + (void)saveAccount:(NSString *)service account:(LSGAccount *)account; 25 + (void)saveAccount:(NSString *)service account:(LSGAccount *)account;
25 26
26 + (LSGAccount *)loadAccount:(NSString *)service; 27 + (LSGAccount *)loadAccount:(NSString *)service;
27 28
28 + (void)deleteAccount:(NSString *)service; 29 + (void)deleteAccount:(NSString *)service;
29 30
30 @end 31 @end
31 32
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
1 1
2 #import <Foundation/Foundation.h> 2 #import <Foundation/Foundation.h>
3 #import "LSGAccount.h" 3 #import "LSGAccount.h"
4 #import "VKBridgeProtocol.h" 4 #import "VKBridgeProtocol.h"
5 5
6 6
7 typedef void (^LSGLoginSuccBlock)(NSString *userId, NSString *sessionKey, LSGAccountType type); 7 typedef void (^LSGLoginSuccBlock)(NSString *userId, NSString *sessionKey, LSGAccountType type);
8 typedef void (^LSGDismissBlock)(void); 8 typedef void (^LSGDismissBlock)(void);
9 9
10 static BOOL isDisableFB = NO; 10 static BOOL isDisableFB = NO;
11 11
12 static BOOL isEnableVK = NO; 12 static BOOL isEnableVK = NO;
13 13
14 static BOOL isEnableWeChat = YES;
15
14 static BOOL isDisableGoogle = NO; 16 static BOOL isDisableGoogle = NO;
15 17
16 static BOOL hiddenLogo = NO; 18 static BOOL hiddenLogo = NO;
17 19
18 static NSString *version = @"3.4.8"; 20 static NSString *version = @"3.4.9";
19 21
20 @interface LetsGameAPI : NSObject<UIApplicationDelegate> 22 @interface LetsGameAPI : NSObject<UIApplicationDelegate>
21 23
22 @property (nonatomic, strong) NSString *appId; 24 @property (nonatomic, strong) NSString *appId;
23 @property (nonatomic, strong) NSString *appKey; 25 @property (nonatomic, strong) NSString *appKey;
24 @property (nonatomic, copy) LSGLoginSuccBlock succBlock; 26 @property (nonatomic, copy) LSGLoginSuccBlock succBlock;
25 @property (nonatomic, copy) LSGDismissBlock dismissBlock; 27 @property (nonatomic, copy) LSGDismissBlock dismissBlock;
26 @property (nonatomic, assign) int isDebug; 28 @property (nonatomic, assign) int isDebug;
27 @property (nonatomic, assign) int decideWebPay; 29 @property (nonatomic, assign) int decideWebPay;
28 @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge; 30 @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge;
29 //@property(nonatomic,strong) NSString *version; 31 //@property(nonatomic,strong) NSString *version;
30 32
31 + (instancetype)instance; 33 + (instancetype)instance;
32 34
33 -(NSString*)version; 35 -(NSString*)version;
34 36
35 - (void)showLoginView; 37 - (void)showLoginView;
36 - (void)showLoginViewInView:(UIView *)view; 38 - (void)showLoginViewInView:(UIView *)view;
37 39
38 +(void)disableFB:(BOOL)isDisable; 40 +(void)disableFB:(BOOL)isDisable;
39 +(void)disableGoogle:(BOOL)isDisable; 41 +(void)disableGoogle:(BOOL)isDisable;
40 +(BOOL)isFBDisable; 42 +(BOOL)isFBDisable;
41 +(BOOL)isVKEnable; 43 +(BOOL)isVKEnable;
44 +(BOOL)isWeChatEnable;
42 +(BOOL)isGoogleDisable; 45 +(BOOL)isGoogleDisable;
43 +(void)hiddenLogo:(BOOL)isHidden; 46 +(void)hiddenLogo:(BOOL)isHidden;
44 +(BOOL)isHiddenLogo; 47 +(BOOL)isHiddenLogo;
45 48
46 - (void)logout; 49 - (void)logout;
47 50
48 - (void)hide; 51 - (void)hide;
52 //是否安装微信
53 -(BOOL)isWeChatInstall;
54 //向微信注册应用
55 -(void)registerAppWeChatWithAppId:(NSString *)appId
56 appKey:(NSString *)appKey
57 Success:(void (^)())success
58 failure:(void (^)())failure;
49 59
50 - (BOOL)handleOpenURL:(NSURL *)url 60 - (BOOL)handleOpenURL:(NSURL *)url
51 sourceApplication:(NSString *)sourceApplication; 61 sourceApplication:(NSString *)sourceApplication;
52 62
53 -(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback; 63 -(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback;
54 64
55 //-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback; 65 //-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback;
56 66
57 -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback; 67 -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback;
58 68
59 -(void)registeIapObserver; 69 -(void)registeIapObserver;
60 70
61 -(void)decideIsDebug:(int)isDebug; 71 -(void)decideIsDebug:(int)isDebug;
62 72
63 -(void)decideWebPayVersion:(int)decideWebPay; 73 -(void)decideWebPayVersion:(int)decideWebPay;
64 74
65 -(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success 75 -(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success
66 failure:(void (^)(NSString *errorString))failure; 76 failure:(void (^)(NSString *errorString))failure;
67 77
68 //获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面 78 //获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面
69 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId 79 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId
70 ChannelId:(NSString *)channelId 80 ChannelId:(NSString *)channelId
71 handleCallBack:(void (^)(BOOL resultStatus))callBack; 81 handleCallBack:(void (^)(BOOL resultStatus))callBack;
72 @end 82 @end
73 83
No preview for this file type
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.pbxproj
1 // !$*UTF8*$! 1 // !$*UTF8*$!
2 { 2 {
3 archiveVersion = 1; 3 archiveVersion = 1;
4 classes = { 4 classes = {
5 }; 5 };
6 objectVersion = 46; 6 objectVersion = 46;
7 objects = { 7 objects = {
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D8521C312F5900534E33 /* StoreKit.framework */; }; 10 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D8521C312F5900534E33 /* StoreKit.framework */; };
11 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D8541C312F6500534E33 /* QuartzCore.framework */; }; 11 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D8541C312F6500534E33 /* QuartzCore.framework */; };
12 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */; }; 12 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */; };
13 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D97E1C4394C800534E33 /* VKSdk.framework */; }; 13 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D97E1C4394C800534E33 /* VKSdk.framework */; };
14 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331262361C50B56800B1B435 /* VKBridge.framework */; }; 14 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331262361C50B56800B1B435 /* VKBridge.framework */; };
15 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */; }; 15 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */; };
16 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */; }; 16 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */; };
17 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 752A5F491CDC8B3200C36131 /* GameSDK.framework */; }; 17 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 752A5F491CDC8B3200C36131 /* GameSDK.framework */; };
18 75864D631FF35A22002C9012 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D601FF35A22002C9012 /* libsqlite3.tbd */; };
19 75864D651FF35A3A002C9012 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D641FF35A3A002C9012 /* CoreTelephony.framework */; };
20 75864D671FF35A48002C9012 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D661FF35A48002C9012 /* libz.tbd */; };
21 75864D691FF35A58002C9012 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D681FF35A57002C9012 /* libc++.tbd */; };
18 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; }; 22 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; };
19 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; }; 23 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; };
20 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; }; 24 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; };
21 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */; }; 25 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */; };
22 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; }; 26 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; };
23 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; }; 27 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; };
24 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; }; 28 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; };
25 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; }; 29 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; };
26 /* End PBXBuildFile section */ 30 /* End PBXBuildFile section */
27 31
28 /* Begin PBXContainerItemProxy section */ 32 /* Begin PBXContainerItemProxy section */
29 75F818A01EEAA3EE0088B62F /* PBXContainerItemProxy */ = { 33 75864D6F1FF368D9002C9012 /* PBXContainerItemProxy */ = {
30 isa = PBXContainerItemProxy; 34 isa = PBXContainerItemProxy;
31 containerPortal = 75F8189B1EEAA3EE0088B62F /* GameSDK.xcodeproj */; 35 containerPortal = 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */;
32 proxyType = 2; 36 proxyType = 2;
33 remoteGlobalIDString = 99626194192D9649004FF2E3; 37 remoteGlobalIDString = 99626194192D9649004FF2E3;
34 remoteInfo = GameSDK; 38 remoteInfo = GameSDK;
35 }; 39 };
36 /* End PBXContainerItemProxy section */ 40 /* End PBXContainerItemProxy section */
37 41
38 /* Begin PBXFileReference section */ 42 /* Begin PBXFileReference section */
39 27019DCA1A208B1500DA560D /* Path.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Path.xcconfig; sourceTree = "<group>"; }; 43 27019DCA1A208B1500DA560D /* Path.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Path.xcconfig; sourceTree = "<group>"; };
40 27019DCB1A208B1500DA560D /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = "<group>"; }; 44 27019DCB1A208B1500DA560D /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = "<group>"; };
41 3309D8521C312F5900534E33 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/StoreKit.framework; sourceTree = "<absolute>"; }; 45 3309D8521C312F5900534E33 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/StoreKit.framework; sourceTree = "<absolute>"; };
42 3309D8541C312F6500534E33 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = "<absolute>"; }; 46 3309D8541C312F6500534E33 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = "<absolute>"; };
43 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.1.2.5.tbd; path = usr/lib/libz.1.2.5.tbd; sourceTree = SDKROOT; }; 47 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.1.2.5.tbd; path = usr/lib/libz.1.2.5.tbd; sourceTree = SDKROOT; };
44 3309D97E1C4394C800534E33 /* VKSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKSdk.framework; path = letsgameDemo/VKSdk.framework; sourceTree = "<group>"; }; 48 3309D97E1C4394C800534E33 /* VKSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKSdk.framework; path = letsgameDemo/VKSdk.framework; sourceTree = "<group>"; };
45 331262361C50B56800B1B435 /* VKBridge.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKBridge.framework; path = ../VKBridge.framework; sourceTree = "<group>"; }; 49 331262361C50B56800B1B435 /* VKBridge.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKBridge.framework; path = ../VKBridge.framework; sourceTree = "<group>"; };
46 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = VKSdkResources.bundle; sourceTree = "<group>"; }; 50 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = VKSdkResources.bundle; sourceTree = "<group>"; };
47 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GameSDKResources.bundle; path = ../../GameSDKResources.bundle; sourceTree = "<group>"; }; 51 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GameSDKResources.bundle; path = ../../GameSDKResources.bundle; sourceTree = "<group>"; };
48 752A5F491CDC8B3200C36131 /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; }; 52 752A5F491CDC8B3200C36131 /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; };
49 75F8189B1EEAA3EE0088B62F /* GameSDK.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GameSDK.xcodeproj; path = ../../../iosgamesdk/GameSDK/GameSDK.xcodeproj; sourceTree = "<group>"; }; 53 75864D601FF35A22002C9012 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
54 75864D641FF35A3A002C9012 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
55 75864D661FF35A48002C9012 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
56 75864D681FF35A57002C9012 /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
57 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GameSDK.xcodeproj; path = ../../../iosgamesdk/GameSDK/GameSDK.xcodeproj; sourceTree = "<group>"; };
50 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GameSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 58 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GameSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
51 9934F1B119303DC6005EF4AB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 59 9934F1B119303DC6005EF4AB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
52 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 60 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
53 9934F1B519303DC6005EF4AB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 61 9934F1B519303DC6005EF4AB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
54 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "letsgameDemo-Info.plist"; sourceTree = "<group>"; }; 62 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "letsgameDemo-Info.plist"; sourceTree = "<group>"; };
55 9934F1BD19303DC6005EF4AB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 63 9934F1BD19303DC6005EF4AB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
56 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GameSDKDemo-Prefix.pch"; sourceTree = "<group>"; }; 64 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GameSDKDemo-Prefix.pch"; sourceTree = "<group>"; };
57 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LSGAppDelegate.h; sourceTree = "<group>"; }; 65 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LSGAppDelegate.h; sourceTree = "<group>"; };
58 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LSGAppDelegate.m; sourceTree = "<group>"; }; 66 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LSGAppDelegate.m; sourceTree = "<group>"; };
59 9934F1C319303DC6005EF4AB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; 67 9934F1C319303DC6005EF4AB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
60 9934F23819307153005EF4AB /* LSGMainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSGMainViewController.h; sourceTree = "<group>"; }; 68 9934F23819307153005EF4AB /* LSGMainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSGMainViewController.h; sourceTree = "<group>"; };
61 9934F23919307153005EF4AB /* LSGMainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSGMainViewController.m; sourceTree = "<group>"; }; 69 9934F23919307153005EF4AB /* LSGMainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSGMainViewController.m; sourceTree = "<group>"; };
62 997523271930A42500F50D29 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; 70 997523271930A42500F50D29 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
63 997523311930A52600F50D29 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; 71 997523311930A52600F50D29 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
64 /* End PBXFileReference section */ 72 /* End PBXFileReference section */
65 73
66 /* Begin PBXFrameworksBuildPhase section */ 74 /* Begin PBXFrameworksBuildPhase section */
67 9934F1AB19303DC6005EF4AB /* Frameworks */ = { 75 9934F1AB19303DC6005EF4AB /* Frameworks */ = {
68 isa = PBXFrameworksBuildPhase; 76 isa = PBXFrameworksBuildPhase;
69 buildActionMask = 2147483647; 77 buildActionMask = 2147483647;
70 files = ( 78 files = (
79 75864D691FF35A58002C9012 /* libc++.tbd in Frameworks */,
80 75864D671FF35A48002C9012 /* libz.tbd in Frameworks */,
81 75864D651FF35A3A002C9012 /* CoreTelephony.framework in Frameworks */,
82 75864D631FF35A22002C9012 /* libsqlite3.tbd in Frameworks */,
71 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */, 83 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */,
72 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */, 84 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */,
73 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */, 85 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */,
74 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */, 86 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */,
75 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */, 87 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */,
76 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */, 88 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */,
77 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */, 89 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */,
78 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */, 90 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */,
79 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */, 91 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */,
80 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */, 92 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */,
81 ); 93 );
82 runOnlyForDeploymentPostprocessing = 0; 94 runOnlyForDeploymentPostprocessing = 0;
83 }; 95 };
84 /* End PBXFrameworksBuildPhase section */ 96 /* End PBXFrameworksBuildPhase section */
85 97
86 /* Begin PBXGroup section */ 98 /* Begin PBXGroup section */
87 27019DC91A208B1500DA560D /* Configuration */ = { 99 27019DC91A208B1500DA560D /* Configuration */ = {
88 isa = PBXGroup; 100 isa = PBXGroup;
89 children = ( 101 children = (
90 27019DCA1A208B1500DA560D /* Path.xcconfig */, 102 27019DCA1A208B1500DA560D /* Path.xcconfig */,
91 27019DCB1A208B1500DA560D /* Project.xcconfig */, 103 27019DCB1A208B1500DA560D /* Project.xcconfig */,
92 ); 104 );
93 path = Configuration; 105 path = Configuration;
94 sourceTree = "<group>"; 106 sourceTree = "<group>";
95 }; 107 };
96 27019DCE1A208B2300DA560D /* Dependencies */ = { 108 27019DCE1A208B2300DA560D /* Dependencies */ = {
97 isa = PBXGroup; 109 isa = PBXGroup;
98 children = ( 110 children = (
99 75F8189B1EEAA3EE0088B62F /* GameSDK.xcodeproj */, 111 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */,
100 ); 112 );
101 name = Dependencies; 113 name = Dependencies;
102 sourceTree = "<group>"; 114 sourceTree = "<group>";
103 }; 115 };
104 75F8189C1EEAA3EE0088B62F /* Products */ = { 116 75864D6B1FF368D9002C9012 /* Products */ = {
105 isa = PBXGroup; 117 isa = PBXGroup;
106 children = ( 118 children = (
107 75F818A11EEAA3EE0088B62F /* libGameSDK.a */, 119 75864D701FF368D9002C9012 /* libGameSDK.a */,
108 ); 120 );
109 name = Products; 121 name = Products;
110 sourceTree = "<group>"; 122 sourceTree = "<group>";
111 }; 123 };
112 9934F1A519303DC6005EF4AB = { 124 9934F1A519303DC6005EF4AB = {
113 isa = PBXGroup; 125 isa = PBXGroup;
114 children = ( 126 children = (
115 27019DC91A208B1500DA560D /* Configuration */, 127 27019DC91A208B1500DA560D /* Configuration */,
116 27019DCE1A208B2300DA560D /* Dependencies */, 128 27019DCE1A208B2300DA560D /* Dependencies */,
117 9934F1B719303DC6005EF4AB /* letsgameDemo */, 129 9934F1B719303DC6005EF4AB /* letsgameDemo */,
118 9934F1B019303DC6005EF4AB /* Frameworks */, 130 9934F1B019303DC6005EF4AB /* Frameworks */,
119 9934F1AF19303DC6005EF4AB /* Products */, 131 9934F1AF19303DC6005EF4AB /* Products */,
120 ); 132 );
121 sourceTree = "<group>"; 133 sourceTree = "<group>";
122 }; 134 };
123 9934F1AF19303DC6005EF4AB /* Products */ = { 135 9934F1AF19303DC6005EF4AB /* Products */ = {
124 isa = PBXGroup; 136 isa = PBXGroup;
125 children = ( 137 children = (
126 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */, 138 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */,
127 ); 139 );
128 name = Products; 140 name = Products;
129 sourceTree = "<group>"; 141 sourceTree = "<group>";
130 }; 142 };
131 9934F1B019303DC6005EF4AB /* Frameworks */ = { 143 9934F1B019303DC6005EF4AB /* Frameworks */ = {
132 isa = PBXGroup; 144 isa = PBXGroup;
133 children = ( 145 children = (
146 75864D681FF35A57002C9012 /* libc++.tbd */,
147 75864D661FF35A48002C9012 /* libz.tbd */,
148 75864D641FF35A3A002C9012 /* CoreTelephony.framework */,
149 75864D601FF35A22002C9012 /* libsqlite3.tbd */,
134 752A5F491CDC8B3200C36131 /* GameSDK.framework */, 150 752A5F491CDC8B3200C36131 /* GameSDK.framework */,
135 331262361C50B56800B1B435 /* VKBridge.framework */, 151 331262361C50B56800B1B435 /* VKBridge.framework */,
136 3309D97E1C4394C800534E33 /* VKSdk.framework */, 152 3309D97E1C4394C800534E33 /* VKSdk.framework */,
137 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */, 153 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */,
138 3309D8541C312F6500534E33 /* QuartzCore.framework */, 154 3309D8541C312F6500534E33 /* QuartzCore.framework */,
139 3309D8521C312F5900534E33 /* StoreKit.framework */, 155 3309D8521C312F5900534E33 /* StoreKit.framework */,
140 997523311930A52600F50D29 /* MobileCoreServices.framework */, 156 997523311930A52600F50D29 /* MobileCoreServices.framework */,
141 997523271930A42500F50D29 /* CFNetwork.framework */, 157 997523271930A42500F50D29 /* CFNetwork.framework */,
142 9934F1B119303DC6005EF4AB /* Foundation.framework */, 158 9934F1B119303DC6005EF4AB /* Foundation.framework */,
143 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */, 159 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */,
144 9934F1B519303DC6005EF4AB /* UIKit.framework */, 160 9934F1B519303DC6005EF4AB /* UIKit.framework */,
145 ); 161 );
146 name = Frameworks; 162 name = Frameworks;
147 sourceTree = "<group>"; 163 sourceTree = "<group>";
148 }; 164 };
149 9934F1B719303DC6005EF4AB /* letsgameDemo */ = { 165 9934F1B719303DC6005EF4AB /* letsgameDemo */ = {
150 isa = PBXGroup; 166 isa = PBXGroup;
151 children = ( 167 children = (
152 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */, 168 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */,
153 9934F1C319303DC6005EF4AB /* Images.xcassets */, 169 9934F1C319303DC6005EF4AB /* Images.xcassets */,
154 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */, 170 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */,
155 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */, 171 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */,
156 9934F23819307153005EF4AB /* LSGMainViewController.h */, 172 9934F23819307153005EF4AB /* LSGMainViewController.h */,
157 9934F23919307153005EF4AB /* LSGMainViewController.m */, 173 9934F23919307153005EF4AB /* LSGMainViewController.m */,
158 9934F1B819303DC6005EF4AB /* Supporting Files */, 174 9934F1B819303DC6005EF4AB /* Supporting Files */,
159 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */, 175 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */,
160 ); 176 );
161 path = letsgameDemo; 177 path = letsgameDemo;
162 sourceTree = "<group>"; 178 sourceTree = "<group>";
163 }; 179 };
164 9934F1B819303DC6005EF4AB /* Supporting Files */ = { 180 9934F1B819303DC6005EF4AB /* Supporting Files */ = {
165 isa = PBXGroup; 181 isa = PBXGroup;
166 children = ( 182 children = (
167 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */, 183 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */,
168 9934F1BD19303DC6005EF4AB /* main.m */, 184 9934F1BD19303DC6005EF4AB /* main.m */,
169 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */, 185 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */,
170 ); 186 );
171 name = "Supporting Files"; 187 name = "Supporting Files";
172 sourceTree = "<group>"; 188 sourceTree = "<group>";
173 }; 189 };
174 /* End PBXGroup section */ 190 /* End PBXGroup section */
175 191
176 /* Begin PBXNativeTarget section */ 192 /* Begin PBXNativeTarget section */
177 9934F1AD19303DC6005EF4AB /* GameSDKDemo */ = { 193 9934F1AD19303DC6005EF4AB /* GameSDKDemo */ = {
178 isa = PBXNativeTarget; 194 isa = PBXNativeTarget;
179 buildConfigurationList = 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */; 195 buildConfigurationList = 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */;
180 buildPhases = ( 196 buildPhases = (
181 9934F1AA19303DC6005EF4AB /* Sources */, 197 9934F1AA19303DC6005EF4AB /* Sources */,
182 9934F1AB19303DC6005EF4AB /* Frameworks */, 198 9934F1AB19303DC6005EF4AB /* Frameworks */,
183 9934F1AC19303DC6005EF4AB /* Resources */, 199 9934F1AC19303DC6005EF4AB /* Resources */,
184 ); 200 );
185 buildRules = ( 201 buildRules = (
186 ); 202 );
187 dependencies = ( 203 dependencies = (
188 ); 204 );
189 name = GameSDKDemo; 205 name = GameSDKDemo;
190 productName = letsgameDemo; 206 productName = letsgameDemo;
191 productReference = 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */; 207 productReference = 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */;
192 productType = "com.apple.product-type.application"; 208 productType = "com.apple.product-type.application";
193 }; 209 };
194 /* End PBXNativeTarget section */ 210 /* End PBXNativeTarget section */
195 211
196 /* Begin PBXProject section */ 212 /* Begin PBXProject section */
197 9934F1A619303DC6005EF4AB /* Project object */ = { 213 9934F1A619303DC6005EF4AB /* Project object */ = {
198 isa = PBXProject; 214 isa = PBXProject;
199 attributes = { 215 attributes = {
200 CLASSPREFIX = LSG; 216 CLASSPREFIX = LSG;
201 LastUpgradeCheck = 0710; 217 LastUpgradeCheck = 0710;
202 TargetAttributes = { 218 TargetAttributes = {
203 9934F1AD19303DC6005EF4AB = { 219 9934F1AD19303DC6005EF4AB = {
204 DevelopmentTeam = TU2VD6BENZ; 220 DevelopmentTeam = TU2VD6BENZ;
205 }; 221 };
206 }; 222 };
207 }; 223 };
208 buildConfigurationList = 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */; 224 buildConfigurationList = 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */;
209 compatibilityVersion = "Xcode 3.2"; 225 compatibilityVersion = "Xcode 3.2";
210 developmentRegion = English; 226 developmentRegion = English;
211 hasScannedForEncodings = 0; 227 hasScannedForEncodings = 0;
212 knownRegions = ( 228 knownRegions = (
213 en, 229 en,
214 ); 230 );
215 mainGroup = 9934F1A519303DC6005EF4AB; 231 mainGroup = 9934F1A519303DC6005EF4AB;
216 productRefGroup = 9934F1AF19303DC6005EF4AB /* Products */; 232 productRefGroup = 9934F1AF19303DC6005EF4AB /* Products */;
217 projectDirPath = ""; 233 projectDirPath = "";
218 projectReferences = ( 234 projectReferences = (
219 { 235 {
220 ProductGroup = 75F8189C1EEAA3EE0088B62F /* Products */; 236 ProductGroup = 75864D6B1FF368D9002C9012 /* Products */;
221 ProjectRef = 75F8189B1EEAA3EE0088B62F /* GameSDK.xcodeproj */; 237 ProjectRef = 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */;
222 }, 238 },
223 ); 239 );
224 projectRoot = ""; 240 projectRoot = "";
225 targets = ( 241 targets = (
226 9934F1AD19303DC6005EF4AB /* GameSDKDemo */, 242 9934F1AD19303DC6005EF4AB /* GameSDKDemo */,
227 ); 243 );
228 }; 244 };
229 /* End PBXProject section */ 245 /* End PBXProject section */
230 246
231 /* Begin PBXReferenceProxy section */ 247 /* Begin PBXReferenceProxy section */
232 75F818A11EEAA3EE0088B62F /* libGameSDK.a */ = { 248 75864D701FF368D9002C9012 /* libGameSDK.a */ = {
233 isa = PBXReferenceProxy; 249 isa = PBXReferenceProxy;
234 fileType = archive.ar; 250 fileType = archive.ar;
235 path = libGameSDK.a; 251 path = libGameSDK.a;
236 remoteRef = 75F818A01EEAA3EE0088B62F /* PBXContainerItemProxy */; 252 remoteRef = 75864D6F1FF368D9002C9012 /* PBXContainerItemProxy */;
237 sourceTree = BUILT_PRODUCTS_DIR; 253 sourceTree = BUILT_PRODUCTS_DIR;
238 }; 254 };
239 /* End PBXReferenceProxy section */ 255 /* End PBXReferenceProxy section */
240 256
241 /* Begin PBXResourcesBuildPhase section */ 257 /* Begin PBXResourcesBuildPhase section */
242 9934F1AC19303DC6005EF4AB /* Resources */ = { 258 9934F1AC19303DC6005EF4AB /* Resources */ = {
243 isa = PBXResourcesBuildPhase; 259 isa = PBXResourcesBuildPhase;
244 buildActionMask = 2147483647; 260 buildActionMask = 2147483647;
245 files = ( 261 files = (
246 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */, 262 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */,
247 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */, 263 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */,
248 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */, 264 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */,
249 ); 265 );
250 runOnlyForDeploymentPostprocessing = 0; 266 runOnlyForDeploymentPostprocessing = 0;
251 }; 267 };
252 /* End PBXResourcesBuildPhase section */ 268 /* End PBXResourcesBuildPhase section */
253 269
254 /* Begin PBXSourcesBuildPhase section */ 270 /* Begin PBXSourcesBuildPhase section */
255 9934F1AA19303DC6005EF4AB /* Sources */ = { 271 9934F1AA19303DC6005EF4AB /* Sources */ = {
256 isa = PBXSourcesBuildPhase; 272 isa = PBXSourcesBuildPhase;
257 buildActionMask = 2147483647; 273 buildActionMask = 2147483647;
258 files = ( 274 files = (
259 9934F1BE19303DC6005EF4AB /* main.m in Sources */, 275 9934F1BE19303DC6005EF4AB /* main.m in Sources */,
260 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */, 276 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */,
261 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */, 277 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */,
262 ); 278 );
263 runOnlyForDeploymentPostprocessing = 0; 279 runOnlyForDeploymentPostprocessing = 0;
264 }; 280 };
265 /* End PBXSourcesBuildPhase section */ 281 /* End PBXSourcesBuildPhase section */
266 282
267 /* Begin XCBuildConfiguration section */ 283 /* Begin XCBuildConfiguration section */
268 9934F1D819303DC6005EF4AB /* Debug */ = { 284 9934F1D819303DC6005EF4AB /* Debug */ = {
269 isa = XCBuildConfiguration; 285 isa = XCBuildConfiguration;
270 buildSettings = { 286 buildSettings = {
271 ALWAYS_SEARCH_USER_PATHS = YES; 287 ALWAYS_SEARCH_USER_PATHS = YES;
272 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 288 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
273 CLANG_CXX_LIBRARY = "libc++"; 289 CLANG_CXX_LIBRARY = "libc++";
274 CLANG_ENABLE_MODULES = YES; 290 CLANG_ENABLE_MODULES = YES;
275 CLANG_ENABLE_OBJC_ARC = YES; 291 CLANG_ENABLE_OBJC_ARC = YES;
276 CLANG_WARN_BOOL_CONVERSION = YES; 292 CLANG_WARN_BOOL_CONVERSION = YES;
277 CLANG_WARN_CONSTANT_CONVERSION = YES; 293 CLANG_WARN_CONSTANT_CONVERSION = YES;
278 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 294 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
279 CLANG_WARN_EMPTY_BODY = YES; 295 CLANG_WARN_EMPTY_BODY = YES;
280 CLANG_WARN_ENUM_CONVERSION = YES; 296 CLANG_WARN_ENUM_CONVERSION = YES;
281 CLANG_WARN_INT_CONVERSION = YES; 297 CLANG_WARN_INT_CONVERSION = YES;
282 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 298 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
283 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 299 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
284 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 300 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
285 COPY_PHASE_STRIP = YES; 301 COPY_PHASE_STRIP = YES;
286 ENABLE_TESTABILITY = YES; 302 ENABLE_TESTABILITY = YES;
287 GCC_C_LANGUAGE_STANDARD = gnu99; 303 GCC_C_LANGUAGE_STANDARD = gnu99;
288 GCC_DYNAMIC_NO_PIC = NO; 304 GCC_DYNAMIC_NO_PIC = NO;
289 GCC_OPTIMIZATION_LEVEL = 0; 305 GCC_OPTIMIZATION_LEVEL = 0;
290 GCC_PREPROCESSOR_DEFINITIONS = ( 306 GCC_PREPROCESSOR_DEFINITIONS = (
291 "DEBUG=1", 307 "DEBUG=1",
292 "$(inherited)", 308 "$(inherited)",
293 ); 309 );
294 GCC_SYMBOLS_PRIVATE_EXTERN = NO; 310 GCC_SYMBOLS_PRIVATE_EXTERN = NO;
295 GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 311 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
296 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 312 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
297 GCC_WARN_UNDECLARED_SELECTOR = YES; 313 GCC_WARN_UNDECLARED_SELECTOR = YES;
298 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 314 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
299 GCC_WARN_UNUSED_FUNCTION = YES; 315 GCC_WARN_UNUSED_FUNCTION = YES;
300 GCC_WARN_UNUSED_VARIABLE = YES; 316 GCC_WARN_UNUSED_VARIABLE = YES;
301 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; 317 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**";
302 IPHONEOS_DEPLOYMENT_TARGET = 8.4; 318 IPHONEOS_DEPLOYMENT_TARGET = 8.4;
303 ONLY_ACTIVE_ARCH = YES; 319 ONLY_ACTIVE_ARCH = YES;
304 SDKROOT = iphoneos; 320 SDKROOT = iphoneos;
305 }; 321 };
306 name = Debug; 322 name = Debug;
307 }; 323 };
308 9934F1D919303DC6005EF4AB /* Release */ = { 324 9934F1D919303DC6005EF4AB /* Release */ = {
309 isa = XCBuildConfiguration; 325 isa = XCBuildConfiguration;
310 buildSettings = { 326 buildSettings = {
311 ALWAYS_SEARCH_USER_PATHS = YES; 327 ALWAYS_SEARCH_USER_PATHS = YES;
312 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 328 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
313 CLANG_CXX_LIBRARY = "libc++"; 329 CLANG_CXX_LIBRARY = "libc++";
314 CLANG_ENABLE_MODULES = YES; 330 CLANG_ENABLE_MODULES = YES;
315 CLANG_ENABLE_OBJC_ARC = YES; 331 CLANG_ENABLE_OBJC_ARC = YES;
316 CLANG_WARN_BOOL_CONVERSION = YES; 332 CLANG_WARN_BOOL_CONVERSION = YES;
317 CLANG_WARN_CONSTANT_CONVERSION = YES; 333 CLANG_WARN_CONSTANT_CONVERSION = YES;
318 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 334 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
319 CLANG_WARN_EMPTY_BODY = YES; 335 CLANG_WARN_EMPTY_BODY = YES;
320 CLANG_WARN_ENUM_CONVERSION = YES; 336 CLANG_WARN_ENUM_CONVERSION = YES;
321 CLANG_WARN_INT_CONVERSION = YES; 337 CLANG_WARN_INT_CONVERSION = YES;
322 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 338 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
323 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 339 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
324 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 340 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
325 COPY_PHASE_STRIP = YES; 341 COPY_PHASE_STRIP = YES;
326 ENABLE_NS_ASSERTIONS = NO; 342 ENABLE_NS_ASSERTIONS = NO;
327 GCC_C_LANGUAGE_STANDARD = gnu99; 343 GCC_C_LANGUAGE_STANDARD = gnu99;
328 GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
329 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
330 GCC_WARN_UNDECLARED_SELECTOR = YES; 346 GCC_WARN_UNDECLARED_SELECTOR = YES;
331 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
332 GCC_WARN_UNUSED_FUNCTION = YES; 348 GCC_WARN_UNUSED_FUNCTION = YES;
333 GCC_WARN_UNUSED_VARIABLE = YES; 349 GCC_WARN_UNUSED_VARIABLE = YES;
334 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; 350 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**";
335 IPHONEOS_DEPLOYMENT_TARGET = 8.4; 351 IPHONEOS_DEPLOYMENT_TARGET = 8.4;
336 ONLY_ACTIVE_ARCH = YES; 352 ONLY_ACTIVE_ARCH = YES;
337 SDKROOT = iphoneos; 353 SDKROOT = iphoneos;
338 VALIDATE_PRODUCT = YES; 354 VALIDATE_PRODUCT = YES;
339 }; 355 };
340 name = Release; 356 name = Release;
341 }; 357 };
342 9934F1DB19303DC6005EF4AB /* Debug */ = { 358 9934F1DB19303DC6005EF4AB /* Debug */ = {
343 isa = XCBuildConfiguration; 359 isa = XCBuildConfiguration;
344 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; 360 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */;
345 buildSettings = { 361 buildSettings = {
346 ALWAYS_SEARCH_USER_PATHS = YES; 362 ALWAYS_SEARCH_USER_PATHS = YES;
347 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
348 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 364 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
349 CODE_SIGN_IDENTITY = "iPhone Developer"; 365 CODE_SIGN_IDENTITY = "iPhone Developer";
350 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 366 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
351 DEVELOPMENT_TEAM = TU2VD6BENZ; 367 DEVELOPMENT_TEAM = TU2VD6BENZ;
352 ENABLE_BITCODE = NO; 368 ENABLE_BITCODE = NO;
353 FRAMEWORK_SEARCH_PATHS = ( 369 FRAMEWORK_SEARCH_PATHS = (
354 "$(PROJECT_DIR)/../**", 370 "$(PROJECT_DIR)/../**",
355 "$(PROJECT_DIR)/letsgameDemo", 371 "$(PROJECT_DIR)/letsgameDemo",
356 ); 372 );
357 GCC_PRECOMPILE_PREFIX_HEADER = YES; 373 GCC_PRECOMPILE_PREFIX_HEADER = YES;
358 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; 374 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch";
359 HEADER_SEARCH_PATHS = ( 375 HEADER_SEARCH_PATHS = (
360 "$(PROJECT_DIR)/../GameSDK.framework/**", 376 "$(PROJECT_DIR)/../GameSDK.framework/**",
361 "$(inherited)", 377 "$(inherited)",
362 "$(PROJECT_DIR)/letsgameDemo/**", 378 "$(PROJECT_DIR)/letsgameDemo/**",
363 "$(PROJECT_DIR)/../VKBridge.framework/**", 379 "$(PROJECT_DIR)/../VKBridge.framework/**",
364 ); 380 );
365 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; 381 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist";
366 IPHONEOS_DEPLOYMENT_TARGET = 7.0; 382 IPHONEOS_DEPLOYMENT_TARGET = 7.0;
367 LIBRARY_SEARCH_PATHS = ""; 383 LIBRARY_SEARCH_PATHS = "";
368 ONLY_ACTIVE_ARCH = YES; 384 ONLY_ACTIVE_ARCH = YES;
385 OTHER_LDFLAGS = "-ObjC";
369 PRIVATE_HEADERS_FOLDER_PATH = ""; 386 PRIVATE_HEADERS_FOLDER_PATH = "";
370 PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; 387 PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase;
371 PRODUCT_NAME = GameSDKDemo; 388 PRODUCT_NAME = GameSDKDemo;
372 PROVISIONING_PROFILE = "9a16d1a8-62c4-4ddd-a173-5ea852773122"; 389 PROVISIONING_PROFILE = "9a16d1a8-62c4-4ddd-a173-5ea852773122";
373 PROVISIONING_PROFILE_SPECIFIER = testpurchaseDev; 390 PROVISIONING_PROFILE_SPECIFIER = testpurchaseDev;
374 PUBLIC_HEADERS_FOLDER_PATH = ""; 391 PUBLIC_HEADERS_FOLDER_PATH = "";
375 WRAPPER_EXTENSION = app; 392 WRAPPER_EXTENSION = app;
376 }; 393 };
377 name = Debug; 394 name = Debug;
378 }; 395 };
379 9934F1DC19303DC6005EF4AB /* Release */ = { 396 9934F1DC19303DC6005EF4AB /* Release */ = {
380 isa = XCBuildConfiguration; 397 isa = XCBuildConfiguration;
381 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; 398 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */;
382 buildSettings = { 399 buildSettings = {
383 ALWAYS_SEARCH_USER_PATHS = YES; 400 ALWAYS_SEARCH_USER_PATHS = YES;
384 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 401 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
385 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 402 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
386 CODE_SIGN_IDENTITY = "iPhone Developer"; 403 CODE_SIGN_IDENTITY = "iPhone Developer";
387 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; 404 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
388 DEVELOPMENT_TEAM = TU2VD6BENZ; 405 DEVELOPMENT_TEAM = TU2VD6BENZ;
389 ENABLE_BITCODE = NO; 406 ENABLE_BITCODE = NO;
390 FRAMEWORK_SEARCH_PATHS = ( 407 FRAMEWORK_SEARCH_PATHS = (
391 "$(PROJECT_DIR)/../**", 408 "$(PROJECT_DIR)/../**",
392 "$(PROJECT_DIR)/letsgameDemo", 409 "$(PROJECT_DIR)/letsgameDemo",
393 ); 410 );
394 GCC_PRECOMPILE_PREFIX_HEADER = YES; 411 GCC_PRECOMPILE_PREFIX_HEADER = YES;
395 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; 412 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch";
396 HEADER_SEARCH_PATHS = ( 413 HEADER_SEARCH_PATHS = (
397 "$(PROJECT_DIR)/../GameSDK.framework/**", 414 "$(PROJECT_DIR)/../GameSDK.framework/**",
398 "$(inherited)", 415 "$(inherited)",
399 "$(PROJECT_DIR)/letsgameDemo/**", 416 "$(PROJECT_DIR)/letsgameDemo/**",
400 "$(PROJECT_DIR)/../VKBridge.framework/**", 417 "$(PROJECT_DIR)/../VKBridge.framework/**",
401 ); 418 );
402 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; 419 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist";
403 IPHONEOS_DEPLOYMENT_TARGET = 7.0; 420 IPHONEOS_DEPLOYMENT_TARGET = 7.0;
404 LIBRARY_SEARCH_PATHS = ""; 421 LIBRARY_SEARCH_PATHS = "";
405 ONLY_ACTIVE_ARCH = YES; 422 ONLY_ACTIVE_ARCH = YES;
423 OTHER_LDFLAGS = "-ObjC";
406 PRIVATE_HEADERS_FOLDER_PATH = ""; 424 PRIVATE_HEADERS_FOLDER_PATH = "";
407 PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; 425 PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase;
408 PRODUCT_NAME = GameSDKDemo; 426 PRODUCT_NAME = GameSDKDemo;
409 PROVISIONING_PROFILE = "7b28fefe-7c60-41a6-ac6c-b21726228700"; 427 PROVISIONING_PROFILE = "7b28fefe-7c60-41a6-ac6c-b21726228700";
410 PROVISIONING_PROFILE_SPECIFIER = testpurchasekang; 428 PROVISIONING_PROFILE_SPECIFIER = testpurchasekang;
411 PUBLIC_HEADERS_FOLDER_PATH = ""; 429 PUBLIC_HEADERS_FOLDER_PATH = "";
412 WRAPPER_EXTENSION = app; 430 WRAPPER_EXTENSION = app;
413 }; 431 };
414 name = Release; 432 name = Release;
415 }; 433 };
416 /* End XCBuildConfiguration section */ 434 /* End XCBuildConfiguration section */
417 435
418 /* Begin XCConfigurationList section */ 436 /* Begin XCConfigurationList section */
419 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */ = { 437 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */ = {
420 isa = XCConfigurationList; 438 isa = XCConfigurationList;
421 buildConfigurations = ( 439 buildConfigurations = (
422 9934F1D819303DC6005EF4AB /* Debug */, 440 9934F1D819303DC6005EF4AB /* Debug */,
423 9934F1D919303DC6005EF4AB /* Release */, 441 9934F1D919303DC6005EF4AB /* Release */,
424 ); 442 );
425 defaultConfigurationIsVisible = 0; 443 defaultConfigurationIsVisible = 0;
426 defaultConfigurationName = Release; 444 defaultConfigurationName = Release;
427 }; 445 };
428 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */ = { 446 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */ = {
429 isa = XCConfigurationList; 447 isa = XCConfigurationList;
430 buildConfigurations = ( 448 buildConfigurations = (
431 9934F1DB19303DC6005EF4AB /* Debug */, 449 9934F1DB19303DC6005EF4AB /* Debug */,
432 9934F1DC19303DC6005EF4AB /* Release */, 450 9934F1DC19303DC6005EF4AB /* Release */,
433 ); 451 );
434 defaultConfigurationIsVisible = 0; 452 defaultConfigurationIsVisible = 0;
435 defaultConfigurationName = Release; 453 defaultConfigurationName = Release;
436 }; 454 };
437 /* End XCConfigurationList section */ 455 /* End XCConfigurationList section */
438 }; 456 };
439 rootObject = 9934F1A619303DC6005EF4AB /* Project object */; 457 rootObject = 9934F1A619303DC6005EF4AB /* Project object */;
440 } 458 }
441 459
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKDemo/GameSDKDemo.xcodeproj/xcuserdata/yanglele.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <Bucket 2 <Bucket
3 type = "1" 3 type = "1"
4 version = "2.0"> 4 version = "2.0">
5 <Breakpoints>
6 <BreakpointProxy
7 BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8 <BreakpointContent
9 shouldBeEnabled = "Yes"
10 ignoreCount = "0"
11 continueAfterRunningActions = "No"
12 filePath = "../../../iosgamesdk/GameSDK/letsgame/service/httpService/LSGUserService.m"
13 timestampString = "536050010.070926"
14 startingColumnNumber = "9223372036854775807"
15 endingColumnNumber = "9223372036854775807"
16 startingLineNumber = "594"
17 endingLineNumber = "594"
18 landmarkName = "-appObtainWeCharAppIDWithAppId:appKey:result:"
19 landmarkType = "7">
20 </BreakpointContent>
21 </BreakpointProxy>
22 <BreakpointProxy
23 BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
24 <BreakpointContent
25 shouldBeEnabled = "Yes"
26 ignoreCount = "0"
27 continueAfterRunningActions = "No"
28 filePath = "../../../iosgamesdk/GameSDK/letsgame/registAndLogin/LSGUserBaseViewController.m"
29 timestampString = "536046478.994249"
30 startingColumnNumber = "9223372036854775807"
31 endingColumnNumber = "9223372036854775807"
32 startingLineNumber = "295"
33 endingLineNumber = "295"
34 landmarkName = "-onClickWeChatLogin"
35 landmarkType = "7">
36 </BreakpointContent>
37 </BreakpointProxy>
38 <BreakpointProxy
39 BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
40 <BreakpointContent
41 shouldBeEnabled = "Yes"
42 ignoreCount = "0"
43 continueAfterRunningActions = "No"
44 filePath = "../../../iosgamesdk/GameSDK/letsgame/LetsGameAPI.m"
45 timestampString = "536050715.666746"
46 startingColumnNumber = "9223372036854775807"
47 endingColumnNumber = "9223372036854775807"
48 startingLineNumber = "269"
49 endingLineNumber = "269"
50 landmarkName = "-registerAppWeChatWithAppId:appKey:Success:failure:"
51 landmarkType = "7">
52 <Locations>
53 <Location
54 shouldBeEnabled = "Yes"
55 ignoreCount = "0"
56 continueAfterRunningActions = "No"
57 symbolName = "-[LetsGameAPI registerAppWeChatWithAppId:appKey:Success:failure:]"
58 moduleName = "GameSDKDemo"
59 usesParentBreakpointCondition = "Yes"
60 urlString = "file:///Users/yanglele/workproject/project/GumpSDK/iosgamesdk/GameSDK/letsgame/LetsGameAPI.m"
61 timestampString = "536048775.543027"
62 startingColumnNumber = "9223372036854775807"
63 endingColumnNumber = "9223372036854775807"
64 startingLineNumber = "269"
65 endingLineNumber = "269"
66 offsetFromSymbolStart = "164">
67 </Location>
68 <Location
69 shouldBeEnabled = "Yes"
70 ignoreCount = "0"
71 continueAfterRunningActions = "No"
72 symbolName = "__65-[LetsGameAPI registerAppWeChatWithAppId:appKey:Success:failure:]_block_invoke"
73 moduleName = "GameSDKDemo"
74 usesParentBreakpointCondition = "Yes"
75 urlString = "file:///Users/yanglele/workproject/project/GumpSDK/iosgamesdk/GameSDK/letsgame/LetsGameAPI.m"
76 timestampString = "536048775.545047"
77 startingColumnNumber = "9223372036854775807"
78 endingColumnNumber = "9223372036854775807"
79 startingLineNumber = "269"
80 endingLineNumber = "269"
81 offsetFromSymbolStart = "16">
82 </Location>
83 </Locations>
84 </BreakpointContent>
85 </BreakpointProxy>
86 <BreakpointProxy
87 BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
88 <BreakpointContent
89 shouldBeEnabled = "Yes"
90 ignoreCount = "0"
91 continueAfterRunningActions = "No"
92 filePath = "../../../iosgamesdk/GameSDK/letsgame/registAndLogin/LSGWeChatViewController.m"
93 timestampString = "536048532.37555"
94 startingColumnNumber = "9223372036854775807"
95 endingColumnNumber = "9223372036854775807"
96 startingLineNumber = "51"
97 endingLineNumber = "51"
98 landmarkName = "-registerAppWeChatAppIDWithAppId:appKey:success:failure:"
99 landmarkType = "7">
100 <Locations>
101 <Location
102 shouldBeEnabled = "Yes"
103 ignoreCount = "0"
104 continueAfterRunningActions = "No"
105 symbolName = "-[LSGWeChatViewController registerAppWeChatAppIDWithAppId:appKey:success:failure:]"
106 moduleName = "GameSDKDemo"
107 usesParentBreakpointCondition = "Yes"
108 urlString = "file:///Users/yanglele/workproject/project/GumpSDK/iosgamesdk/GameSDK/letsgame/registAndLogin/LSGWeChatViewController.m"
109 timestampString = "536048775.551058"
110 startingColumnNumber = "9223372036854775807"
111 endingColumnNumber = "9223372036854775807"
112 startingLineNumber = "51"
113 endingLineNumber = "51"
114 offsetFromSymbolStart = "224">
115 </Location>
116 <Location
117 shouldBeEnabled = "Yes"
118 ignoreCount = "0"
119 continueAfterRunningActions = "No"
120 symbolName = "__82-[LSGWeChatViewController registerAppWeChatAppIDWithAppId:appKey:success:failure:]_block_invoke"
121 moduleName = "GameSDKDemo"
122 usesParentBreakpointCondition = "Yes"
123 urlString = "file:///Users/yanglele/workproject/project/GumpSDK/iosgamesdk/GameSDK/letsgame/registAndLogin/LSGWeChatViewController.m"
124 timestampString = "536048775.553805"
125 startingColumnNumber = "9223372036854775807"
126 endingColumnNumber = "9223372036854775807"
127 startingLineNumber = "52"
128 endingLineNumber = "52"
129 offsetFromSymbolStart = "64">
130 </Location>
131 </Locations>
132 </BreakpointContent>
133 </BreakpointProxy>
134 <BreakpointProxy
135 BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
136 <BreakpointContent
137 shouldBeEnabled = "Yes"
138 ignoreCount = "0"
139 continueAfterRunningActions = "No"
140 filePath = "../../../iosgamesdk/GameSDK/letsgame/registAndLogin/LSGWeChatViewController.m"
141 timestampString = "536048532.37562"
142 startingColumnNumber = "9223372036854775807"
143 endingColumnNumber = "9223372036854775807"
144 startingLineNumber = "34"
145 endingLineNumber = "34"
146 landmarkName = "+isWeChatInstall"
147 landmarkType = "7">
148 </BreakpointContent>
149 </BreakpointProxy>
150 <BreakpointProxy
151 BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
152 <BreakpointContent
153 shouldBeEnabled = "Yes"
154 ignoreCount = "0"
155 continueAfterRunningActions = "No"
156 filePath = "letsgameDemo/LSGAppDelegate.m"
157 timestampString = "536050715.667074"
158 startingColumnNumber = "9223372036854775807"
159 endingColumnNumber = "9223372036854775807"
160 startingLineNumber = "38"
161 endingLineNumber = "38"
162 landmarkName = "-application:didFinishLaunchingWithOptions:"
163 landmarkType = "7">
164 <Locations>
165 <Location
166 shouldBeEnabled = "Yes"
167 ignoreCount = "0"
168 continueAfterRunningActions = "No"
169 symbolName = "-[LSGAppDelegate application:didFinishLaunchingWithOptions:]"
170 moduleName = "GameSDKDemo"
171 usesParentBreakpointCondition = "Yes"
172 urlString = "file:///Users/yanglele/workproject/project/GumpSDK/gamesdkNew/ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m"
173 timestampString = "536048775.5657"
174 startingColumnNumber = "9223372036854775807"
175 endingColumnNumber = "9223372036854775807"
176 startingLineNumber = "38"
177 endingLineNumber = "38"
178 offsetFromSymbolStart = "848">
179 </Location>
180 <Location
181 shouldBeEnabled = "Yes"
182 ignoreCount = "0"
183 continueAfterRunningActions = "No"
184 symbolName = "__60-[LSGAppDelegate application:didFinishLaunchingWithOptions:]_block_invoke"
185 moduleName = "GameSDKDemo"
186 usesParentBreakpointCondition = "Yes"
187 urlString = "file:///Users/yanglele/workproject/project/GumpSDK/gamesdkNew/ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m"
188 timestampString = "536048775.567968"
189 startingColumnNumber = "9223372036854775807"
190 endingColumnNumber = "9223372036854775807"
191 startingLineNumber = "39"
192 endingLineNumber = "39"
193 offsetFromSymbolStart = "20">
194 </Location>
195 </Locations>
196 </BreakpointContent>
197 </BreakpointProxy>
198 </Breakpoints>
5 </Bucket> 199 </Bucket>
6 200
ios/GameSDKDemo/GameSDKDemo.xcodeproj/xcuserdata/yanglele.xcuserdatad/xcschemes/GameSDKDemo.xcscheme
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <Scheme 2 <Scheme
3 LastUpgradeVersion = "0730" 3 LastUpgradeVersion = "0730"
4 version = "1.3"> 4 version = "1.3">
5 <BuildAction 5 <BuildAction
6 parallelizeBuildables = "YES" 6 parallelizeBuildables = "YES"
7 buildImplicitDependencies = "YES"> 7 buildImplicitDependencies = "YES">
8 <BuildActionEntries> 8 <BuildActionEntries>
9 <BuildActionEntry 9 <BuildActionEntry
10 buildForTesting = "YES" 10 buildForTesting = "YES"
11 buildForRunning = "YES" 11 buildForRunning = "YES"
12 buildForProfiling = "YES" 12 buildForProfiling = "YES"
13 buildForArchiving = "YES" 13 buildForArchiving = "YES"
14 buildForAnalyzing = "YES"> 14 buildForAnalyzing = "YES">
15 <BuildableReference 15 <BuildableReference
16 BuildableIdentifier = "primary" 16 BuildableIdentifier = "primary"
17 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB" 17 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB"
18 BuildableName = "GameSDKDemo.app" 18 BuildableName = "GameSDKDemo.app"
19 BlueprintName = "GameSDKDemo" 19 BlueprintName = "GameSDKDemo"
20 ReferencedContainer = "container:GameSDKDemo.xcodeproj"> 20 ReferencedContainer = "container:GameSDKDemo.xcodeproj">
21 </BuildableReference> 21 </BuildableReference>
22 </BuildActionEntry> 22 </BuildActionEntry>
23 </BuildActionEntries> 23 </BuildActionEntries>
24 </BuildAction> 24 </BuildAction>
25 <TestAction 25 <TestAction
26 buildConfiguration = "Debug" 26 buildConfiguration = "Debug"
27 selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" 27 selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28 selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" 28 selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29 language = ""
29 shouldUseLaunchSchemeArgsEnv = "YES"> 30 shouldUseLaunchSchemeArgsEnv = "YES">
30 <Testables> 31 <Testables>
31 </Testables> 32 </Testables>
32 <MacroExpansion> 33 <MacroExpansion>
33 <BuildableReference 34 <BuildableReference
34 BuildableIdentifier = "primary" 35 BuildableIdentifier = "primary"
35 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB" 36 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB"
36 BuildableName = "GameSDKDemo.app" 37 BuildableName = "GameSDKDemo.app"
37 BlueprintName = "GameSDKDemo" 38 BlueprintName = "GameSDKDemo"
38 ReferencedContainer = "container:GameSDKDemo.xcodeproj"> 39 ReferencedContainer = "container:GameSDKDemo.xcodeproj">
39 </BuildableReference> 40 </BuildableReference>
40 </MacroExpansion> 41 </MacroExpansion>
41 <AdditionalOptions> 42 <AdditionalOptions>
42 </AdditionalOptions> 43 </AdditionalOptions>
43 </TestAction> 44 </TestAction>
44 <LaunchAction 45 <LaunchAction
45 buildConfiguration = "Debug" 46 buildConfiguration = "Debug"
46 selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" 47 selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47 selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" 48 selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
49 language = ""
48 launchStyle = "0" 50 launchStyle = "0"
49 useCustomWorkingDirectory = "NO" 51 useCustomWorkingDirectory = "NO"
50 ignoresPersistentStateOnLaunch = "NO" 52 ignoresPersistentStateOnLaunch = "NO"
51 debugDocumentVersioning = "YES" 53 debugDocumentVersioning = "YES"
52 debugServiceExtension = "internal" 54 debugServiceExtension = "internal"
53 allowLocationSimulation = "YES"> 55 allowLocationSimulation = "YES">
54 <BuildableProductRunnable 56 <BuildableProductRunnable
55 runnableDebuggingMode = "0"> 57 runnableDebuggingMode = "0">
56 <BuildableReference 58 <BuildableReference
57 BuildableIdentifier = "primary" 59 BuildableIdentifier = "primary"
58 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB" 60 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB"
59 BuildableName = "GameSDKDemo.app" 61 BuildableName = "GameSDKDemo.app"
60 BlueprintName = "GameSDKDemo" 62 BlueprintName = "GameSDKDemo"
61 ReferencedContainer = "container:GameSDKDemo.xcodeproj"> 63 ReferencedContainer = "container:GameSDKDemo.xcodeproj">
62 </BuildableReference> 64 </BuildableReference>
63 </BuildableProductRunnable> 65 </BuildableProductRunnable>
64 <EnvironmentVariables> 66 <EnvironmentVariables>
65 <EnvironmentVariable 67 <EnvironmentVariable
66 key = "OS_ACTIVITY_MODE" 68 key = "OS_ACTIVITY_MODE"
67 value = "disable" 69 value = "disable"
68 isEnabled = "YES"> 70 isEnabled = "YES">
69 </EnvironmentVariable> 71 </EnvironmentVariable>
70 </EnvironmentVariables> 72 </EnvironmentVariables>
71 <AdditionalOptions> 73 <AdditionalOptions>
72 </AdditionalOptions> 74 </AdditionalOptions>
73 </LaunchAction> 75 </LaunchAction>
74 <ProfileAction 76 <ProfileAction
75 buildConfiguration = "Release" 77 buildConfiguration = "Release"
76 shouldUseLaunchSchemeArgsEnv = "YES" 78 shouldUseLaunchSchemeArgsEnv = "YES"
77 savedToolIdentifier = "" 79 savedToolIdentifier = ""
78 useCustomWorkingDirectory = "NO" 80 useCustomWorkingDirectory = "NO"
79 debugDocumentVersioning = "YES"> 81 debugDocumentVersioning = "YES">
80 <BuildableProductRunnable 82 <BuildableProductRunnable
81 runnableDebuggingMode = "0"> 83 runnableDebuggingMode = "0">
82 <BuildableReference 84 <BuildableReference
83 BuildableIdentifier = "primary" 85 BuildableIdentifier = "primary"
84 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB" 86 BlueprintIdentifier = "9934F1AD19303DC6005EF4AB"
85 BuildableName = "GameSDKDemo.app" 87 BuildableName = "GameSDKDemo.app"
86 BlueprintName = "GameSDKDemo" 88 BlueprintName = "GameSDKDemo"
87 ReferencedContainer = "container:GameSDKDemo.xcodeproj"> 89 ReferencedContainer = "container:GameSDKDemo.xcodeproj">
88 </BuildableReference> 90 </BuildableReference>
89 </BuildableProductRunnable> 91 </BuildableProductRunnable>
90 </ProfileAction> 92 </ProfileAction>
91 <AnalyzeAction 93 <AnalyzeAction
92 buildConfiguration = "Debug"> 94 buildConfiguration = "Debug">
93 </AnalyzeAction> 95 </AnalyzeAction>
94 <ArchiveAction 96 <ArchiveAction
95 buildConfiguration = "Release" 97 buildConfiguration = "Release"
96 revealArchiveInOrganizer = "YES"> 98 revealArchiveInOrganizer = "YES">
97 </ArchiveAction> 99 </ArchiveAction>
98 </Scheme> 100 </Scheme>
99 101
ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m
1 // 1 //
2 // LSGAppDelegate.m 2 // LSGAppDelegate.m
3 // letsgameDemo 3 // letsgameDemo
4 // 4 //
5 // Created by zhy on 14-5-24. 5 // Created by zhy on 14-5-24.
6 // 6 //
7 // 7 //
8 8
9 #import "LSGAppDelegate.h" 9 #import "LSGAppDelegate.h"
10 #import "LSGMainViewController.h" 10 #import "LSGMainViewController.h"
11 #import "LetsGameAPI.h" 11 #import "LetsGameAPI.h"
12 12
13 @implementation LSGAppDelegate 13 @implementation LSGAppDelegate
14 14
15 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 15 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16 { 16 {
17 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 17 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
18 18
19 LSGMainViewController *viewController = [[LSGMainViewController alloc] init]; 19 LSGMainViewController *viewController = [[LSGMainViewController alloc] init];
20 self.window.rootViewController = viewController; 20 self.window.rootViewController = viewController;
21 [self.window addSubview:viewController.view]; 21 [self.window addSubview:viewController.view];
22 22
23 self.window.backgroundColor = [UIColor whiteColor]; 23 self.window.backgroundColor = [UIColor whiteColor];
24 [self.window makeKeyAndVisible]; 24 [self.window makeKeyAndVisible];
25 25
26 [[LetsGameAPI instance] decideIsDebug:1];
27
26 //显示是否侵权的接口 28 //显示是否侵权的接口
27 // [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) { 29 // [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) {
28 // if (resultStatus) { 30 // if (resultStatus) {
29 // NSLog(@"YES 侵权"); 31 // NSLog(@"YES 侵权");
30 // }else{ 32 // }else{
31 // NSLog(@"NO 不侵权"); 33 // NSLog(@"NO 不侵权");
32 // } 34 // }
33 // }]; 35 // }];
34 36
37 //微信登陆
38 [[LetsGameAPI instance] registerAppWeChatWithAppId:@"100" appKey:@"f899139df5e1059396431415e770c6dd" Success:^{
39 NSLog(@"注册成功");
40 } failure:^{
41 NSLog(@"注册失败");
42 }];
43
35 [[UIApplication sharedApplication] setStatusBarHidden:YES]; 44 [[UIApplication sharedApplication] setStatusBarHidden:YES];
36 [[LetsGameAPI instance] registeIapObserver]; 45 [[LetsGameAPI instance] registeIapObserver];
37 46
38 return YES; 47 return YES;
39 } 48 }
40 49
41 - (void)applicationWillResignActive:(UIApplication *)application 50 - (void)applicationWillResignActive:(UIApplication *)application
42 { 51 {
43 // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 52 // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
44 // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 53 // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
45 } 54 }
46 55
47 - (void)applicationDidEnterBackground:(UIApplication *)application 56 - (void)applicationDidEnterBackground:(UIApplication *)application
48 { 57 {
49 // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 58 // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
50 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 59 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
51 } 60 }
52 61
53 - (void)applicationWillEnterForeground:(UIApplication *)application 62 - (void)applicationWillEnterForeground:(UIApplication *)application
54 { 63 {
55 // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 64 // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
56 } 65 }
57 66
58 -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ 67 -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
59 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; 68 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication];
60 //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication]; 69 //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication];
61 } 70 }
62 71
63 72
64 @end 73 @end
65 74
ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
1 // 1 //
2 // LSGMainViewController.m 2 // LSGMainViewController.m
3 // letsgameDemo 3 // letsgameDemo
4 // 4 //
5 // Created by zhy on 14-5-24. 5 // Created by zhy on 14-5-24.
6 // 6 //
7 // 7 //
8 8
9 #import "LSGMainViewController.h" 9 #import "LSGMainViewController.h"
10 #import "LetsGameAPI.h" 10 #import "LetsGameAPI.h"
11 #import "VKBridge.h" 11 #import "VKBridge.h"
12 12
13 13
14 @interface LSGMainViewController () 14 @interface LSGMainViewController ()
15 15
16 @property (nonatomic, strong) UILabel *resultLabel; 16 @property (nonatomic, strong) UILabel *resultLabel;
17 17
18 @property(nonatomic,strong) UIButton *vkActivityShareBtn; 18 @property(nonatomic,strong) UIButton *vkActivityShareBtn;
19 19
20 @property(nonatomic,copy) NSString *sessionKey; 20 @property(nonatomic,copy) NSString *sessionKey;
21 @end 21 @end
22 22
23 @implementation LSGMainViewController 23 @implementation LSGMainViewController
24 24
25 - (void)loadView { 25 - (void)loadView {
26 [super loadView]; 26 [super loadView];
27 NSLog(@"i come in"); 27 NSLog(@"i come in");
28 self.view.backgroundColor = [UIColor whiteColor]; 28 self.view.backgroundColor = [UIColor whiteColor];
29 // self.view.backgroundColor = [UIColor blackColor]; 29 // self.view.backgroundColor = [UIColor blackColor];
30 30
31 UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(110, 40, 100, 30)]; 31 UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(110, 40, 100, 30)];
32 btn.backgroundColor = [UIColor orangeColor]; 32 btn.backgroundColor = [UIColor orangeColor];
33 [btn setTitle:@"测试入口" forState:UIControlStateNormal]; 33 [btn setTitle:@"测试入口" forState:UIControlStateNormal];
34 [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 34 [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
35 btn.titleLabel.font = [UIFont systemFontOfSize:15]; 35 btn.titleLabel.font = [UIFont systemFontOfSize:15];
36 [btn addTarget:self action:@selector(onClickTest) forControlEvents:UIControlEventTouchUpInside]; 36 [btn addTarget:self action:@selector(onClickTest) forControlEvents:UIControlEventTouchUpInside];
37 [self.view addSubview:btn]; 37 [self.view addSubview:btn];
38 38
39 39
40 40
41 UIButton *bindtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 100, 100, 30)]; 41 UIButton *bindtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 100, 100, 30)];
42 bindtn.backgroundColor = [UIColor orangeColor]; 42 bindtn.backgroundColor = [UIColor orangeColor];
43 [bindtn setTitle:@"退出账号" forState:UIControlStateNormal]; 43 [bindtn setTitle:@"退出账号" forState:UIControlStateNormal];
44 [bindtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 44 [bindtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
45 bindtn.titleLabel.font = [UIFont systemFontOfSize:15]; 45 bindtn.titleLabel.font = [UIFont systemFontOfSize:15];
46 [bindtn addTarget:self action:@selector(onLogoutTest) forControlEvents:UIControlEventTouchUpInside]; 46 [bindtn addTarget:self action:@selector(onLogoutTest) forControlEvents:UIControlEventTouchUpInside];
47 [self.view addSubview:bindtn]; 47 [self.view addSubview:bindtn];
48 48
49 UIButton *payBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 160, 100, 30)]; 49 UIButton *payBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 160, 100, 30)];
50 payBtn.backgroundColor = [UIColor orangeColor]; 50 payBtn.backgroundColor = [UIColor orangeColor];
51 [payBtn setTitle:@"支付" forState:UIControlStateNormal]; 51 [payBtn setTitle:@"支付" forState:UIControlStateNormal];
52 [payBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 52 [payBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
53 payBtn.titleLabel.font = [UIFont systemFontOfSize:15]; 53 payBtn.titleLabel.font = [UIFont systemFontOfSize:15];
54 [payBtn addTarget:self action:@selector(onPayTest) forControlEvents:UIControlEventTouchUpInside]; 54 [payBtn addTarget:self action:@selector(onPayTest) forControlEvents:UIControlEventTouchUpInside];
55 [self.view addSubview:payBtn]; 55 [self.view addSubview:payBtn];
56 56
57 UIButton *iapBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 220, 100, 30)]; 57 UIButton *iapBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 220, 100, 30)];
58 iapBtn.backgroundColor = [UIColor orangeColor]; 58 iapBtn.backgroundColor = [UIColor orangeColor];
59 [iapBtn setTitle:@"IAP" forState:UIControlStateNormal]; 59 [iapBtn setTitle:@"IAP" forState:UIControlStateNormal];
60 [iapBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 60 [iapBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
61 iapBtn.titleLabel.font = [UIFont systemFontOfSize:15]; 61 iapBtn.titleLabel.font = [UIFont systemFontOfSize:15];
62 [iapBtn addTarget:self action:@selector(onIapTest) forControlEvents:UIControlEventTouchUpInside]; 62 [iapBtn addTarget:self action:@selector(onIapTest) forControlEvents:UIControlEventTouchUpInside];
63 [self.view addSubview:iapBtn]; 63 [self.view addSubview:iapBtn];
64 64
65 } 65 }
66 66
67 - (UILabel *)resultLabel { 67 - (UILabel *)resultLabel {
68 if (!_resultLabel) { 68 if (!_resultLabel) {
69 _resultLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.view.frame) - 90, self.view.frame.size.width, 60)]; 69 _resultLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.view.frame) - 90, self.view.frame.size.width, 60)];
70 _resultLabel.backgroundColor = [UIColor clearColor]; 70 _resultLabel.backgroundColor = [UIColor clearColor];
71 _resultLabel.textAlignment = NSTextAlignmentCenter; 71 _resultLabel.textAlignment = NSTextAlignmentCenter;
72 _resultLabel.textColor = [UIColor redColor]; 72 _resultLabel.textColor = [UIColor redColor];
73 _resultLabel.font = [UIFont systemFontOfSize:15]; 73 _resultLabel.font = [UIFont systemFontOfSize:15];
74 _resultLabel.numberOfLines = 4; 74 _resultLabel.numberOfLines = 4;
75 _resultLabel.lineBreakMode = NSLineBreakByWordWrapping; 75 _resultLabel.lineBreakMode = NSLineBreakByWordWrapping;
76 [self.view addSubview:_resultLabel]; 76 [self.view addSubview:_resultLabel];
77 } 77 }
78 78
79 return _resultLabel; 79 return _resultLabel;
80 } 80 }
81 81
82 82
83 - (void)onClickTest { 83 - (void)onClickTest {
84 84
85 [LetsGameAPI instance].appId = @"10056";//10047 85 [LetsGameAPI instance].appId = @"10056";//10047
86 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//eccd9f7dc92858b741132fda313130cf 86 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//eccd9f7dc92858b741132fda313130cf
87 [LetsGameAPI hiddenLogo:YES]; 87 [LetsGameAPI hiddenLogo:YES];
88 // [LetsGameAPI disableFB:NO]; 88 // [LetsGameAPI disableFB:YES];
89 // [LetsGameAPI disableGoogle:YES];
89 NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]); 90 NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]);
90 //启用vk登录 91 //启用vk登录
91 VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; 92 VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"];
92 [LetsGameAPI instance].vkBridge = vkBridge; 93 [LetsGameAPI instance].vkBridge = vkBridge;
93 94
94 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { 95 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) {
95 self.sessionKey = sessionKey; 96 self.sessionKey = sessionKey;
96 self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type]; 97 self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type];
97 }; 98 };
98 [LetsGameAPI instance].dismissBlock = ^() { 99 [LetsGameAPI instance].dismissBlock = ^() {
99 self.resultLabel.text = @"dismiss without login"; 100 self.resultLabel.text = @"dismiss without login";
100 }; 101 };
101 102
102 [[LetsGameAPI instance] showLoginView]; 103 [[LetsGameAPI instance] showLoginView];
103 } 104 }
104 105
105 106
106 - (void)onLogoutTest { 107 - (void)onLogoutTest {
107 [LetsGameAPI instance].appId = @"10056"; 108 [LetsGameAPI instance].appId = @"10056";
108 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21"; 109 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";
109 [[LetsGameAPI instance] logout]; 110 [[LetsGameAPI instance] logout];
110 111
111 } 112 }
112 113
113 -(void)onPayTest{ 114 -(void)onPayTest{
114 [LetsGameAPI instance].appId = @"10056";//10022 115 [LetsGameAPI instance].appId = @"10056";//10022
115 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//93a27b0bd99bac3e68a440b48aa421ab 116 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//93a27b0bd99bac3e68a440b48aa421ab
116 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 117 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
117 [payInfo setValue:@"100" forKey:@"serverId"]; 118 [payInfo setValue:@"100" forKey:@"serverId"];
118 [payInfo setValue:@"10010" forKey:@"roleId"]; 119 [payInfo setValue:@"10010" forKey:@"roleId"];
119 [payInfo setValue:@"1000" forKey:@"channelId"]; 120 [payInfo setValue:@"1000" forKey:@"channelId"];
120 [payInfo setValue:@"10" forKey:@"amount"]; 121 [payInfo setValue:@"10" forKey:@"amount"];
121 [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; 122 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];
122 [payInfo setValue:@"test" forKey:@"product"]; 123 [payInfo setValue:@"test" forKey:@"product"];
123 [payInfo setValue:@"76c17cc68ff9f7f40bd3d096ccc5600a" forKey:@"sessionKey"]; //self.sessionKey 124 [payInfo setValue:@"76c17cc68ff9f7f40bd3d096ccc5600a" forKey:@"sessionKey"]; //self.sessionKey
124 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{ 125 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{
125 NSLog(@"第三方支付完成"); 126 NSLog(@"第三方支付完成");
126 }]; 127 }];
127 } 128 }
128 129
129 -(void)onIapTest{ 130 -(void)onIapTest{
130 [LetsGameAPI instance].appId = @"10056"; 131 [LetsGameAPI instance].appId = @"10056";
131 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21"; 132 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";
132 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 133 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
133 [payInfo setValue:@"5001" forKey:@"serverId"]; 134 [payInfo setValue:@"5001" forKey:@"serverId"];
134 [payInfo setValue:@"10010" forKey:@"roleId"]; 135 [payInfo setValue:@"10010" forKey:@"roleId"];
135 [payInfo setValue:@"1000" forKey:@"channelId"]; 136 [payInfo setValue:@"1000" forKey:@"channelId"];
136 [payInfo setValue:@"10" forKey:@"amount"]; 137 [payInfo setValue:@"10" forKey:@"amount"];
137 [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; 138 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];
138 [payInfo setValue:@"test.product.1" forKey:@"product"]; 139 [payInfo setValue:@"test.product.1" forKey:@"product"];
139 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) { 140 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) {
140 //注意测试仅仅是通知客户端成功,但是还需要向服务器请求验证是否成功,以服务端验证为准 141 //注意测试仅仅是通知客户端成功,但是还需要向服务器请求验证是否成功,以服务端验证为准
141 NSLog(@"IAP completed orderId of Gumptech:%@",orderId); 142 NSLog(@"IAP completed orderId of Gumptech:%@",orderId);
142 } failCallback:^(NSString *orderId) { 143 } failCallback:^(NSString *orderId) {
143 NSLog(@"IAP file orderId of Gumptech:%@",orderId); 144 NSLog(@"IAP file orderId of Gumptech:%@",orderId);
144 }]; 145 }];
145 } 146 }
146 147
147 148
148 - (BOOL)shouldAutorotate { 149 - (BOOL)shouldAutorotate {
149 return YES; 150 return YES;
150 } 151 }
151 152
152 -(UIInterfaceOrientationMask)supportedInterfaceOrientations{ 153 -(UIInterfaceOrientationMask)supportedInterfaceOrientations{
153 return UIInterfaceOrientationMaskAll; 154 return UIInterfaceOrientationMaskAll;
154 } 155 }
155 156
156 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 157 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
157 return YES; 158 return YES;
158 } 159 }
159 160
160 @end 161 @end
161 162
ios/GameSDKDemo/letsgameDemo/letsgameDemo-Info.plist
1 <?xml version="1.0" encoding="UTF-8"?> 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"> 2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0"> 3 <plist version="1.0">
4 <dict> 4 <dict>
5 <key>CFBundleDevelopmentRegion</key> 5 <key>CFBundleDevelopmentRegion</key>
6 <string>en</string> 6 <string>en</string>
7 <key>CFBundleDisplayName</key> 7 <key>CFBundleDisplayName</key>
8 <string>${PRODUCT_NAME}</string> 8 <string>${PRODUCT_NAME}</string>
9 <key>CFBundleExecutable</key> 9 <key>CFBundleExecutable</key>
10 <string>${EXECUTABLE_NAME}</string> 10 <string>${EXECUTABLE_NAME}</string>
11 <key>CFBundleIdentifier</key> 11 <key>CFBundleIdentifier</key>
12 <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> 12 <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13 <key>CFBundleInfoDictionaryVersion</key> 13 <key>CFBundleInfoDictionaryVersion</key>
14 <string>6.0</string> 14 <string>6.0</string>
15 <key>CFBundleName</key> 15 <key>CFBundleName</key>
16 <string>${PRODUCT_NAME}</string> 16 <string>${PRODUCT_NAME}</string>
17 <key>CFBundlePackageType</key> 17 <key>CFBundlePackageType</key>
18 <string>APPL</string> 18 <string>APPL</string>
19 <key>CFBundleShortVersionString</key> 19 <key>CFBundleShortVersionString</key>
20 <string>1.0.1</string> 20 <string>1.0.1</string>
21 <key>CFBundleSignature</key> 21 <key>CFBundleSignature</key>
22 <string>????</string> 22 <string>????</string>
23 <key>CFBundleURLTypes</key> 23 <key>CFBundleURLTypes</key>
24 <array> 24 <array>
25 <dict> 25 <dict>
26 <key>CFBundleURLSchemes</key> 26 <key>CFBundleURLSchemes</key>
27 <array> 27 <array>
28 <string>fb1401636950118536</string> 28 <string>fb1401636950118536</string>
29 </array> 29 </array>
30 </dict> 30 </dict>
31 <dict> 31 <dict>
32 <key>CFBundleURLName</key> 32 <key>CFBundleURLName</key>
33 <string>vk5029792</string> 33 <string>vk5029792</string>
34 <key>CFBundleURLSchemes</key> 34 <key>CFBundleURLSchemes</key>
35 <array> 35 <array>
36 <string>vk5029792</string> 36 <string>vk5029792</string>
37 </array> 37 </array>
38 </dict> 38 </dict>
39 <dict>
40 <key>CFBundleTypeRole</key>
41 <string>Editor</string>
42 <key>CFBundleURLSchemes</key>
43 <array>
44 <string>wxd0242de3794f1016</string>
45 </array>
46 </dict>
39 </array> 47 </array>
40 <key>CFBundleVersion</key> 48 <key>CFBundleVersion</key>
41 <string>1.1.1</string> 49 <string>1.1.1</string>
42 <key>FacebookAppID</key> 50 <key>FacebookAppID</key>
43 <string>1401636950118536</string> 51 <string>1401636950118536</string>
44 <key>FacebookDisplayName</key> 52 <key>FacebookDisplayName</key>
45 <string>letsgameDemo</string> 53 <string>letsgameDemo</string>
54 <key>LSApplicationQueriesSchemes</key>
55 <array>
56 <string>weixin</string>
57 <string>wechat</string>
58 </array>
46 <key>LSRequiresIPhoneOS</key> 59 <key>LSRequiresIPhoneOS</key>
47 <true/> 60 <true/>
48 <key>NSAppTransportSecurity</key> 61 <key>NSAppTransportSecurity</key>
49 <dict> 62 <dict>
50 <key>NSAllowsArbitraryLoads</key> 63 <key>NSAllowsArbitraryLoads</key>
51 <false/> 64 <false/>
52 </dict> 65 </dict>
53 <key>UIRequiredDeviceCapabilities</key> 66 <key>UIRequiredDeviceCapabilities</key>
54 <array> 67 <array>
55 <string>armv7</string> 68 <string>armv7</string>
56 </array> 69 </array>
57 <key>UIStatusBarHidden</key> 70 <key>UIStatusBarHidden</key>
58 <true/> 71 <true/>
59 <key>UISupportedInterfaceOrientations</key> 72 <key>UISupportedInterfaceOrientations</key>
60 <array> 73 <array>
61 <string>UIInterfaceOrientationLandscapeLeft</string> 74 <string>UIInterfaceOrientationLandscapeLeft</string>
62 <string>UIInterfaceOrientationLandscapeRight</string> 75 <string>UIInterfaceOrientationLandscapeRight</string>
63 </array> 76 </array>
64 </dict> 77 </dict>
65 </plist> 78 </plist>
66 79
ios/GameSDKResources.bundle/PayJs.txt
1 ;(function() { 1 ;(function() {
2 var messagingIframe,webInfoIframe, 2 var messagingIframe,webInfoIframe,
3 bridge = 'sdk', 3 bridge = 'sdk',
4 CUSTOM_PROTOCOL_SCHEME = 'jscall'; 4 CUSTOM_PROTOCOL_SCHEME = 'jscall';
5 5
6 6
7 if (window[bridge]) { return } 7 if (window[bridge]) { return }
8 8
9 // 创建隐藏的iframe 9 // 创建隐藏的iframe
10 function _createQueueReadyIframe(doc) { 10 function _createQueueReadyIframe(doc) {
11 messagingIframe = doc.createElement('iframe'); 11 messagingIframe = doc.createElement('iframe');
12 messagingIframe.style.display = 'none'; 12 messagingIframe.style.display = 'none';
13 doc.documentElement.appendChild(messagingIframe); 13 doc.documentElement.appendChild(messagingIframe);
14 webInfoIframe = doc.createElement('iframe'); 14 webInfoIframe = doc.createElement('iframe');
15 webInfoIframe.style,display = 'none'; 15 webInfoIframe.style,display = 'none';
16 doc.documentElement.appendChild(webInfoIframe); 16 doc.documentElement.appendChild(webInfoIframe);
17 } 17 }
18 18
19 19
20 20
21 window[bridge] = {}; 21 window[bridge] = {};
22 22
23 window[bridge]['webVer'] = function webVer(webVer){ 23 window[bridge]['webVer'] = function webVer(webVer){
24 24
25 webInfoIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); 25 webInfoIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments));
26 }; 26 };
27 27
28 28
29 29
30 window[bridge]['payWithBlue'] = function payWithBlue(payGateId,price,cardNO,roleId){ 30 window[bridge]['payWithBlue'] = function payWithBlue(payGateId,price,cardNO,roleId){
31 31
32 messagingIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); 32 messagingIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments));
33 }; 33 };
34 34
35 35
36 window[bridge]['closeWin'] = function closeWin(oid,status,extraInfo){ 36 window[bridge]['closeWin'] = function closeWin(oid,status,extraInfo){
37 37
38 messagingIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); 38 messagingIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments));
39 }; 39 };
40 40
41 //var methods = ["closeWin(uid,nick,sessionKey)"]; 41 //var methods = ["closeWin(uid,nick,sessionKey)"];
42 //var methodsWithoutParam =["closeWin"]; 42 //var methodsWithoutParam =["closeWin"];
43 //for (var i=0;i<methods.length;i++){ 43 //for (var i=0;i<methods.length;i++){
44 // var method = methods[i]; 44 // var method = methods[i];
45 // var methodWithoutParam = methodsWithoutParam[i]; 45 // var methodWithoutParam = methodsWithoutParam[i];
46 // var code = "(window[bridge])[methodWithoutParam] = function " + method + " {var fs =CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); messagingIframe.src = fs;alert('closeWin src:'+messagingIframe.src);}"; 46 // var code = "(window[bridge])[methodWithoutParam] = function " + method + " {var fs =CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); messagingIframe.src = fs;alert('closeWin src:'+messagingIframe.src);}";
47 // eval(code); 47 // eval(code);
48 //} 48 //}
49 49
50 //创建iframe,必须在创建app之后,否则会出现死循环 50 //创建iframe,必须在创建app之后,否则会出现死循环
51 _createQueueReadyIframe(document); 51 _createQueueReadyIframe(document);
52 //通知js开始初始化 52 //通知js开始初始化
53 if(typeof(onInjectJsOver)=='function') 53 if(typeof(onInjectJsOver)=='function')
54 onInjectJsOver(); 54 onInjectJsOver();
55 55
56 })(); 56 })();
57
ios/GameSDKResources.bundle/images/ic_wc@2x.png

4.82 KB

ios/GameSDKResources.bundle/template.html
1 <!doctype html> File was deleted
2 <html>
3 <head>
4 <script src="http://code.angularjs.org/angular-1.0.1.min.js"></script>
5
6 </head>
7 <body ng-app="myApp" ng-controller="mainCtrl">
8
9 <button ng-click="refresh()">refresh</button>
10 <div style="background: #07242E; color: #708284;height: auto;overflow: auto;min-height: 600px;max-height:700px" >
11
12 <ul>
13 <li ng-repeat="x in items" style='font-size:15px'>
14 {{ x.logtime }} &nbsp; [{{x.level}}]-{{x.filename}}:{{x.line}}/{{x.function}} &nbsp;=> {{x.message}}
15 </li>
16 </ul>
17
18 </div>
19
20 <script>
21 var app = angular.module('myApp', []);
22
23 app.controller('mainCtrl', function($scope, $http) {
24 $http.get(location+'logs').success(function(response) {
25 $scope.items = response;
26 });
27 $scope.refresh = function(){
28 $http.get(location+'logs').success(function(response){
29 $scope.items = response;
30 });
31 };
32 });
33
34 </script>
35 </body>
36 </html>