Commit 90c605a64c81b81fbfa6e950beda9fb78e9a72b5

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

WeChat 调试成功

Showing 9 changed files with 24 additions and 21 deletions Inline Diff

1 # Gump IOS SDK使用文档 1 # Gump IOS SDK使用文档
2 2
3 3
4 接入手册 4 接入手册
5 V 3.4.14 5 V 3.4.15
6 2017年2月1日 6 2017年2月7日
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: 17 + 以下可选,若接入微信登陆则需要添加如下的framework:
18 libsqlite3.0.dylib, libc++.dylib, Security.framework, CoreTelephony.framework, CFNetwork.framework 18 libsqlite3.0.dylib, libc++.dylib, Security.framework, CoreTelephony.framework, CFNetwork.framework
19 19
20 20
21 ### 2、引入头文件,设置build setting 21 ### 2、引入头文件,设置build setting
22 需要使用头文件有LetsGameAPI.h和VKBridge.h,其中VKBridge.h为接入vk时使用,不接入vk可忽略。 22 需要使用头文件有LetsGameAPI.h和VKBridge.h,其中VKBridge.h为接入vk时使用,不接入vk可忽略。
23 因sdk内使用了category,需要设置other linker flag为 -ObjC 23 因sdk内使用了category,需要设置other linker flag为 -ObjC
24 24
25 25
26 ### 3、增加必要配置 26 ### 3、增加必要配置
27 1)在application delegate中, 在application:openURL:sourceApplication:annotation:添加返回: 27 1)在application delegate中, 在application:openURL:sourceApplication:annotation:添加返回:
28 28
29 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; 29 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication];
30 30
31 31
32 2)配置URL-schema(vk专用,不接入vk可忽略) 32 2)配置URL-schema(vk专用,不接入vk可忽略)
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. 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.
34 ![](images/vk1.jpg) 34 ![](images/vk1.jpg)
35 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
36 ![](images/vk2.jpg) 36 ![](images/vk2.jpg)
37 3)配置URL-schema(weChat专用,不接入可以忽略) 37 3)配置URL-schema(weChat专用,不接入可以忽略)
38 选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id 38 选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id
39 选中“TARGETS”一栏,在“info”标签栏的“LSApplicationQueriesSchemes“添加weixin和wechat 39 选中“TARGETS”一栏,在“info”标签栏的“LSApplicationQueriesSchemes“添加weixin和wechat
40 40
41 ### 4、在工程里添加SDK登录代码 41 ### 4、在工程里添加SDK登录代码
42 42
43 [LetsGameAPI instance].appId = @"100"; // 设置appId 43 [LetsGameAPI instance].appId = @"100"; // 设置appId
44 [LetsGameAPI instance].appKey = @"100"; // 设置appKey 44 [LetsGameAPI instance].appKey = @"100"; // 设置appKey
45 45
46 //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略 46 //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略
47 //VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; 47 //VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"];
48 //[LetsGameAPI instance].vkBridge = vkBridge; 48 //[LetsGameAPI instance].vkBridge = vkBridge;
49 49
50 //隐藏fb登录 50 //隐藏fb登录
51 [LetsGameAPI disableFB:YES]; 51 [LetsGameAPI disableFB:YES];
52 //隐藏Google登录 52 //隐藏Google登录
53 [LetsGameAPI disableGoogle:YES]; 53 [LetsGameAPI disableGoogle:YES];
54 //隐藏gumptech的logo 54 //隐藏gumptech的logo
55 [LetsGameAPI hiddenLogo:YES]; 55 [LetsGameAPI hiddenLogo:YES];
56 //隐藏line登录 56 //隐藏line登录
57 [LetsGameAPI disableLine:YES]; 57 [LetsGameAPI disableLine:YES];
58 //隐藏wechat登录 58 //隐藏wechat登录
59 [LetsGameAPI disableWeChat:YES]; 59 [LetsGameAPI disableWeChat:YES];
60 60
61 [[LetsGameAPI instance] showLoginView]; // 弹出登录页面 61 [[LetsGameAPI instance] showLoginView]; // 弹出登录页面
62 62
63 // 登录成功回调 63 // 登录成功回调
64 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { 64 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) {
65 NSLog(@"%@", [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %d", userId, sessionKey, type]); 65 NSLog(@"%@", [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %d", userId, sessionKey, type]);
66 }; 66 };
67 67
68 // 登录失败回调 68 // 登录失败回调
69 [LetsGameAPI instance].dismissBlock = ^() { 69 [LetsGameAPI instance].dismissBlock = ^() {
70 NSLog(@"dismiss without login"); 70 NSLog(@"dismiss without login");
71 }; 71 };
72 72
73 ### 5、登录注销 73 ### 5、登录注销
74 注销接口只要设置过appId和appKey之后就不需要设置了,注销完成之后会回到登录界面。FB登录回到登录页面,Gump登录或者游客登录回到登录框。 74 注销接口只要设置过appId和appKey之后就不需要设置了,注销完成之后会回到登录界面。FB登录回到登录页面,Gump登录或者游客登录回到登录框。
75 75
76 [LetsGameAPI instance].appId = @"100";//设置appId 76 [LetsGameAPI instance].appId = @"100";//设置appId
77 [LetsGameAPI instance].appKey = @"100";//设置appkey 77 [LetsGameAPI instance].appKey = @"100";//设置appkey
78 [[LetsGameAPI instance] logout]; //注销 78 [[LetsGameAPI instance] logout]; //注销
79 79
80 80
81 ### 6、第三方支付 81 ### 6、第三方支付
82 [LetsGameAPI instance].appId = @"10022"; 82 [LetsGameAPI instance].appId = @"10022";
83 [LetsGameAPI instance].appKey = @"f899139df5e1059396431415e770c6dd"; 83 [LetsGameAPI instance].appKey = @"f899139df5e1059396431415e770c6dd";
84 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 84 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
85 [payInfo setValue:@"5001" forKey:@"serverId"];//服务器id,必传参数 85 [payInfo setValue:@"5001" forKey:@"serverId"];//服务器id,必传参数
86 [payInfo setValue:@"10010" forKey:@"roleId"];//用户角色id 86 [payInfo setValue:@"10010" forKey:@"roleId"];//用户角色id
87 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id 87 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id
88 [payInfo setValue:@"10" forKey:@"amount"];//金额 88 [payInfo setValue:@"10" forKey:@"amount"];//金额
89 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//外部订单信息 89 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//外部订单信息
90 [payInfo setValue:@"元宝" forKey:@"product"];//物品信息 90 [payInfo setValue:@"元宝" forKey:@"product"];//物品信息
91 [payInfo setValue:self.sessionKey forKey:@"sessionKey"];//登录成功的sessionKey 91 [payInfo setValue:self.sessionKey forKey:@"sessionKey"];//登录成功的sessionKey
92 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{ 92 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{
93 //第三方支付完成时的回调(包括支付成功和支付失败,除了支付过程中取消的),取消的不会有回调 93 //第三方支付完成时的回调(包括支付成功和支付失败,除了支付过程中取消的),取消的不会有回调
94 NSLog(@"第三方支付完成"); 94 NSLog(@"第三方支付完成");
95 }]]; 95 }]];
96 96
97 ### 7、IAP支付 97 ### 7、IAP支付
98 若要使用apple IAP支付,需要在AppDelegate的application: didFinishLaunchingWithOptions:方法内注册iap observer,使用如下方法 98 若要使用apple IAP支付,需要在AppDelegate的application: didFinishLaunchingWithOptions:方法内注册iap observer,使用如下方法
99 99
100 [[LetsGameAPI instance] registeIapObserver]; 100 [[LetsGameAPI instance] registeIapObserver];
101 具体调用iap支付的方法如下: 101 具体调用iap支付的方法如下:
102 102
103 [LetsGameAPI instance].appId = @"10022"; 103 [LetsGameAPI instance].appId = @"10022";
104 [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; 104 [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab";
105 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 105 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
106 [payInfo setValue:@"5001" forKey:@"serverId"];//当前用户所在的服务器Id 106 [payInfo setValue:@"5001" forKey:@"serverId"];//当前用户所在的服务器Id
107 [payInfo setValue:@"10010" forKey:@"roleId"];//当前用户的角色id 107 [payInfo setValue:@"10010" forKey:@"roleId"];//当前用户的角色id
108 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id,用于统计 108 [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id,用于统计
109 [payInfo setValue:@"10" forKey:@"amount"];//对应支付项的支付金额,实际支付金额以itunes配置为准 109 [payInfo setValue:@"10" forKey:@"amount"];//对应支付项的支付金额,实际支付金额以itunes配置为准
110 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//扩展信息,可以游戏自定义,建议传自有订单号 110 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//扩展信息,可以游戏自定义,建议传自有订单号
111 [payInfo setValue:@"test.product.1" forKey:@"product"];//itunes 后台配置的对应支付项的productId 111 [payInfo setValue:@"test.product.1" forKey:@"product"];//itunes 后台配置的对应支付项的productId
112 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) { 112 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) {
113 //此处的回调表明支付已经完成,但此时支付不一定成功,需要服务端验证支付结果 113 //此处的回调表明支付已经完成,但此时支付不一定成功,需要服务端验证支付结果
114 //orderId为gump生成的订单号,此订单号可以在gump server查询此笔支付是否成功 114 //orderId为gump生成的订单号,此订单号可以在gump server查询此笔支付是否成功
115 NSLog(@"IAP completed orderId of Gumptech:%@",orderId); 115 NSLog(@"IAP completed orderId of Gumptech:%@",orderId);
116 } failCallback:^(NSString *orderId) { 116 } failCallback:^(NSString *orderId) {
117 //支付失败 117 //支付失败
118 NSLog(@"IAP file orderId of Gumptech:%@",orderId); 118 NSLog(@"IAP file orderId of Gumptech:%@",orderId);
119 }]; 119 }];
120 ### 8、token的获取 120 ### 8、token的获取
121 FB登录之后会产生token并自动登录,需要如果需要token的话,需要自己调用接口获取。 121 FB登录之后会产生token并自动登录,需要如果需要token的话,需要自己调用接口获取。
122 122
123 //tokenString:token字符串 123 //tokenString:token字符串
124 //refreshTime:refreshTime token最后刷新的时间,即获取的token的时间 124 //refreshTime:refreshTime token最后刷新的时间,即获取的token的时间
125 //expirationTime:expirationTime token最后的有效时间 125 //expirationTime:expirationTime token最后的有效时间
126 [[LetsGameAPI instance] obtainAccessTokenSuccess:^(NSString *tokenString, NSString *refreshTime, NSString *expirationTime) { 126 [[LetsGameAPI instance] obtainAccessTokenSuccess:^(NSString *tokenString, NSString *refreshTime, NSString *expirationTime) {
127 NSLog(@"tokenString %@, refreshTime %@, expirationTime %@", tokenString, refreshTime, expirationTime); 127 NSLog(@"tokenString %@, refreshTime %@, expirationTime %@", tokenString, refreshTime, expirationTime);
128 } failure:^(NSString *errorString) { 128 } failure:^(NSString *errorString) {
129 NSLog(@"get token faile"); 129 NSLog(@"get token faile");
130 }]; 130 }];
131 131
132 132
133 ### 9、第三方支付版本 133 ### 9、第三方支付版本
134 第三方支付,分成两个版本:没有gump币和有gump币,不设置时默认为带gump币版本,如果使用不带gump币的版本如下设置: 134 第三方支付,分成两个版本:没有gump币和有gump币,不设置时默认为带gump币版本,如果使用不带gump币的版本如下设置:
135 135
136 需要在 application:didFinishLaunchingWithOptions方法中添加: 136 需要在 application:didFinishLaunchingWithOptions方法中添加:
137 137
138 [[LetsGameAPI instance] decideWebPayVersion:1] 138 [[LetsGameAPI instance] decideWebPayVersion:1]
139 139
140 140
141 ### 10、关于侵权还是侵权的接口显示 141 ### 10、关于侵权还是侵权的接口显示
142 运营在后台配置此包名和版本在什么时候显示侵权内容还是不侵权内容,此接口调用需要在游戏才开始加载的时候调用,返回值是YES的时候显示侵权内容,在NO的时候显示不侵权内容。 142 运营在后台配置此包名和版本在什么时候显示侵权内容还是不侵权内容,此接口调用需要在游戏才开始加载的时候调用,返回值是YES的时候显示侵权内容,在NO的时候显示不侵权内容。
143 143
144 注意:关于运营配置的游戏的版本号,我们默认取的是Bulid版本号的值,请注意。 144 注意:关于运营配置的游戏的版本号,我们默认取的是Bulid版本号的值,请注意。
145 145
146 [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) { 146 [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) {
147 if (resultStatus) { 147 if (resultStatus) {
148 NSLog(@"YES 侵权"); 148 NSLog(@"YES 侵权");
149 }else{ 149 }else{
150 NSLog(@"NO 不侵权"); 150 NSLog(@"NO 不侵权");
151 } 151 }
152 }]; 152 }];
153 ### 11、横竖屏设置 153 ### 11、横竖屏设置
154 154
155 首先设置SDK默认是横屏,在General->Deployment Info->Device Orientain下,只选择Landscape Left 和 Landscape Right,SDK的界面默认是横屏。 155 首先设置SDK默认是横屏,在General->Deployment Info->Device Orientain下,只选择Landscape Left 和 Landscape Right,SDK的界面默认是横屏。
156 其次如果想使用竖屏的模式,需要在General->Deployment Info->Device Orientain下,只选择Portrait模式,并且需要在AppDelegate中的方法: 156 其次如果想使用竖屏的模式,需要在General->Deployment Info->Device Orientain下,只选择Portrait模式,并且需要在AppDelegate中的方法:
157 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;靠前的位置添加代码设置: 157 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;靠前的位置添加代码设置:
158 158
159 [LetsGameAPI DeviceOrientationIsHorizontal:NO]; 159 [LetsGameAPI DeviceOrientationIsHorizontal:NO];
160 160
161 161
162 162
163 163
164 164
165 ### 12、微信登陆 165 ### 12、微信登陆
166 166
167 首先在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;方法中向微信注册应用 167 首先在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;方法中向微信注册应用
168 //微信登陆 168 //微信登陆
169 [[LetsGameAPI instance] registerAppWeChatWithAppId:@"appId" appKey:@"appKey" Success:^{ 169 [[LetsGameAPI instance] registerAppWeChatWithAppId:@"appId" appKey:@"appKey" Success:^{
170 NSLog(@"注册成功"); 170 NSLog(@"注册成功");
171 } failure:^{ 171 } failure:^{
172 NSLog(@"注册失败"); 172 NSLog(@"注册失败");
173 }]; 173 }];
174 174
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
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 isDisableLine = NO; 14 static BOOL isDisableLine = NO;
15 15
16 static BOOL isDisableWeChat = NO; 16 static BOOL isDisableWeChat = NO;
17 17
18 static BOOL isDisableGoogle = NO; 18 static BOOL isDisableGoogle = NO;
19 19
20 static BOOL hiddenLogo = NO; 20 static BOOL hiddenLogo = NO;
21 21
22 //默认横屏 22 //默认横屏
23 static BOOL DeviceOrientationIsHorizontal = YES; 23 static BOOL DeviceOrientationIsHorizontal = YES;
24 24
25 static NSString *version = @"3.4.14"; 25 static NSString *version = @"3.4.15";
26 26
27 @interface LetsGameAPI : NSObject<UIApplicationDelegate> 27 @interface LetsGameAPI : NSObject<UIApplicationDelegate>
28 28
29 @property (nonatomic, strong) NSString *appId; 29 @property (nonatomic, strong) NSString *appId;
30 @property (nonatomic, strong) NSString *appKey; 30 @property (nonatomic, strong) NSString *appKey;
31 @property (nonatomic, copy) LSGLoginSuccBlock succBlock; 31 @property (nonatomic, copy) LSGLoginSuccBlock succBlock;
32 @property (nonatomic, copy) LSGDismissBlock dismissBlock; 32 @property (nonatomic, copy) LSGDismissBlock dismissBlock;
33 @property (nonatomic, assign) int isDebug; 33 @property (nonatomic, assign) int isDebug;
34 @property (nonatomic, assign) int decideWebPay; 34 @property (nonatomic, assign) int decideWebPay;
35 @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge; 35 @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge;
36 //@property(nonatomic,strong) NSString *version; 36 //@property(nonatomic,strong) NSString *version;
37 37
38 + (instancetype)instance; 38 + (instancetype)instance;
39 39
40 -(NSString*)version; 40 -(NSString*)version;
41 41
42 - (void)showLoginView; 42 - (void)showLoginView;
43 - (void)showLoginViewInView:(UIView *)view; 43 - (void)showLoginViewInView:(UIView *)view;
44 44
45 +(void)disableFB:(BOOL)isDisable; 45 +(void)disableFB:(BOOL)isDisable;
46 +(void)disableGoogle:(BOOL)isDisable; 46 +(void)disableGoogle:(BOOL)isDisable;
47 +(void)disableWeChat:(BOOL)isDisable; 47 +(void)disableWeChat:(BOOL)isDisable;
48 +(void)disableLine:(BOOL)isDissable; 48 +(void)disableLine:(BOOL)isDissable;
49 +(BOOL)isFBDisable; 49 +(BOOL)isFBDisable;
50 +(BOOL)isVKEnable; 50 +(BOOL)isVKEnable;
51 +(BOOL)isWeChatDisable; 51 +(BOOL)isWeChatDisable;
52 +(BOOL)isGoogleDisable; 52 +(BOOL)isGoogleDisable;
53 +(BOOL)isLineDisable; 53 +(BOOL)isLineDisable;
54 +(void)hiddenLogo:(BOOL)isHidden; 54 +(void)hiddenLogo:(BOOL)isHidden;
55 +(BOOL)isHiddenLogo; 55 +(BOOL)isHiddenLogo;
56 +(void)DeviceOrientationIsHorizontal:(BOOL)isDisable; 56 +(void)DeviceOrientationIsHorizontal:(BOOL)isDisable;
57 +(BOOL)DeviceOrientationIsHorizontal; 57 +(BOOL)DeviceOrientationIsHorizontal;
58 58
59 - (void)logout; 59 - (void)logout;
60 60
61 - (void)hide; 61 - (void)hide;
62 //是否安装微信 62 //是否安装微信
63 -(BOOL)isWeChatInstall; 63 -(BOOL)isWeChatInstall;
64 //向微信注册应用 64 //向微信注册应用
65 -(void)registerAppWeChatWithAppId:(NSString *)appId 65 -(void)registerAppWeChatWithAppId:(NSString *)appId
66 appKey:(NSString *)appKey 66 appKey:(NSString *)appKey
67 Success:(void (^)())success 67 Success:(void (^)())success
68 failure:(void (^)())failure; 68 failure:(void (^)())failure;
69 69
70 - (BOOL)handleOpenURL:(NSURL *)url 70 - (BOOL)handleOpenURL:(NSURL *)url
71 sourceApplication:(NSString *)sourceApplication; 71 sourceApplication:(NSString *)sourceApplication;
72 72
73 -(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback; 73 -(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) payAccomplistCallback;
74 74
75 //-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback; 75 //-(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback;
76 76
77 -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback; 77 -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid succCallback:(void (^)(NSString* orderId)) succCallback failCallback:(void (^)(NSString* orderId)) failCallback;
78 78
79 -(void)registeIapObserver; 79 -(void)registeIapObserver;
80 80
81 -(void)decideIsDebug:(int)isDebug; 81 -(void)decideIsDebug:(int)isDebug;
82 82
83 -(void)decideWebPayVersion:(int)decideWebPay; 83 -(void)decideWebPayVersion:(int)decideWebPay;
84 84
85 -(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success 85 -(void)obtainAccessTokenSuccess:(void (^)(NSString *tokenString, NSString *refreshTime, NSString *expirationTime))success
86 failure:(void (^)(NSString *errorString))failure; 86 failure:(void (^)(NSString *errorString))failure;
87 87
88 //获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面 88 //获取是否展示安全页面,YES展示侵权页面,NO展示非侵权页面
89 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId 89 -(void)gameObtainSafeSetInfoWithAppId:(NSString *)appId
90 ChannelId:(NSString *)channelId 90 ChannelId:(NSString *)channelId
91 handleCallBack:(void (^)(BOOL resultStatus))callBack; 91 handleCallBack:(void (^)(BOOL resultStatus))callBack;
92 @end 92 @end
93 93
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 7517F2111FFF437F000237ED /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7517F2101FFF437E000237ED /* GameSDK.framework */; }; 16 7517F2111FFF437F000237ED /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7517F2101FFF437E000237ED /* GameSDK.framework */; };
17 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */; }; 17 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */; };
18 75864D631FF35A22002C9012 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D601FF35A22002C9012 /* libsqlite3.tbd */; }; 18 75864D631FF35A22002C9012 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D601FF35A22002C9012 /* libsqlite3.tbd */; };
19 75864D651FF35A3A002C9012 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D641FF35A3A002C9012 /* CoreTelephony.framework */; }; 19 75864D651FF35A3A002C9012 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D641FF35A3A002C9012 /* CoreTelephony.framework */; };
20 75864D671FF35A48002C9012 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D661FF35A48002C9012 /* libz.tbd */; }; 20 75864D671FF35A48002C9012 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D661FF35A48002C9012 /* libz.tbd */; };
21 75864D691FF35A58002C9012 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D681FF35A57002C9012 /* libc++.tbd */; }; 21 75864D691FF35A58002C9012 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 75864D681FF35A57002C9012 /* libc++.tbd */; };
22 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; }; 22 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; };
23 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; }; 23 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; };
24 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; }; 24 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; };
25 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */; }; 25 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */; };
26 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; }; 26 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; };
27 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; }; 27 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; };
28 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; }; 28 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; };
29 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; }; 29 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; };
30 /* End PBXBuildFile section */ 30 /* End PBXBuildFile section */
31 31
32 /* Begin PBXContainerItemProxy section */ 32 /* Begin PBXContainerItemProxy section */
33 75864D6F1FF368D9002C9012 /* PBXContainerItemProxy */ = { 33 75864D6F1FF368D9002C9012 /* PBXContainerItemProxy */ = {
34 isa = PBXContainerItemProxy; 34 isa = PBXContainerItemProxy;
35 containerPortal = 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */; 35 containerPortal = 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */;
36 proxyType = 2; 36 proxyType = 2;
37 remoteGlobalIDString = 99626194192D9649004FF2E3; 37 remoteGlobalIDString = 99626194192D9649004FF2E3;
38 remoteInfo = GameSDK; 38 remoteInfo = GameSDK;
39 }; 39 };
40 /* End PBXContainerItemProxy section */ 40 /* End PBXContainerItemProxy section */
41 41
42 /* Begin PBXFileReference section */ 42 /* Begin PBXFileReference section */
43 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>"; };
44 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>"; };
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>"; }; 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>"; };
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>"; }; 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>"; };
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; }; 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; };
48 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>"; };
49 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>"; };
50 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>"; };
51 7517F2101FFF437E000237ED /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; }; 51 7517F2101FFF437E000237ED /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; };
52 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GameSDKResources.bundle; path = ../../GameSDKResources.bundle; sourceTree = "<group>"; }; 52 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GameSDKResources.bundle; path = ../../GameSDKResources.bundle; sourceTree = "<group>"; };
53 75864D601FF35A22002C9012 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; }; 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; }; 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; }; 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; }; 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>"; }; 57 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GameSDK.xcodeproj; path = ../../../iosgamesdk/GameSDK/GameSDK.xcodeproj; sourceTree = "<group>"; };
58 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; };
59 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; };
60 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; };
61 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; };
62 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>"; };
63 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>"; };
64 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>"; };
65 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>"; };
66 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>"; };
67 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>"; };
68 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>"; };
69 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>"; };
70 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; };
71 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; };
72 /* End PBXFileReference section */ 72 /* End PBXFileReference section */
73 73
74 /* Begin PBXFrameworksBuildPhase section */ 74 /* Begin PBXFrameworksBuildPhase section */
75 9934F1AB19303DC6005EF4AB /* Frameworks */ = { 75 9934F1AB19303DC6005EF4AB /* Frameworks */ = {
76 isa = PBXFrameworksBuildPhase; 76 isa = PBXFrameworksBuildPhase;
77 buildActionMask = 2147483647; 77 buildActionMask = 2147483647;
78 files = ( 78 files = (
79 75864D691FF35A58002C9012 /* libc++.tbd in Frameworks */, 79 75864D691FF35A58002C9012 /* libc++.tbd in Frameworks */,
80 75864D671FF35A48002C9012 /* libz.tbd in Frameworks */, 80 75864D671FF35A48002C9012 /* libz.tbd in Frameworks */,
81 75864D651FF35A3A002C9012 /* CoreTelephony.framework in Frameworks */, 81 75864D651FF35A3A002C9012 /* CoreTelephony.framework in Frameworks */,
82 7517F2111FFF437F000237ED /* GameSDK.framework in Frameworks */, 82 7517F2111FFF437F000237ED /* GameSDK.framework in Frameworks */,
83 75864D631FF35A22002C9012 /* libsqlite3.tbd in Frameworks */, 83 75864D631FF35A22002C9012 /* libsqlite3.tbd in Frameworks */,
84 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */, 84 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */,
85 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */, 85 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */,
86 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */, 86 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */,
87 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */, 87 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */,
88 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */, 88 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */,
89 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */, 89 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */,
90 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */, 90 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */,
91 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */, 91 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */,
92 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */, 92 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */,
93 ); 93 );
94 runOnlyForDeploymentPostprocessing = 0; 94 runOnlyForDeploymentPostprocessing = 0;
95 }; 95 };
96 /* End PBXFrameworksBuildPhase section */ 96 /* End PBXFrameworksBuildPhase section */
97 97
98 /* Begin PBXGroup section */ 98 /* Begin PBXGroup section */
99 27019DC91A208B1500DA560D /* Configuration */ = { 99 27019DC91A208B1500DA560D /* Configuration */ = {
100 isa = PBXGroup; 100 isa = PBXGroup;
101 children = ( 101 children = (
102 27019DCA1A208B1500DA560D /* Path.xcconfig */, 102 27019DCA1A208B1500DA560D /* Path.xcconfig */,
103 27019DCB1A208B1500DA560D /* Project.xcconfig */, 103 27019DCB1A208B1500DA560D /* Project.xcconfig */,
104 ); 104 );
105 path = Configuration; 105 path = Configuration;
106 sourceTree = "<group>"; 106 sourceTree = "<group>";
107 }; 107 };
108 27019DCE1A208B2300DA560D /* Dependencies */ = { 108 27019DCE1A208B2300DA560D /* Dependencies */ = {
109 isa = PBXGroup; 109 isa = PBXGroup;
110 children = ( 110 children = (
111 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */, 111 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */,
112 ); 112 );
113 name = Dependencies; 113 name = Dependencies;
114 sourceTree = "<group>"; 114 sourceTree = "<group>";
115 }; 115 };
116 75864D6B1FF368D9002C9012 /* Products */ = { 116 75864D6B1FF368D9002C9012 /* Products */ = {
117 isa = PBXGroup; 117 isa = PBXGroup;
118 children = ( 118 children = (
119 75864D701FF368D9002C9012 /* libGameSDK.a */, 119 75864D701FF368D9002C9012 /* libGameSDK.a */,
120 ); 120 );
121 name = Products; 121 name = Products;
122 sourceTree = "<group>"; 122 sourceTree = "<group>";
123 }; 123 };
124 9934F1A519303DC6005EF4AB = { 124 9934F1A519303DC6005EF4AB = {
125 isa = PBXGroup; 125 isa = PBXGroup;
126 children = ( 126 children = (
127 27019DC91A208B1500DA560D /* Configuration */, 127 27019DC91A208B1500DA560D /* Configuration */,
128 27019DCE1A208B2300DA560D /* Dependencies */, 128 27019DCE1A208B2300DA560D /* Dependencies */,
129 9934F1B719303DC6005EF4AB /* letsgameDemo */, 129 9934F1B719303DC6005EF4AB /* letsgameDemo */,
130 9934F1B019303DC6005EF4AB /* Frameworks */, 130 9934F1B019303DC6005EF4AB /* Frameworks */,
131 9934F1AF19303DC6005EF4AB /* Products */, 131 9934F1AF19303DC6005EF4AB /* Products */,
132 ); 132 );
133 sourceTree = "<group>"; 133 sourceTree = "<group>";
134 }; 134 };
135 9934F1AF19303DC6005EF4AB /* Products */ = { 135 9934F1AF19303DC6005EF4AB /* Products */ = {
136 isa = PBXGroup; 136 isa = PBXGroup;
137 children = ( 137 children = (
138 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */, 138 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */,
139 ); 139 );
140 name = Products; 140 name = Products;
141 sourceTree = "<group>"; 141 sourceTree = "<group>";
142 }; 142 };
143 9934F1B019303DC6005EF4AB /* Frameworks */ = { 143 9934F1B019303DC6005EF4AB /* Frameworks */ = {
144 isa = PBXGroup; 144 isa = PBXGroup;
145 children = ( 145 children = (
146 7517F2101FFF437E000237ED /* GameSDK.framework */, 146 7517F2101FFF437E000237ED /* GameSDK.framework */,
147 75864D681FF35A57002C9012 /* libc++.tbd */, 147 75864D681FF35A57002C9012 /* libc++.tbd */,
148 75864D661FF35A48002C9012 /* libz.tbd */, 148 75864D661FF35A48002C9012 /* libz.tbd */,
149 75864D641FF35A3A002C9012 /* CoreTelephony.framework */, 149 75864D641FF35A3A002C9012 /* CoreTelephony.framework */,
150 75864D601FF35A22002C9012 /* libsqlite3.tbd */, 150 75864D601FF35A22002C9012 /* libsqlite3.tbd */,
151 331262361C50B56800B1B435 /* VKBridge.framework */, 151 331262361C50B56800B1B435 /* VKBridge.framework */,
152 3309D97E1C4394C800534E33 /* VKSdk.framework */, 152 3309D97E1C4394C800534E33 /* VKSdk.framework */,
153 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */, 153 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */,
154 3309D8541C312F6500534E33 /* QuartzCore.framework */, 154 3309D8541C312F6500534E33 /* QuartzCore.framework */,
155 3309D8521C312F5900534E33 /* StoreKit.framework */, 155 3309D8521C312F5900534E33 /* StoreKit.framework */,
156 997523311930A52600F50D29 /* MobileCoreServices.framework */, 156 997523311930A52600F50D29 /* MobileCoreServices.framework */,
157 997523271930A42500F50D29 /* CFNetwork.framework */, 157 997523271930A42500F50D29 /* CFNetwork.framework */,
158 9934F1B119303DC6005EF4AB /* Foundation.framework */, 158 9934F1B119303DC6005EF4AB /* Foundation.framework */,
159 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */, 159 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */,
160 9934F1B519303DC6005EF4AB /* UIKit.framework */, 160 9934F1B519303DC6005EF4AB /* UIKit.framework */,
161 ); 161 );
162 name = Frameworks; 162 name = Frameworks;
163 sourceTree = "<group>"; 163 sourceTree = "<group>";
164 }; 164 };
165 9934F1B719303DC6005EF4AB /* letsgameDemo */ = { 165 9934F1B719303DC6005EF4AB /* letsgameDemo */ = {
166 isa = PBXGroup; 166 isa = PBXGroup;
167 children = ( 167 children = (
168 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */, 168 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */,
169 9934F1C319303DC6005EF4AB /* Images.xcassets */, 169 9934F1C319303DC6005EF4AB /* Images.xcassets */,
170 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */, 170 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */,
171 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */, 171 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */,
172 9934F23819307153005EF4AB /* LSGMainViewController.h */, 172 9934F23819307153005EF4AB /* LSGMainViewController.h */,
173 9934F23919307153005EF4AB /* LSGMainViewController.m */, 173 9934F23919307153005EF4AB /* LSGMainViewController.m */,
174 9934F1B819303DC6005EF4AB /* Supporting Files */, 174 9934F1B819303DC6005EF4AB /* Supporting Files */,
175 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */, 175 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */,
176 ); 176 );
177 path = letsgameDemo; 177 path = letsgameDemo;
178 sourceTree = "<group>"; 178 sourceTree = "<group>";
179 }; 179 };
180 9934F1B819303DC6005EF4AB /* Supporting Files */ = { 180 9934F1B819303DC6005EF4AB /* Supporting Files */ = {
181 isa = PBXGroup; 181 isa = PBXGroup;
182 children = ( 182 children = (
183 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */, 183 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */,
184 9934F1BD19303DC6005EF4AB /* main.m */, 184 9934F1BD19303DC6005EF4AB /* main.m */,
185 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */, 185 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */,
186 ); 186 );
187 name = "Supporting Files"; 187 name = "Supporting Files";
188 sourceTree = "<group>"; 188 sourceTree = "<group>";
189 }; 189 };
190 /* End PBXGroup section */ 190 /* End PBXGroup section */
191 191
192 /* Begin PBXNativeTarget section */ 192 /* Begin PBXNativeTarget section */
193 9934F1AD19303DC6005EF4AB /* GameSDKDemo */ = { 193 9934F1AD19303DC6005EF4AB /* GameSDKDemo */ = {
194 isa = PBXNativeTarget; 194 isa = PBXNativeTarget;
195 buildConfigurationList = 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */; 195 buildConfigurationList = 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */;
196 buildPhases = ( 196 buildPhases = (
197 9934F1AA19303DC6005EF4AB /* Sources */, 197 9934F1AA19303DC6005EF4AB /* Sources */,
198 9934F1AB19303DC6005EF4AB /* Frameworks */, 198 9934F1AB19303DC6005EF4AB /* Frameworks */,
199 9934F1AC19303DC6005EF4AB /* Resources */, 199 9934F1AC19303DC6005EF4AB /* Resources */,
200 ); 200 );
201 buildRules = ( 201 buildRules = (
202 ); 202 );
203 dependencies = ( 203 dependencies = (
204 ); 204 );
205 name = GameSDKDemo; 205 name = GameSDKDemo;
206 productName = letsgameDemo; 206 productName = letsgameDemo;
207 productReference = 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */; 207 productReference = 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */;
208 productType = "com.apple.product-type.application"; 208 productType = "com.apple.product-type.application";
209 }; 209 };
210 /* End PBXNativeTarget section */ 210 /* End PBXNativeTarget section */
211 211
212 /* Begin PBXProject section */ 212 /* Begin PBXProject section */
213 9934F1A619303DC6005EF4AB /* Project object */ = { 213 9934F1A619303DC6005EF4AB /* Project object */ = {
214 isa = PBXProject; 214 isa = PBXProject;
215 attributes = { 215 attributes = {
216 CLASSPREFIX = LSG; 216 CLASSPREFIX = LSG;
217 LastUpgradeCheck = 0710; 217 LastUpgradeCheck = 0710;
218 TargetAttributes = { 218 TargetAttributes = {
219 9934F1AD19303DC6005EF4AB = { 219 9934F1AD19303DC6005EF4AB = {
220 DevelopmentTeam = TU2VD6BENZ; 220 DevelopmentTeam = 259W4F7KN8;
221 ProvisioningStyle = Automatic;
221 }; 222 };
222 }; 223 };
223 }; 224 };
224 buildConfigurationList = 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */; 225 buildConfigurationList = 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */;
225 compatibilityVersion = "Xcode 3.2"; 226 compatibilityVersion = "Xcode 3.2";
226 developmentRegion = English; 227 developmentRegion = English;
227 hasScannedForEncodings = 0; 228 hasScannedForEncodings = 0;
228 knownRegions = ( 229 knownRegions = (
229 en, 230 en,
230 ); 231 );
231 mainGroup = 9934F1A519303DC6005EF4AB; 232 mainGroup = 9934F1A519303DC6005EF4AB;
232 productRefGroup = 9934F1AF19303DC6005EF4AB /* Products */; 233 productRefGroup = 9934F1AF19303DC6005EF4AB /* Products */;
233 projectDirPath = ""; 234 projectDirPath = "";
234 projectReferences = ( 235 projectReferences = (
235 { 236 {
236 ProductGroup = 75864D6B1FF368D9002C9012 /* Products */; 237 ProductGroup = 75864D6B1FF368D9002C9012 /* Products */;
237 ProjectRef = 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */; 238 ProjectRef = 75864D6A1FF368D9002C9012 /* GameSDK.xcodeproj */;
238 }, 239 },
239 ); 240 );
240 projectRoot = ""; 241 projectRoot = "";
241 targets = ( 242 targets = (
242 9934F1AD19303DC6005EF4AB /* GameSDKDemo */, 243 9934F1AD19303DC6005EF4AB /* GameSDKDemo */,
243 ); 244 );
244 }; 245 };
245 /* End PBXProject section */ 246 /* End PBXProject section */
246 247
247 /* Begin PBXReferenceProxy section */ 248 /* Begin PBXReferenceProxy section */
248 75864D701FF368D9002C9012 /* libGameSDK.a */ = { 249 75864D701FF368D9002C9012 /* libGameSDK.a */ = {
249 isa = PBXReferenceProxy; 250 isa = PBXReferenceProxy;
250 fileType = archive.ar; 251 fileType = archive.ar;
251 path = libGameSDK.a; 252 path = libGameSDK.a;
252 remoteRef = 75864D6F1FF368D9002C9012 /* PBXContainerItemProxy */; 253 remoteRef = 75864D6F1FF368D9002C9012 /* PBXContainerItemProxy */;
253 sourceTree = BUILT_PRODUCTS_DIR; 254 sourceTree = BUILT_PRODUCTS_DIR;
254 }; 255 };
255 /* End PBXReferenceProxy section */ 256 /* End PBXReferenceProxy section */
256 257
257 /* Begin PBXResourcesBuildPhase section */ 258 /* Begin PBXResourcesBuildPhase section */
258 9934F1AC19303DC6005EF4AB /* Resources */ = { 259 9934F1AC19303DC6005EF4AB /* Resources */ = {
259 isa = PBXResourcesBuildPhase; 260 isa = PBXResourcesBuildPhase;
260 buildActionMask = 2147483647; 261 buildActionMask = 2147483647;
261 files = ( 262 files = (
262 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */, 263 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */,
263 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */, 264 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */,
264 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */, 265 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */,
265 ); 266 );
266 runOnlyForDeploymentPostprocessing = 0; 267 runOnlyForDeploymentPostprocessing = 0;
267 }; 268 };
268 /* End PBXResourcesBuildPhase section */ 269 /* End PBXResourcesBuildPhase section */
269 270
270 /* Begin PBXSourcesBuildPhase section */ 271 /* Begin PBXSourcesBuildPhase section */
271 9934F1AA19303DC6005EF4AB /* Sources */ = { 272 9934F1AA19303DC6005EF4AB /* Sources */ = {
272 isa = PBXSourcesBuildPhase; 273 isa = PBXSourcesBuildPhase;
273 buildActionMask = 2147483647; 274 buildActionMask = 2147483647;
274 files = ( 275 files = (
275 9934F1BE19303DC6005EF4AB /* main.m in Sources */, 276 9934F1BE19303DC6005EF4AB /* main.m in Sources */,
276 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */, 277 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */,
277 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */, 278 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */,
278 ); 279 );
279 runOnlyForDeploymentPostprocessing = 0; 280 runOnlyForDeploymentPostprocessing = 0;
280 }; 281 };
281 /* End PBXSourcesBuildPhase section */ 282 /* End PBXSourcesBuildPhase section */
282 283
283 /* Begin XCBuildConfiguration section */ 284 /* Begin XCBuildConfiguration section */
284 9934F1D819303DC6005EF4AB /* Debug */ = { 285 9934F1D819303DC6005EF4AB /* Debug */ = {
285 isa = XCBuildConfiguration; 286 isa = XCBuildConfiguration;
286 buildSettings = { 287 buildSettings = {
287 ALWAYS_SEARCH_USER_PATHS = YES; 288 ALWAYS_SEARCH_USER_PATHS = YES;
288 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 289 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
289 CLANG_CXX_LIBRARY = "libc++"; 290 CLANG_CXX_LIBRARY = "libc++";
290 CLANG_ENABLE_MODULES = YES; 291 CLANG_ENABLE_MODULES = YES;
291 CLANG_ENABLE_OBJC_ARC = YES; 292 CLANG_ENABLE_OBJC_ARC = YES;
292 CLANG_WARN_BOOL_CONVERSION = YES; 293 CLANG_WARN_BOOL_CONVERSION = YES;
293 CLANG_WARN_CONSTANT_CONVERSION = YES; 294 CLANG_WARN_CONSTANT_CONVERSION = YES;
294 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 295 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
295 CLANG_WARN_EMPTY_BODY = YES; 296 CLANG_WARN_EMPTY_BODY = YES;
296 CLANG_WARN_ENUM_CONVERSION = YES; 297 CLANG_WARN_ENUM_CONVERSION = YES;
297 CLANG_WARN_INT_CONVERSION = YES; 298 CLANG_WARN_INT_CONVERSION = YES;
298 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 299 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
299 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 300 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
300 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 301 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
301 COPY_PHASE_STRIP = YES; 302 COPY_PHASE_STRIP = YES;
302 ENABLE_TESTABILITY = YES; 303 ENABLE_TESTABILITY = YES;
303 GCC_C_LANGUAGE_STANDARD = gnu99; 304 GCC_C_LANGUAGE_STANDARD = gnu99;
304 GCC_DYNAMIC_NO_PIC = NO; 305 GCC_DYNAMIC_NO_PIC = NO;
305 GCC_OPTIMIZATION_LEVEL = 0; 306 GCC_OPTIMIZATION_LEVEL = 0;
306 GCC_PREPROCESSOR_DEFINITIONS = ( 307 GCC_PREPROCESSOR_DEFINITIONS = (
307 "DEBUG=1", 308 "DEBUG=1",
308 "$(inherited)", 309 "$(inherited)",
309 ); 310 );
310 GCC_SYMBOLS_PRIVATE_EXTERN = NO; 311 GCC_SYMBOLS_PRIVATE_EXTERN = NO;
311 GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 312 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
312 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 313 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
313 GCC_WARN_UNDECLARED_SELECTOR = YES; 314 GCC_WARN_UNDECLARED_SELECTOR = YES;
314 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 315 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
315 GCC_WARN_UNUSED_FUNCTION = YES; 316 GCC_WARN_UNUSED_FUNCTION = YES;
316 GCC_WARN_UNUSED_VARIABLE = YES; 317 GCC_WARN_UNUSED_VARIABLE = YES;
317 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; 318 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**";
318 IPHONEOS_DEPLOYMENT_TARGET = 8.4; 319 IPHONEOS_DEPLOYMENT_TARGET = 8.4;
319 ONLY_ACTIVE_ARCH = YES; 320 ONLY_ACTIVE_ARCH = YES;
320 SDKROOT = iphoneos; 321 SDKROOT = iphoneos;
321 }; 322 };
322 name = Debug; 323 name = Debug;
323 }; 324 };
324 9934F1D919303DC6005EF4AB /* Release */ = { 325 9934F1D919303DC6005EF4AB /* Release */ = {
325 isa = XCBuildConfiguration; 326 isa = XCBuildConfiguration;
326 buildSettings = { 327 buildSettings = {
327 ALWAYS_SEARCH_USER_PATHS = YES; 328 ALWAYS_SEARCH_USER_PATHS = YES;
328 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 329 CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
329 CLANG_CXX_LIBRARY = "libc++"; 330 CLANG_CXX_LIBRARY = "libc++";
330 CLANG_ENABLE_MODULES = YES; 331 CLANG_ENABLE_MODULES = YES;
331 CLANG_ENABLE_OBJC_ARC = YES; 332 CLANG_ENABLE_OBJC_ARC = YES;
332 CLANG_WARN_BOOL_CONVERSION = YES; 333 CLANG_WARN_BOOL_CONVERSION = YES;
333 CLANG_WARN_CONSTANT_CONVERSION = YES; 334 CLANG_WARN_CONSTANT_CONVERSION = YES;
334 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
335 CLANG_WARN_EMPTY_BODY = YES; 336 CLANG_WARN_EMPTY_BODY = YES;
336 CLANG_WARN_ENUM_CONVERSION = YES; 337 CLANG_WARN_ENUM_CONVERSION = YES;
337 CLANG_WARN_INT_CONVERSION = YES; 338 CLANG_WARN_INT_CONVERSION = YES;
338 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 339 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
339 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 340 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
340 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 341 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
341 COPY_PHASE_STRIP = YES; 342 COPY_PHASE_STRIP = YES;
342 ENABLE_NS_ASSERTIONS = NO; 343 ENABLE_NS_ASSERTIONS = NO;
343 GCC_C_LANGUAGE_STANDARD = gnu99; 344 GCC_C_LANGUAGE_STANDARD = gnu99;
344 GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 345 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
345 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 346 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
346 GCC_WARN_UNDECLARED_SELECTOR = YES; 347 GCC_WARN_UNDECLARED_SELECTOR = YES;
347 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 348 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
348 GCC_WARN_UNUSED_FUNCTION = YES; 349 GCC_WARN_UNUSED_FUNCTION = YES;
349 GCC_WARN_UNUSED_VARIABLE = YES; 350 GCC_WARN_UNUSED_VARIABLE = YES;
350 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; 351 HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**";
351 IPHONEOS_DEPLOYMENT_TARGET = 8.4; 352 IPHONEOS_DEPLOYMENT_TARGET = 8.4;
352 ONLY_ACTIVE_ARCH = YES; 353 ONLY_ACTIVE_ARCH = YES;
353 SDKROOT = iphoneos; 354 SDKROOT = iphoneos;
354 VALIDATE_PRODUCT = YES; 355 VALIDATE_PRODUCT = YES;
355 }; 356 };
356 name = Release; 357 name = Release;
357 }; 358 };
358 9934F1DB19303DC6005EF4AB /* Debug */ = { 359 9934F1DB19303DC6005EF4AB /* Debug */ = {
359 isa = XCBuildConfiguration; 360 isa = XCBuildConfiguration;
360 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; 361 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */;
361 buildSettings = { 362 buildSettings = {
362 ALWAYS_SEARCH_USER_PATHS = YES; 363 ALWAYS_SEARCH_USER_PATHS = YES;
363 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 364 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
364 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 365 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
365 CODE_SIGN_IDENTITY = "iPhone Developer"; 366 CODE_SIGN_IDENTITY = "iPhone Developer";
366 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 367 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
367 DEVELOPMENT_TEAM = TU2VD6BENZ; 368 CODE_SIGN_STYLE = Automatic;
369 DEVELOPMENT_TEAM = 259W4F7KN8;
368 ENABLE_BITCODE = NO; 370 ENABLE_BITCODE = NO;
369 FRAMEWORK_SEARCH_PATHS = ( 371 FRAMEWORK_SEARCH_PATHS = (
370 "$(PROJECT_DIR)/../**", 372 "$(PROJECT_DIR)/../**",
371 "$(PROJECT_DIR)/letsgameDemo", 373 "$(PROJECT_DIR)/letsgameDemo",
372 ); 374 );
373 GCC_PRECOMPILE_PREFIX_HEADER = YES; 375 GCC_PRECOMPILE_PREFIX_HEADER = YES;
374 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; 376 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch";
375 HEADER_SEARCH_PATHS = ( 377 HEADER_SEARCH_PATHS = (
376 "$(PROJECT_DIR)/../GameSDK.framework/**", 378 "$(PROJECT_DIR)/../GameSDK.framework/**",
377 "$(inherited)", 379 "$(inherited)",
378 "$(PROJECT_DIR)/letsgameDemo/**", 380 "$(PROJECT_DIR)/letsgameDemo/**",
379 "$(PROJECT_DIR)/../VKBridge.framework/**", 381 "$(PROJECT_DIR)/../VKBridge.framework/**",
380 ); 382 );
381 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; 383 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist";
382 IPHONEOS_DEPLOYMENT_TARGET = 7.0; 384 IPHONEOS_DEPLOYMENT_TARGET = 7.0;
383 LIBRARY_SEARCH_PATHS = ""; 385 LIBRARY_SEARCH_PATHS = "";
384 ONLY_ACTIVE_ARCH = YES; 386 ONLY_ACTIVE_ARCH = YES;
385 OTHER_LDFLAGS = "-ObjC"; 387 OTHER_LDFLAGS = "-ObjC";
386 PRIVATE_HEADERS_FOLDER_PATH = ""; 388 PRIVATE_HEADERS_FOLDER_PATH = "";
387 PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; 389 PRODUCT_BUNDLE_IDENTIFIER = test.GameSDK.Demo;
388 PRODUCT_NAME = GameSDKDemo; 390 PRODUCT_NAME = GameSDKDemo;
389 PROVISIONING_PROFILE = "9a16d1a8-62c4-4ddd-a173-5ea852773122"; 391 PROVISIONING_PROFILE = "";
390 PROVISIONING_PROFILE_SPECIFIER = testpurchaseDev; 392 PROVISIONING_PROFILE_SPECIFIER = "";
391 PUBLIC_HEADERS_FOLDER_PATH = ""; 393 PUBLIC_HEADERS_FOLDER_PATH = "";
392 WRAPPER_EXTENSION = app; 394 WRAPPER_EXTENSION = app;
393 }; 395 };
394 name = Debug; 396 name = Debug;
395 }; 397 };
396 9934F1DC19303DC6005EF4AB /* Release */ = { 398 9934F1DC19303DC6005EF4AB /* Release */ = {
397 isa = XCBuildConfiguration; 399 isa = XCBuildConfiguration;
398 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; 400 baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */;
399 buildSettings = { 401 buildSettings = {
400 ALWAYS_SEARCH_USER_PATHS = YES; 402 ALWAYS_SEARCH_USER_PATHS = YES;
401 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 403 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
402 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 404 ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
403 CODE_SIGN_IDENTITY = "iPhone Developer"; 405 CODE_SIGN_IDENTITY = "iPhone Developer";
404 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; 406 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
405 DEVELOPMENT_TEAM = TU2VD6BENZ; 407 CODE_SIGN_STYLE = Automatic;
408 DEVELOPMENT_TEAM = 259W4F7KN8;
406 ENABLE_BITCODE = NO; 409 ENABLE_BITCODE = NO;
407 FRAMEWORK_SEARCH_PATHS = ( 410 FRAMEWORK_SEARCH_PATHS = (
408 "$(PROJECT_DIR)/../**", 411 "$(PROJECT_DIR)/../**",
409 "$(PROJECT_DIR)/letsgameDemo", 412 "$(PROJECT_DIR)/letsgameDemo",
410 ); 413 );
411 GCC_PRECOMPILE_PREFIX_HEADER = YES; 414 GCC_PRECOMPILE_PREFIX_HEADER = YES;
412 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; 415 GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch";
413 HEADER_SEARCH_PATHS = ( 416 HEADER_SEARCH_PATHS = (
414 "$(PROJECT_DIR)/../GameSDK.framework/**", 417 "$(PROJECT_DIR)/../GameSDK.framework/**",
415 "$(inherited)", 418 "$(inherited)",
416 "$(PROJECT_DIR)/letsgameDemo/**", 419 "$(PROJECT_DIR)/letsgameDemo/**",
417 "$(PROJECT_DIR)/../VKBridge.framework/**", 420 "$(PROJECT_DIR)/../VKBridge.framework/**",
418 ); 421 );
419 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; 422 INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist";
420 IPHONEOS_DEPLOYMENT_TARGET = 7.0; 423 IPHONEOS_DEPLOYMENT_TARGET = 7.0;
421 LIBRARY_SEARCH_PATHS = ""; 424 LIBRARY_SEARCH_PATHS = "";
422 ONLY_ACTIVE_ARCH = YES; 425 ONLY_ACTIVE_ARCH = YES;
423 OTHER_LDFLAGS = "-ObjC"; 426 OTHER_LDFLAGS = "-ObjC";
424 PRIVATE_HEADERS_FOLDER_PATH = ""; 427 PRIVATE_HEADERS_FOLDER_PATH = "";
425 PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; 428 PRODUCT_BUNDLE_IDENTIFIER = test.GameSDK.Demo;
426 PRODUCT_NAME = GameSDKDemo; 429 PRODUCT_NAME = GameSDKDemo;
427 PROVISIONING_PROFILE = "7b28fefe-7c60-41a6-ac6c-b21726228700"; 430 PROVISIONING_PROFILE = "";
428 PROVISIONING_PROFILE_SPECIFIER = testpurchasekang; 431 PROVISIONING_PROFILE_SPECIFIER = "";
429 PUBLIC_HEADERS_FOLDER_PATH = ""; 432 PUBLIC_HEADERS_FOLDER_PATH = "";
430 WRAPPER_EXTENSION = app; 433 WRAPPER_EXTENSION = app;
431 }; 434 };
432 name = Release; 435 name = Release;
433 }; 436 };
434 /* End XCBuildConfiguration section */ 437 /* End XCBuildConfiguration section */
435 438
436 /* Begin XCConfigurationList section */ 439 /* Begin XCConfigurationList section */
437 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */ = { 440 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */ = {
438 isa = XCConfigurationList; 441 isa = XCConfigurationList;
439 buildConfigurations = ( 442 buildConfigurations = (
440 9934F1D819303DC6005EF4AB /* Debug */, 443 9934F1D819303DC6005EF4AB /* Debug */,
441 9934F1D919303DC6005EF4AB /* Release */, 444 9934F1D919303DC6005EF4AB /* Release */,
442 ); 445 );
443 defaultConfigurationIsVisible = 0; 446 defaultConfigurationIsVisible = 0;
444 defaultConfigurationName = Release; 447 defaultConfigurationName = Release;
445 }; 448 };
446 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */ = { 449 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */ = {
447 isa = XCConfigurationList; 450 isa = XCConfigurationList;
448 buildConfigurations = ( 451 buildConfigurations = (
449 9934F1DB19303DC6005EF4AB /* Debug */, 452 9934F1DB19303DC6005EF4AB /* Debug */,
450 9934F1DC19303DC6005EF4AB /* Release */, 453 9934F1DC19303DC6005EF4AB /* Release */,
451 ); 454 );
452 defaultConfigurationIsVisible = 0; 455 defaultConfigurationIsVisible = 0;
453 defaultConfigurationName = Release; 456 defaultConfigurationName = Release;
454 }; 457 };
455 /* End XCConfigurationList section */ 458 /* End XCConfigurationList section */
456 }; 459 };
457 rootObject = 9934F1A619303DC6005EF4AB /* Project object */; 460 rootObject = 9934F1A619303DC6005EF4AB /* Project object */;
458 } 461 }
459 462
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
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 // [LetsGameAPI DeviceOrientationIsHorizontal:NO]; 18 // [LetsGameAPI DeviceOrientationIsHorizontal:NO];
19 19
20 LSGMainViewController *viewController = [[LSGMainViewController alloc] init]; 20 LSGMainViewController *viewController = [[LSGMainViewController alloc] init];
21 self.window.rootViewController = viewController; 21 self.window.rootViewController = viewController;
22 [self.window addSubview:viewController.view]; 22 [self.window addSubview:viewController.view];
23 23
24 self.window.backgroundColor = [UIColor whiteColor]; 24 self.window.backgroundColor = [UIColor whiteColor];
25 [self.window makeKeyAndVisible]; 25 [self.window makeKeyAndVisible];
26 26
27 // [[LetsGameAPI instance] decideIsDebug:1]; 27 // [[LetsGameAPI instance] decideIsDebug:1];
28 28
29 //显示是否侵权的接口 29 //显示是否侵权的接口
30 // [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) { 30 // [[LetsGameAPI instance] gameObtainSafeSetInfoWithAppId:@"10056" ChannelId:@"1000" handleCallBack:^(BOOL resultStatus) {
31 // if (resultStatus) { 31 // if (resultStatus) {
32 // NSLog(@"YES 侵权"); 32 // NSLog(@"YES 侵权");
33 // }else{ 33 // }else{
34 // NSLog(@"NO 不侵权"); 34 // NSLog(@"NO 不侵权");
35 // } 35 // }
36 // }]; 36 // }];
37 37
38 //微信登陆 38 //微信登陆
39 // [[LetsGameAPI instance] registerAppWeChatWithAppId:@"100" appKey:@"f899139df5e1059396431415e770c6dd" Success:^{ 39 [[LetsGameAPI instance] registerAppWeChatWithAppId:@"100" appKey:@"f899139df5e1059396431415e770c6dd" Success:^{
40 // NSLog(@"注册成功"); 40 NSLog(@"注册成功");
41 // } failure:^{ 41 } failure:^{
42 // NSLog(@"注册失败"); 42 NSLog(@"注册失败");
43 // }]; 43 }];
44 44
45 [[UIApplication sharedApplication] setStatusBarHidden:YES]; 45 [[UIApplication sharedApplication] setStatusBarHidden:YES];
46 [[LetsGameAPI instance] registeIapObserver]; 46 [[LetsGameAPI instance] registeIapObserver];
47 47
48 return YES; 48 return YES;
49 } 49 }
50 50
51 - (void)applicationWillResignActive:(UIApplication *)application 51 - (void)applicationWillResignActive:(UIApplication *)application
52 { 52 {
53 // 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. 53 // 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.
54 // 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. 54 // 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.
55 } 55 }
56 56
57 - (void)applicationDidEnterBackground:(UIApplication *)application 57 - (void)applicationDidEnterBackground:(UIApplication *)application
58 { 58 {
59 // 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. 59 // 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.
60 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 60 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
61 } 61 }
62 62
63 - (void)applicationWillEnterForeground:(UIApplication *)application 63 - (void)applicationWillEnterForeground:(UIApplication *)application
64 { 64 {
65 // 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. 65 // 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.
66 } 66 }
67 67
68 -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ 68 -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
69 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; 69 return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication];
70 //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication]; 70 //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication];
71 } 71 }
72 72
73 73
74 @end 74 @end
75 75
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 = @"100";//@"100";//10047 85 [LetsGameAPI instance].appId = @"100";//@"100";//10047
86 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//@"f899139df5e1059396431415e770c6dd";//eccd9f7dc92858b741132fda313130cf 86 [LetsGameAPI instance].appKey = @"f899139df5e1059396431415e770c6dd";//@"f899139df5e1059396431415e770c6dd";//eccd9f7dc92858b741132fda313130cf
87 [LetsGameAPI hiddenLogo:YES]; 87 [LetsGameAPI hiddenLogo:YES];
88 // [LetsGameAPI disableFB:YES]; 88 // [LetsGameAPI disableFB:YES];
89 // [LetsGameAPI disableGoogle:YES]; 89 // [LetsGameAPI disableGoogle:YES];
90 // [LetsGameAPI disableLine:YES]; 90 // [LetsGameAPI disableLine:YES];
91 [LetsGameAPI disableWeChat:YES]; 91 // [LetsGameAPI disableWeChat:YES];
92 NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]); 92 NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]);
93 //启用vk登录 93 //启用vk登录
94 VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; 94 VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"];
95 [LetsGameAPI instance].vkBridge = vkBridge; 95 [LetsGameAPI instance].vkBridge = vkBridge;
96 96
97 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { 97 [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) {
98 self.sessionKey = sessionKey; 98 self.sessionKey = sessionKey;
99 self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type]; 99 self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type];
100 }; 100 };
101 [LetsGameAPI instance].dismissBlock = ^() { 101 [LetsGameAPI instance].dismissBlock = ^() {
102 self.resultLabel.text = @"dismiss without login"; 102 self.resultLabel.text = @"dismiss without login";
103 }; 103 };
104 104
105 [[LetsGameAPI instance] showLoginView]; 105 [[LetsGameAPI instance] showLoginView];
106 } 106 }
107 107
108 108
109 - (void)onLogoutTest { 109 - (void)onLogoutTest {
110 [LetsGameAPI instance].appId = @"10056"; 110 [LetsGameAPI instance].appId = @"10056";
111 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21"; 111 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";
112 [[LetsGameAPI instance] logout]; 112 [[LetsGameAPI instance] logout];
113 113
114 } 114 }
115 115
116 -(void)onPayTest{ 116 -(void)onPayTest{
117 [LetsGameAPI instance].appId = @"10056";//10022 117 [LetsGameAPI instance].appId = @"10056";//10022
118 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//93a27b0bd99bac3e68a440b48aa421ab 118 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//93a27b0bd99bac3e68a440b48aa421ab
119 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 119 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
120 [payInfo setValue:@"100" forKey:@"serverId"]; 120 [payInfo setValue:@"100" forKey:@"serverId"];
121 [payInfo setValue:@"10010" forKey:@"roleId"]; 121 [payInfo setValue:@"10010" forKey:@"roleId"];
122 [payInfo setValue:@"1000" forKey:@"channelId"]; 122 [payInfo setValue:@"1000" forKey:@"channelId"];
123 [payInfo setValue:@"10" forKey:@"amount"]; 123 [payInfo setValue:@"10" forKey:@"amount"];
124 [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; 124 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];
125 [payInfo setValue:@"test" forKey:@"product"]; 125 [payInfo setValue:@"test" forKey:@"product"];
126 [payInfo setValue:@"76c17cc68ff9f7f40bd3d096ccc5600a" forKey:@"sessionKey"]; //self.sessionKey 126 [payInfo setValue:@"76c17cc68ff9f7f40bd3d096ccc5600a" forKey:@"sessionKey"]; //self.sessionKey
127 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{ 127 [[LetsGameAPI instance] pay:payInfo handleCallBack:^{
128 NSLog(@"第三方支付完成"); 128 NSLog(@"第三方支付完成");
129 }]; 129 }];
130 } 130 }
131 131
132 -(void)onIapTest{ 132 -(void)onIapTest{
133 [LetsGameAPI instance].appId = @"10056"; 133 [LetsGameAPI instance].appId = @"10056";
134 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21"; 134 [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";
135 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; 135 NSMutableDictionary *payInfo = [NSMutableDictionary dictionary];
136 [payInfo setValue:@"5001" forKey:@"serverId"]; 136 [payInfo setValue:@"5001" forKey:@"serverId"];
137 [payInfo setValue:@"10010" forKey:@"roleId"]; 137 [payInfo setValue:@"10010" forKey:@"roleId"];
138 [payInfo setValue:@"1000" forKey:@"channelId"]; 138 [payInfo setValue:@"1000" forKey:@"channelId"];
139 [payInfo setValue:@"10" forKey:@"amount"]; 139 [payInfo setValue:@"10" forKey:@"amount"];
140 [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; 140 [payInfo setValue:@"ios demo" forKey:@"extraInfo"];
141 [payInfo setValue:@"test.product.1" forKey:@"product"]; 141 [payInfo setValue:@"test.product.1" forKey:@"product"];
142 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) { 142 [[LetsGameAPI instance] iap:payInfo forUser:@"" succCallback:^(NSString *orderId) {
143 //注意测试仅仅是通知客户端成功,但是还需要向服务器请求验证是否成功,以服务端验证为准 143 //注意测试仅仅是通知客户端成功,但是还需要向服务器请求验证是否成功,以服务端验证为准
144 NSLog(@"IAP completed orderId of Gumptech:%@",orderId); 144 NSLog(@"IAP completed orderId of Gumptech:%@",orderId);
145 } failCallback:^(NSString *orderId) { 145 } failCallback:^(NSString *orderId) {
146 NSLog(@"IAP file orderId of Gumptech:%@",orderId); 146 NSLog(@"IAP file orderId of Gumptech:%@",orderId);
147 }]; 147 }];
148 } 148 }
149 149
150 150
151 - (BOOL)shouldAutorotate { 151 - (BOOL)shouldAutorotate {
152 return YES; 152 return YES;
153 } 153 }
154 154
155 -(UIInterfaceOrientationMask)supportedInterfaceOrientations{ 155 -(UIInterfaceOrientationMask)supportedInterfaceOrientations{
156 return UIInterfaceOrientationMaskAll; 156 return UIInterfaceOrientationMaskAll;
157 } 157 }
158 158
159 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 159 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
160 return YES; 160 return YES;
161 } 161 }
162 162
163 @end 163 @end
164 164
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> 39 <dict>
40 <key>CFBundleTypeRole</key> 40 <key>CFBundleTypeRole</key>
41 <string>Editor</string> 41 <string>Editor</string>
42 <key>CFBundleURLSchemes</key> 42 <key>CFBundleURLSchemes</key>
43 <array> 43 <array>
44 <string>wxd0242de3794f1016</string> 44 <string>wxf9b6d466612e8aee</string>
45 </array> 45 </array>
46 </dict> 46 </dict>
47 </array> 47 </array>
48 <key>CFBundleVersion</key> 48 <key>CFBundleVersion</key>
49 <string>1.1.1</string> 49 <string>1.1.1</string>
50 <key>FacebookAppID</key> 50 <key>FacebookAppID</key>
51 <string>1401636950118536</string> 51 <string>1401636950118536</string>
52 <key>FacebookDisplayName</key> 52 <key>FacebookDisplayName</key>
53 <string>letsgameDemo</string> 53 <string>letsgameDemo</string>
54 <key>LSApplicationQueriesSchemes</key> 54 <key>LSApplicationQueriesSchemes</key>
55 <array> 55 <array>
56 <string>weixin</string> 56 <string>weixin</string>
57 <string>wechat</string> 57 <string>wechat</string>
58 </array> 58 </array>
59 <key>LSRequiresIPhoneOS</key> 59 <key>LSRequiresIPhoneOS</key>
60 <true/> 60 <true/>
61 <key>NSAppTransportSecurity</key> 61 <key>NSAppTransportSecurity</key>
62 <dict> 62 <dict>
63 <key>NSAllowsArbitraryLoads</key> 63 <key>NSAllowsArbitraryLoads</key>
64 <false/> 64 <false/>
65 </dict> 65 </dict>
66 <key>UIRequiredDeviceCapabilities</key> 66 <key>UIRequiredDeviceCapabilities</key>
67 <array> 67 <array>
68 <string>armv7</string> 68 <string>armv7</string>
69 </array> 69 </array>
70 <key>UIStatusBarHidden</key> 70 <key>UIStatusBarHidden</key>
71 <true/> 71 <true/>
72 <key>UISupportedInterfaceOrientations</key> 72 <key>UISupportedInterfaceOrientations</key>
73 <array> 73 <array>
74 <string>UIInterfaceOrientationLandscapeLeft</string> 74 <string>UIInterfaceOrientationLandscapeLeft</string>
75 <string>UIInterfaceOrientationLandscapeRight</string> 75 <string>UIInterfaceOrientationLandscapeRight</string>
76 </array> 76 </array>
77 </dict> 77 </dict>
78 </plist> 78 </plist>
79 79