Commit 3956cd494c179fa628947c6304077966d2e3f5c9
1 parent
7a00ee2787
Exists in
master
密码修改与重置
Showing 36 changed files with 112 additions and 214 deletions Inline Diff
- ios/GameSDK.framework/Versions/A/GameSDK
- ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
- ios/GameSDK.zip
- ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.pbxproj
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/Js.txt
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/PayJs.txt
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/en.strings
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/FBLoginViewButton@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/FBLoginViewButtonPressed@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/bottom_bg@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/header_bg@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_fb@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_pwd@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_user@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_vk@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_back@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_back_pressed@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_cancel@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_cancel_pressed@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_close@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/loading@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/log@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/or@2x.png
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/pt-PT.strings
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/ru.strings
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/th.strings
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/zh-Hans.strings
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/zh-Hant.strings
- ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m
- ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
- ios/GameSDKResources.bundle/en.strings
- ios/GameSDKResources.bundle/ru.strings
- ios/GameSDKResources.bundle/template.html
- ios/GameSDKResources.bundle/th.strings
- ios/GameSDKResources.bundle/zh-Hans.strings
- ios/GameSDKResources.bundle/zh-Hant.strings
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 | 8 | ||
9 | typedef void (^LSGDismissBlock)(void); | 9 | typedef void (^LSGDismissBlock)(void); |
10 | 10 | ||
11 | static BOOL isDisableFB = NO; | 11 | static BOOL isDisableFB = NO; |
12 | 12 | ||
13 | static BOOL isEnableVK = NO; | 13 | static BOOL isEnableVK = NO; |
14 | 14 | ||
15 | static BOOL hiddenLogo = NO; | 15 | static BOOL hiddenLogo = NO; |
16 | 16 | ||
17 | static NSString *version = @"3.3.6"; | 17 | static NSString *version = @"3.3.7"; |
18 | 18 | ||
19 | @interface LetsGameAPI : NSObject | 19 | @interface LetsGameAPI : NSObject<UIApplicationDelegate> |
20 | 20 | ||
21 | @property (nonatomic, strong) NSString *appId; | 21 | @property (nonatomic, strong) NSString *appId; |
22 | @property (nonatomic, strong) NSString *appKey; | 22 | @property (nonatomic, strong) NSString *appKey; |
23 | @property (nonatomic, copy) LSGLoginSuccBlock succBlock; | 23 | @property (nonatomic, copy) LSGLoginSuccBlock succBlock; |
24 | @property (nonatomic, copy) LSGDismissBlock dismissBlock; | 24 | @property (nonatomic, copy) LSGDismissBlock dismissBlock; |
25 | @property (nonatomic, assign) int isDebug; | ||
25 | 26 | ||
26 | @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge; | 27 | @property (nonatomic,retain) id<VKBridgeProtocol> vkBridge; |
27 | //@property(nonatomic,strong) NSString *version; | 28 | //@property(nonatomic,strong) NSString *version; |
28 | 29 | ||
29 | + (instancetype)instance; | 30 | + (instancetype)instance; |
30 | 31 | ||
31 | -(NSString*)version; | 32 | -(NSString*)version; |
32 | 33 | ||
33 | - (void)showLoginView; | 34 | - (void)showLoginView; |
34 | - (void)showLoginViewInView:(UIView *)view; | 35 | - (void)showLoginViewInView:(UIView *)view; |
35 | 36 | ||
36 | +(void)disableFB:(BOOL)isDisable; | 37 | +(void)disableFB:(BOOL)isDisable; |
37 | +(BOOL)isFBDisable; | 38 | +(BOOL)isFBDisable; |
38 | +(BOOL)isVKEnable; | 39 | +(BOOL)isVKEnable; |
39 | +(void)hiddenLogo:(BOOL)isHidden; | 40 | +(void)hiddenLogo:(BOOL)isHidden; |
40 | +(BOOL)isHiddenLogo; | 41 | +(BOOL)isHiddenLogo; |
41 | 42 | ||
42 | - (void)logout; | 43 | - (void)logout; |
43 | 44 | ||
44 | - (void)hide; | 45 | - (void)hide; |
45 | 46 | ||
46 | - (BOOL)handleOpenURL:(NSURL *)url | 47 | - (BOOL)handleOpenURL:(NSURL *)url |
47 | sourceApplication:(NSString *)sourceApplication; | 48 | sourceApplication:(NSString *)sourceApplication; |
48 | 49 | ||
49 | -(void)pay:(NSDictionary*) payInfo; | 50 | -(void)pay:(NSDictionary*) payInfo; |
50 | 51 | ||
51 | -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback; | 52 | -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback; |
52 | 53 | ||
53 | -(void)registeIapObserver; | 54 | -(void)registeIapObserver; |
54 | 55 | ||
56 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; | ||
57 | |||
58 | -(void)applicationWillTerminate:(UIApplication *)application; | ||
59 | |||
60 | -(void)decideIsDebug:(int)isDebug; | ||
61 | |||
55 | @end | 62 | @end |
56 | 63 |
ios/GameSDK.zip
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 | 333626911C9BEFDC00839513 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 335EB07F1C5203DA003E6F44 /* GameSDK.framework */; }; | ||
16 | 335EB0691C51D67D003E6F44 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 335EB0681C51D67D003E6F44 /* GameSDKResources.bundle */; }; | ||
17 | 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 */; }; | ||
17 | 752A5F441CDC82C000C36131 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 752A5F431CDC82C000C36131 /* libsqlite3.tbd */; }; | ||
18 | 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 752A5F491CDC8B3200C36131 /* GameSDK.framework */; }; | ||
18 | 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; }; | 19 | 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; }; |
19 | 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; }; | 20 | 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; }; |
20 | 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; }; | 21 | 9934F1BE19303DC6005EF4AB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1BD19303DC6005EF4AB /* main.m */; }; |
21 | 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */; }; | 22 | 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */; }; |
22 | 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; }; | 23 | 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9934F1C319303DC6005EF4AB /* Images.xcassets */; }; |
23 | 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; }; | 24 | 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9934F23919307153005EF4AB /* LSGMainViewController.m */; }; |
24 | 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; }; | 25 | 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523271930A42500F50D29 /* CFNetwork.framework */; }; |
25 | 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */; }; | 26 | 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */; }; |
26 | 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; }; | 27 | 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 997523311930A52600F50D29 /* MobileCoreServices.framework */; }; |
27 | /* End PBXBuildFile section */ | 28 | /* End PBXBuildFile section */ |
28 | 29 | ||
29 | /* Begin PBXFileReference section */ | 30 | /* Begin PBXFileReference section */ |
30 | 27019DCA1A208B1500DA560D /* Path.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Path.xcconfig; sourceTree = "<group>"; }; | 31 | 27019DCA1A208B1500DA560D /* Path.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Path.xcconfig; sourceTree = "<group>"; }; |
31 | 27019DCB1A208B1500DA560D /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = "<group>"; }; | 32 | 27019DCB1A208B1500DA560D /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = "<group>"; }; |
32 | 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>"; }; | 33 | 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>"; }; |
33 | 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>"; }; | 34 | 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>"; }; |
34 | 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; }; | 35 | 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; }; |
35 | 3309D97E1C4394C800534E33 /* VKSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKSdk.framework; path = letsgameDemo/VKSdk.framework; sourceTree = "<group>"; }; | 36 | 3309D97E1C4394C800534E33 /* VKSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKSdk.framework; path = letsgameDemo/VKSdk.framework; sourceTree = "<group>"; }; |
36 | 331262361C50B56800B1B435 /* VKBridge.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKBridge.framework; path = ../VKBridge.framework; sourceTree = "<group>"; }; | 37 | 331262361C50B56800B1B435 /* VKBridge.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VKBridge.framework; path = ../VKBridge.framework; sourceTree = "<group>"; }; |
37 | 335EB0681C51D67D003E6F44 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = GameSDKResources.bundle; sourceTree = "<group>"; }; | ||
38 | 335EB07F1C5203DA003E6F44 /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; }; | ||
39 | 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = VKSdkResources.bundle; sourceTree = "<group>"; }; | 38 | 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = VKSdkResources.bundle; sourceTree = "<group>"; }; |
39 | 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = GameSDKResources.bundle; path = ../../GameSDKResources.bundle; sourceTree = "<group>"; }; | ||
40 | 752A5F431CDC82C000C36131 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; }; | ||
41 | 752A5F491CDC8B3200C36131 /* GameSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameSDK.framework; path = ../GameSDK.framework; sourceTree = "<group>"; }; | ||
40 | 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GameSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; | 42 | 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GameSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
41 | 9934F1B119303DC6005EF4AB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | 43 | 9934F1B119303DC6005EF4AB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; |
42 | 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | 44 | 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; |
43 | 9934F1B519303DC6005EF4AB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | 45 | 9934F1B519303DC6005EF4AB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; |
44 | 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "letsgameDemo-Info.plist"; sourceTree = "<group>"; }; | 46 | 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "letsgameDemo-Info.plist"; sourceTree = "<group>"; }; |
45 | 9934F1BD19303DC6005EF4AB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | 47 | 9934F1BD19303DC6005EF4AB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; |
46 | 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GameSDKDemo-Prefix.pch"; sourceTree = "<group>"; }; | 48 | 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GameSDKDemo-Prefix.pch"; sourceTree = "<group>"; }; |
47 | 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LSGAppDelegate.h; sourceTree = "<group>"; }; | 49 | 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LSGAppDelegate.h; sourceTree = "<group>"; }; |
48 | 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LSGAppDelegate.m; sourceTree = "<group>"; }; | 50 | 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LSGAppDelegate.m; sourceTree = "<group>"; }; |
49 | 9934F1C319303DC6005EF4AB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; | 51 | 9934F1C319303DC6005EF4AB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; |
50 | 9934F23819307153005EF4AB /* LSGMainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSGMainViewController.h; sourceTree = "<group>"; }; | 52 | 9934F23819307153005EF4AB /* LSGMainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSGMainViewController.h; sourceTree = "<group>"; }; |
51 | 9934F23919307153005EF4AB /* LSGMainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSGMainViewController.m; sourceTree = "<group>"; }; | 53 | 9934F23919307153005EF4AB /* LSGMainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSGMainViewController.m; sourceTree = "<group>"; }; |
52 | 997523271930A42500F50D29 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; | 54 | 997523271930A42500F50D29 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; |
53 | 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; | 55 | 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; |
54 | 997523311930A52600F50D29 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; | 56 | 997523311930A52600F50D29 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; |
55 | /* End PBXFileReference section */ | 57 | /* End PBXFileReference section */ |
56 | 58 | ||
57 | /* Begin PBXFrameworksBuildPhase section */ | 59 | /* Begin PBXFrameworksBuildPhase section */ |
58 | 9934F1AB19303DC6005EF4AB /* Frameworks */ = { | 60 | 9934F1AB19303DC6005EF4AB /* Frameworks */ = { |
59 | isa = PBXFrameworksBuildPhase; | 61 | isa = PBXFrameworksBuildPhase; |
60 | buildActionMask = 2147483647; | 62 | buildActionMask = 2147483647; |
61 | files = ( | 63 | files = ( |
62 | 333626911C9BEFDC00839513 /* GameSDK.framework in Frameworks */, | 64 | 752A5F441CDC82C000C36131 /* libsqlite3.tbd in Frameworks */, |
63 | 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */, | 65 | 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */, |
64 | 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */, | 66 | 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */, |
65 | 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */, | 67 | 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */, |
66 | 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */, | 68 | 3309D8531C312F5900534E33 /* StoreKit.framework in Frameworks */, |
69 | 752A5F4A1CDC8B3200C36131 /* GameSDK.framework in Frameworks */, | ||
67 | 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */, | 70 | 997523321930A52600F50D29 /* MobileCoreServices.framework in Frameworks */, |
68 | 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */, | 71 | 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */, |
69 | 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */, | 72 | 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */, |
70 | 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */, | 73 | 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */, |
71 | 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */, | 74 | 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */, |
72 | 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */, | 75 | 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */, |
73 | ); | 76 | ); |
74 | runOnlyForDeploymentPostprocessing = 0; | 77 | runOnlyForDeploymentPostprocessing = 0; |
75 | }; | 78 | }; |
76 | /* End PBXFrameworksBuildPhase section */ | 79 | /* End PBXFrameworksBuildPhase section */ |
77 | 80 | ||
78 | /* Begin PBXGroup section */ | 81 | /* Begin PBXGroup section */ |
79 | 27019DC91A208B1500DA560D /* Configuration */ = { | 82 | 27019DC91A208B1500DA560D /* Configuration */ = { |
80 | isa = PBXGroup; | 83 | isa = PBXGroup; |
81 | children = ( | 84 | children = ( |
82 | 27019DCA1A208B1500DA560D /* Path.xcconfig */, | 85 | 27019DCA1A208B1500DA560D /* Path.xcconfig */, |
83 | 27019DCB1A208B1500DA560D /* Project.xcconfig */, | 86 | 27019DCB1A208B1500DA560D /* Project.xcconfig */, |
84 | ); | 87 | ); |
85 | path = Configuration; | 88 | path = Configuration; |
86 | sourceTree = "<group>"; | 89 | sourceTree = "<group>"; |
87 | }; | 90 | }; |
88 | 27019DCE1A208B2300DA560D /* Dependencies */ = { | 91 | 27019DCE1A208B2300DA560D /* Dependencies */ = { |
89 | isa = PBXGroup; | 92 | isa = PBXGroup; |
90 | children = ( | 93 | children = ( |
91 | ); | 94 | ); |
92 | name = Dependencies; | 95 | name = Dependencies; |
93 | sourceTree = "<group>"; | 96 | sourceTree = "<group>"; |
94 | }; | 97 | }; |
95 | 9934F1A519303DC6005EF4AB = { | 98 | 9934F1A519303DC6005EF4AB = { |
96 | isa = PBXGroup; | 99 | isa = PBXGroup; |
97 | children = ( | 100 | children = ( |
98 | 27019DC91A208B1500DA560D /* Configuration */, | 101 | 27019DC91A208B1500DA560D /* Configuration */, |
99 | 27019DCE1A208B2300DA560D /* Dependencies */, | 102 | 27019DCE1A208B2300DA560D /* Dependencies */, |
100 | 9934F1B719303DC6005EF4AB /* letsgameDemo */, | 103 | 9934F1B719303DC6005EF4AB /* letsgameDemo */, |
101 | 9934F1B019303DC6005EF4AB /* Frameworks */, | 104 | 9934F1B019303DC6005EF4AB /* Frameworks */, |
102 | 9934F1AF19303DC6005EF4AB /* Products */, | 105 | 9934F1AF19303DC6005EF4AB /* Products */, |
103 | ); | 106 | ); |
104 | sourceTree = "<group>"; | 107 | sourceTree = "<group>"; |
105 | }; | 108 | }; |
106 | 9934F1AF19303DC6005EF4AB /* Products */ = { | 109 | 9934F1AF19303DC6005EF4AB /* Products */ = { |
107 | isa = PBXGroup; | 110 | isa = PBXGroup; |
108 | children = ( | 111 | children = ( |
109 | 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */, | 112 | 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */, |
110 | ); | 113 | ); |
111 | name = Products; | 114 | name = Products; |
112 | sourceTree = "<group>"; | 115 | sourceTree = "<group>"; |
113 | }; | 116 | }; |
114 | 9934F1B019303DC6005EF4AB /* Frameworks */ = { | 117 | 9934F1B019303DC6005EF4AB /* Frameworks */ = { |
115 | isa = PBXGroup; | 118 | isa = PBXGroup; |
116 | children = ( | 119 | children = ( |
117 | 335EB07F1C5203DA003E6F44 /* GameSDK.framework */, | 120 | 752A5F491CDC8B3200C36131 /* GameSDK.framework */, |
121 | 752A5F431CDC82C000C36131 /* libsqlite3.tbd */, | ||
118 | 331262361C50B56800B1B435 /* VKBridge.framework */, | 122 | 331262361C50B56800B1B435 /* VKBridge.framework */, |
119 | 3309D97E1C4394C800534E33 /* VKSdk.framework */, | 123 | 3309D97E1C4394C800534E33 /* VKSdk.framework */, |
120 | 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */, | 124 | 3309D9781C438A5E00534E33 /* libz.1.2.5.tbd */, |
121 | 3309D8541C312F6500534E33 /* QuartzCore.framework */, | 125 | 3309D8541C312F6500534E33 /* QuartzCore.framework */, |
122 | 3309D8521C312F5900534E33 /* StoreKit.framework */, | 126 | 3309D8521C312F5900534E33 /* StoreKit.framework */, |
123 | 997523311930A52600F50D29 /* MobileCoreServices.framework */, | 127 | 997523311930A52600F50D29 /* MobileCoreServices.framework */, |
124 | 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */, | 128 | 9975232F1930A50F00F50D29 /* SystemConfiguration.framework */, |
125 | 997523271930A42500F50D29 /* CFNetwork.framework */, | 129 | 997523271930A42500F50D29 /* CFNetwork.framework */, |
126 | 9934F1B119303DC6005EF4AB /* Foundation.framework */, | 130 | 9934F1B119303DC6005EF4AB /* Foundation.framework */, |
127 | 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */, | 131 | 9934F1B319303DC6005EF4AB /* CoreGraphics.framework */, |
128 | 9934F1B519303DC6005EF4AB /* UIKit.framework */, | 132 | 9934F1B519303DC6005EF4AB /* UIKit.framework */, |
129 | ); | 133 | ); |
130 | name = Frameworks; | 134 | name = Frameworks; |
131 | sourceTree = "<group>"; | 135 | sourceTree = "<group>"; |
132 | }; | 136 | }; |
133 | 9934F1B719303DC6005EF4AB /* letsgameDemo */ = { | 137 | 9934F1B719303DC6005EF4AB /* letsgameDemo */ = { |
134 | isa = PBXGroup; | 138 | isa = PBXGroup; |
135 | children = ( | 139 | children = ( |
136 | 335EB0681C51D67D003E6F44 /* GameSDKResources.bundle */, | 140 | 752A5F411CDC826A00C36131 /* GameSDKResources.bundle */, |
137 | 9934F1C319303DC6005EF4AB /* Images.xcassets */, | 141 | 9934F1C319303DC6005EF4AB /* Images.xcassets */, |
138 | 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */, | 142 | 9934F1C019303DC6005EF4AB /* LSGAppDelegate.h */, |
139 | 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */, | 143 | 9934F1C119303DC6005EF4AB /* LSGAppDelegate.m */, |
140 | 9934F23819307153005EF4AB /* LSGMainViewController.h */, | 144 | 9934F23819307153005EF4AB /* LSGMainViewController.h */, |
141 | 9934F23919307153005EF4AB /* LSGMainViewController.m */, | 145 | 9934F23919307153005EF4AB /* LSGMainViewController.m */, |
142 | 9934F1B819303DC6005EF4AB /* Supporting Files */, | 146 | 9934F1B819303DC6005EF4AB /* Supporting Files */, |
143 | 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */, | 147 | 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */, |
144 | ); | 148 | ); |
145 | path = letsgameDemo; | 149 | path = letsgameDemo; |
146 | sourceTree = "<group>"; | 150 | sourceTree = "<group>"; |
147 | }; | 151 | }; |
148 | 9934F1B819303DC6005EF4AB /* Supporting Files */ = { | 152 | 9934F1B819303DC6005EF4AB /* Supporting Files */ = { |
149 | isa = PBXGroup; | 153 | isa = PBXGroup; |
150 | children = ( | 154 | children = ( |
151 | 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */, | 155 | 9934F1B919303DC6005EF4AB /* letsgameDemo-Info.plist */, |
152 | 9934F1BD19303DC6005EF4AB /* main.m */, | 156 | 9934F1BD19303DC6005EF4AB /* main.m */, |
153 | 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */, | 157 | 9934F1BF19303DC6005EF4AB /* GameSDKDemo-Prefix.pch */, |
154 | ); | 158 | ); |
155 | name = "Supporting Files"; | 159 | name = "Supporting Files"; |
156 | sourceTree = "<group>"; | 160 | sourceTree = "<group>"; |
157 | }; | 161 | }; |
158 | /* End PBXGroup section */ | 162 | /* End PBXGroup section */ |
159 | 163 | ||
160 | /* Begin PBXNativeTarget section */ | 164 | /* Begin PBXNativeTarget section */ |
161 | 9934F1AD19303DC6005EF4AB /* GameSDKDemo */ = { | 165 | 9934F1AD19303DC6005EF4AB /* GameSDKDemo */ = { |
162 | isa = PBXNativeTarget; | 166 | isa = PBXNativeTarget; |
163 | buildConfigurationList = 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */; | 167 | buildConfigurationList = 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */; |
164 | buildPhases = ( | 168 | buildPhases = ( |
165 | 9934F1AA19303DC6005EF4AB /* Sources */, | 169 | 9934F1AA19303DC6005EF4AB /* Sources */, |
166 | 9934F1AB19303DC6005EF4AB /* Frameworks */, | 170 | 9934F1AB19303DC6005EF4AB /* Frameworks */, |
167 | 9934F1AC19303DC6005EF4AB /* Resources */, | 171 | 9934F1AC19303DC6005EF4AB /* Resources */, |
168 | ); | 172 | ); |
169 | buildRules = ( | 173 | buildRules = ( |
170 | ); | 174 | ); |
171 | dependencies = ( | 175 | dependencies = ( |
172 | ); | 176 | ); |
173 | name = GameSDKDemo; | 177 | name = GameSDKDemo; |
174 | productName = letsgameDemo; | 178 | productName = letsgameDemo; |
175 | productReference = 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */; | 179 | productReference = 9934F1AE19303DC6005EF4AB /* GameSDKDemo.app */; |
176 | productType = "com.apple.product-type.application"; | 180 | productType = "com.apple.product-type.application"; |
177 | }; | 181 | }; |
178 | /* End PBXNativeTarget section */ | 182 | /* End PBXNativeTarget section */ |
179 | 183 | ||
180 | /* Begin PBXProject section */ | 184 | /* Begin PBXProject section */ |
181 | 9934F1A619303DC6005EF4AB /* Project object */ = { | 185 | 9934F1A619303DC6005EF4AB /* Project object */ = { |
182 | isa = PBXProject; | 186 | isa = PBXProject; |
183 | attributes = { | 187 | attributes = { |
184 | CLASSPREFIX = LSG; | 188 | CLASSPREFIX = LSG; |
185 | LastUpgradeCheck = 0710; | 189 | LastUpgradeCheck = 0710; |
186 | TargetAttributes = { | 190 | TargetAttributes = { |
187 | 9934F1AD19303DC6005EF4AB = { | 191 | 9934F1AD19303DC6005EF4AB = { |
188 | DevelopmentTeam = TU2VD6BENZ; | 192 | DevelopmentTeam = TU2VD6BENZ; |
189 | }; | 193 | }; |
190 | }; | 194 | }; |
191 | }; | 195 | }; |
192 | buildConfigurationList = 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */; | 196 | buildConfigurationList = 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */; |
193 | compatibilityVersion = "Xcode 3.2"; | 197 | compatibilityVersion = "Xcode 3.2"; |
194 | developmentRegion = English; | 198 | developmentRegion = English; |
195 | hasScannedForEncodings = 0; | 199 | hasScannedForEncodings = 0; |
196 | knownRegions = ( | 200 | knownRegions = ( |
197 | en, | 201 | en, |
198 | ); | 202 | ); |
199 | mainGroup = 9934F1A519303DC6005EF4AB; | 203 | mainGroup = 9934F1A519303DC6005EF4AB; |
200 | productRefGroup = 9934F1AF19303DC6005EF4AB /* Products */; | 204 | productRefGroup = 9934F1AF19303DC6005EF4AB /* Products */; |
201 | projectDirPath = ""; | 205 | projectDirPath = ""; |
202 | projectRoot = ""; | 206 | projectRoot = ""; |
203 | targets = ( | 207 | targets = ( |
204 | 9934F1AD19303DC6005EF4AB /* GameSDKDemo */, | 208 | 9934F1AD19303DC6005EF4AB /* GameSDKDemo */, |
205 | ); | 209 | ); |
206 | }; | 210 | }; |
207 | /* End PBXProject section */ | 211 | /* End PBXProject section */ |
208 | 212 | ||
209 | /* Begin PBXResourcesBuildPhase section */ | 213 | /* Begin PBXResourcesBuildPhase section */ |
210 | 9934F1AC19303DC6005EF4AB /* Resources */ = { | 214 | 9934F1AC19303DC6005EF4AB /* Resources */ = { |
211 | isa = PBXResourcesBuildPhase; | 215 | isa = PBXResourcesBuildPhase; |
212 | buildActionMask = 2147483647; | 216 | buildActionMask = 2147483647; |
213 | files = ( | 217 | files = ( |
214 | 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */, | 218 | 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */, |
215 | 335EB0691C51D67D003E6F44 /* GameSDKResources.bundle in Resources */, | 219 | 752A5F421CDC826A00C36131 /* GameSDKResources.bundle in Resources */, |
216 | 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */, | 220 | 9934F1C419303DC6005EF4AB /* Images.xcassets in Resources */, |
217 | ); | 221 | ); |
218 | runOnlyForDeploymentPostprocessing = 0; | 222 | runOnlyForDeploymentPostprocessing = 0; |
219 | }; | 223 | }; |
220 | /* End PBXResourcesBuildPhase section */ | 224 | /* End PBXResourcesBuildPhase section */ |
221 | 225 | ||
222 | /* Begin PBXSourcesBuildPhase section */ | 226 | /* Begin PBXSourcesBuildPhase section */ |
223 | 9934F1AA19303DC6005EF4AB /* Sources */ = { | 227 | 9934F1AA19303DC6005EF4AB /* Sources */ = { |
224 | isa = PBXSourcesBuildPhase; | 228 | isa = PBXSourcesBuildPhase; |
225 | buildActionMask = 2147483647; | 229 | buildActionMask = 2147483647; |
226 | files = ( | 230 | files = ( |
227 | 9934F1BE19303DC6005EF4AB /* main.m in Sources */, | 231 | 9934F1BE19303DC6005EF4AB /* main.m in Sources */, |
228 | 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */, | 232 | 9934F1C219303DC6005EF4AB /* LSGAppDelegate.m in Sources */, |
229 | 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */, | 233 | 9934F23A19307153005EF4AB /* LSGMainViewController.m in Sources */, |
230 | ); | 234 | ); |
231 | runOnlyForDeploymentPostprocessing = 0; | 235 | runOnlyForDeploymentPostprocessing = 0; |
232 | }; | 236 | }; |
233 | /* End PBXSourcesBuildPhase section */ | 237 | /* End PBXSourcesBuildPhase section */ |
234 | 238 | ||
235 | /* Begin XCBuildConfiguration section */ | 239 | /* Begin XCBuildConfiguration section */ |
236 | 9934F1D819303DC6005EF4AB /* Debug */ = { | 240 | 9934F1D819303DC6005EF4AB /* Debug */ = { |
237 | isa = XCBuildConfiguration; | 241 | isa = XCBuildConfiguration; |
238 | buildSettings = { | 242 | buildSettings = { |
239 | ALWAYS_SEARCH_USER_PATHS = YES; | 243 | ALWAYS_SEARCH_USER_PATHS = YES; |
240 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | 244 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; |
241 | CLANG_CXX_LIBRARY = "libc++"; | 245 | CLANG_CXX_LIBRARY = "libc++"; |
242 | CLANG_ENABLE_MODULES = YES; | 246 | CLANG_ENABLE_MODULES = YES; |
243 | CLANG_ENABLE_OBJC_ARC = YES; | 247 | CLANG_ENABLE_OBJC_ARC = YES; |
244 | CLANG_WARN_BOOL_CONVERSION = YES; | 248 | CLANG_WARN_BOOL_CONVERSION = YES; |
245 | CLANG_WARN_CONSTANT_CONVERSION = YES; | 249 | CLANG_WARN_CONSTANT_CONVERSION = YES; |
246 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | 250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; |
247 | CLANG_WARN_EMPTY_BODY = YES; | 251 | CLANG_WARN_EMPTY_BODY = YES; |
248 | CLANG_WARN_ENUM_CONVERSION = YES; | 252 | CLANG_WARN_ENUM_CONVERSION = YES; |
249 | CLANG_WARN_INT_CONVERSION = YES; | 253 | CLANG_WARN_INT_CONVERSION = YES; |
250 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | 254 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; |
251 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | 255 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; |
252 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | 256 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
253 | COPY_PHASE_STRIP = YES; | 257 | COPY_PHASE_STRIP = YES; |
254 | ENABLE_TESTABILITY = YES; | 258 | ENABLE_TESTABILITY = YES; |
255 | GCC_C_LANGUAGE_STANDARD = gnu99; | 259 | GCC_C_LANGUAGE_STANDARD = gnu99; |
256 | GCC_DYNAMIC_NO_PIC = NO; | 260 | GCC_DYNAMIC_NO_PIC = NO; |
257 | GCC_OPTIMIZATION_LEVEL = 0; | 261 | GCC_OPTIMIZATION_LEVEL = 0; |
258 | GCC_PREPROCESSOR_DEFINITIONS = ( | 262 | GCC_PREPROCESSOR_DEFINITIONS = ( |
259 | "DEBUG=1", | 263 | "DEBUG=1", |
260 | "$(inherited)", | 264 | "$(inherited)", |
261 | ); | 265 | ); |
262 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; | 266 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; |
263 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | 267 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; |
264 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | 268 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; |
265 | GCC_WARN_UNDECLARED_SELECTOR = YES; | 269 | GCC_WARN_UNDECLARED_SELECTOR = YES; |
266 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | 270 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
267 | GCC_WARN_UNUSED_FUNCTION = YES; | 271 | GCC_WARN_UNUSED_FUNCTION = YES; |
268 | GCC_WARN_UNUSED_VARIABLE = YES; | 272 | GCC_WARN_UNUSED_VARIABLE = YES; |
269 | HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; | 273 | HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; |
270 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; | 274 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; |
271 | ONLY_ACTIVE_ARCH = YES; | 275 | ONLY_ACTIVE_ARCH = YES; |
272 | SDKROOT = iphoneos; | 276 | SDKROOT = iphoneos; |
273 | }; | 277 | }; |
274 | name = Debug; | 278 | name = Debug; |
275 | }; | 279 | }; |
276 | 9934F1D919303DC6005EF4AB /* Release */ = { | 280 | 9934F1D919303DC6005EF4AB /* Release */ = { |
277 | isa = XCBuildConfiguration; | 281 | isa = XCBuildConfiguration; |
278 | buildSettings = { | 282 | buildSettings = { |
279 | ALWAYS_SEARCH_USER_PATHS = YES; | 283 | ALWAYS_SEARCH_USER_PATHS = YES; |
280 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | 284 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; |
281 | CLANG_CXX_LIBRARY = "libc++"; | 285 | CLANG_CXX_LIBRARY = "libc++"; |
282 | CLANG_ENABLE_MODULES = YES; | 286 | CLANG_ENABLE_MODULES = YES; |
283 | CLANG_ENABLE_OBJC_ARC = YES; | 287 | CLANG_ENABLE_OBJC_ARC = YES; |
284 | CLANG_WARN_BOOL_CONVERSION = YES; | 288 | CLANG_WARN_BOOL_CONVERSION = YES; |
285 | CLANG_WARN_CONSTANT_CONVERSION = YES; | 289 | CLANG_WARN_CONSTANT_CONVERSION = YES; |
286 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | 290 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; |
287 | CLANG_WARN_EMPTY_BODY = YES; | 291 | CLANG_WARN_EMPTY_BODY = YES; |
288 | CLANG_WARN_ENUM_CONVERSION = YES; | 292 | CLANG_WARN_ENUM_CONVERSION = YES; |
289 | CLANG_WARN_INT_CONVERSION = YES; | 293 | CLANG_WARN_INT_CONVERSION = YES; |
290 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | 294 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; |
291 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | 295 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; |
292 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | 296 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
293 | COPY_PHASE_STRIP = YES; | 297 | COPY_PHASE_STRIP = YES; |
294 | ENABLE_NS_ASSERTIONS = NO; | 298 | ENABLE_NS_ASSERTIONS = NO; |
295 | GCC_C_LANGUAGE_STANDARD = gnu99; | 299 | GCC_C_LANGUAGE_STANDARD = gnu99; |
296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | 300 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; |
297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | 301 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; |
298 | GCC_WARN_UNDECLARED_SELECTOR = YES; | 302 | GCC_WARN_UNDECLARED_SELECTOR = YES; |
299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | 303 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
300 | GCC_WARN_UNUSED_FUNCTION = YES; | 304 | GCC_WARN_UNUSED_FUNCTION = YES; |
301 | GCC_WARN_UNUSED_VARIABLE = YES; | 305 | GCC_WARN_UNUSED_VARIABLE = YES; |
302 | HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; | 306 | HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/**"; |
303 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; | 307 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; |
304 | ONLY_ACTIVE_ARCH = YES; | 308 | ONLY_ACTIVE_ARCH = YES; |
305 | SDKROOT = iphoneos; | 309 | SDKROOT = iphoneos; |
306 | VALIDATE_PRODUCT = YES; | 310 | VALIDATE_PRODUCT = YES; |
307 | }; | 311 | }; |
308 | name = Release; | 312 | name = Release; |
309 | }; | 313 | }; |
310 | 9934F1DB19303DC6005EF4AB /* Debug */ = { | 314 | 9934F1DB19303DC6005EF4AB /* Debug */ = { |
311 | isa = XCBuildConfiguration; | 315 | isa = XCBuildConfiguration; |
312 | baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; | 316 | baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; |
313 | buildSettings = { | 317 | buildSettings = { |
314 | ALWAYS_SEARCH_USER_PATHS = YES; | 318 | ALWAYS_SEARCH_USER_PATHS = YES; |
315 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 319 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
316 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; | 320 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; |
317 | CODE_SIGN_IDENTITY = "iPhone Developer"; | 321 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
318 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | 322 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
319 | ENABLE_BITCODE = NO; | 323 | ENABLE_BITCODE = NO; |
320 | FRAMEWORK_SEARCH_PATHS = ( | 324 | FRAMEWORK_SEARCH_PATHS = ( |
321 | "$(PROJECT_DIR)/../**", | 325 | "$(PROJECT_DIR)/../**", |
322 | "$(PROJECT_DIR)/letsgameDemo", | 326 | "$(PROJECT_DIR)/letsgameDemo", |
323 | ); | 327 | ); |
324 | GCC_PRECOMPILE_PREFIX_HEADER = YES; | 328 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
325 | GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; | 329 | GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; |
326 | HEADER_SEARCH_PATHS = ( | 330 | HEADER_SEARCH_PATHS = ( |
327 | "$(PROJECT_DIR)/../GameSDK.framework/**", | 331 | "$(PROJECT_DIR)/../GameSDK.framework/**", |
328 | "$(inherited)", | 332 | "$(inherited)", |
329 | "$(PROJECT_DIR)/letsgameDemo/**", | 333 | "$(PROJECT_DIR)/letsgameDemo/**", |
330 | "$(PROJECT_DIR)/../VKBridge.framework/**", | 334 | "$(PROJECT_DIR)/../VKBridge.framework/**", |
331 | ); | 335 | ); |
332 | INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; | 336 | INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; |
333 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; | 337 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; |
334 | LIBRARY_SEARCH_PATHS = ""; | 338 | LIBRARY_SEARCH_PATHS = ""; |
335 | ONLY_ACTIVE_ARCH = YES; | 339 | ONLY_ACTIVE_ARCH = YES; |
336 | PRIVATE_HEADERS_FOLDER_PATH = ""; | 340 | PRIVATE_HEADERS_FOLDER_PATH = ""; |
337 | PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; | 341 | PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; |
338 | PRODUCT_NAME = GameSDKDemo; | 342 | PRODUCT_NAME = GameSDKDemo; |
339 | PROVISIONING_PROFILE = "eb0168b9-d076-46ca-b632-badbf62beb18"; | 343 | PROVISIONING_PROFILE = "eb0168b9-d076-46ca-b632-badbf62beb18"; |
340 | PUBLIC_HEADERS_FOLDER_PATH = ""; | 344 | PUBLIC_HEADERS_FOLDER_PATH = ""; |
341 | WRAPPER_EXTENSION = app; | 345 | WRAPPER_EXTENSION = app; |
342 | }; | 346 | }; |
343 | name = Debug; | 347 | name = Debug; |
344 | }; | 348 | }; |
345 | 9934F1DC19303DC6005EF4AB /* Release */ = { | 349 | 9934F1DC19303DC6005EF4AB /* Release */ = { |
346 | isa = XCBuildConfiguration; | 350 | isa = XCBuildConfiguration; |
347 | baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; | 351 | baseConfigurationReference = 27019DCB1A208B1500DA560D /* Project.xcconfig */; |
348 | buildSettings = { | 352 | buildSettings = { |
349 | ALWAYS_SEARCH_USER_PATHS = YES; | 353 | ALWAYS_SEARCH_USER_PATHS = YES; |
350 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 354 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
351 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; | 355 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; |
352 | CODE_SIGN_IDENTITY = "iPhone Developer"; | 356 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
353 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | 357 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
354 | ENABLE_BITCODE = NO; | 358 | ENABLE_BITCODE = NO; |
355 | FRAMEWORK_SEARCH_PATHS = ( | 359 | FRAMEWORK_SEARCH_PATHS = ( |
356 | "$(PROJECT_DIR)/../**", | 360 | "$(PROJECT_DIR)/../**", |
357 | "$(PROJECT_DIR)/letsgameDemo", | 361 | "$(PROJECT_DIR)/letsgameDemo", |
358 | ); | 362 | ); |
359 | GCC_PRECOMPILE_PREFIX_HEADER = YES; | 363 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
360 | GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; | 364 | GCC_PREFIX_HEADER = "letsgameDemo/GameSDKDemo-Prefix.pch"; |
361 | HEADER_SEARCH_PATHS = ( | 365 | HEADER_SEARCH_PATHS = ( |
362 | "$(PROJECT_DIR)/../GameSDK.framework/**", | 366 | "$(PROJECT_DIR)/../GameSDK.framework/**", |
363 | "$(inherited)", | 367 | "$(inherited)", |
364 | "$(PROJECT_DIR)/letsgameDemo/**", | 368 | "$(PROJECT_DIR)/letsgameDemo/**", |
365 | "$(PROJECT_DIR)/../VKBridge.framework/**", | 369 | "$(PROJECT_DIR)/../VKBridge.framework/**", |
366 | ); | 370 | ); |
367 | INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; | 371 | INFOPLIST_FILE = "letsgameDemo/letsgameDemo-Info.plist"; |
368 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; | 372 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; |
369 | LIBRARY_SEARCH_PATHS = ""; | 373 | LIBRARY_SEARCH_PATHS = ""; |
370 | ONLY_ACTIVE_ARCH = YES; | 374 | ONLY_ACTIVE_ARCH = YES; |
371 | PRIVATE_HEADERS_FOLDER_PATH = ""; | 375 | PRIVATE_HEADERS_FOLDER_PATH = ""; |
372 | PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; | 376 | PRODUCT_BUNDLE_IDENTIFIER = test.kang.purchase; |
373 | PRODUCT_NAME = GameSDKDemo; | 377 | PRODUCT_NAME = GameSDKDemo; |
374 | PROVISIONING_PROFILE = "eb0168b9-d076-46ca-b632-badbf62beb18"; | 378 | PROVISIONING_PROFILE = "eb0168b9-d076-46ca-b632-badbf62beb18"; |
375 | PUBLIC_HEADERS_FOLDER_PATH = ""; | 379 | PUBLIC_HEADERS_FOLDER_PATH = ""; |
376 | WRAPPER_EXTENSION = app; | 380 | WRAPPER_EXTENSION = app; |
377 | }; | 381 | }; |
378 | name = Release; | 382 | name = Release; |
379 | }; | 383 | }; |
380 | /* End XCBuildConfiguration section */ | 384 | /* End XCBuildConfiguration section */ |
381 | 385 | ||
382 | /* Begin XCConfigurationList section */ | 386 | /* Begin XCConfigurationList section */ |
383 | 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */ = { | 387 | 9934F1A919303DC6005EF4AB /* Build configuration list for PBXProject "GameSDKDemo" */ = { |
384 | isa = XCConfigurationList; | 388 | isa = XCConfigurationList; |
385 | buildConfigurations = ( | 389 | buildConfigurations = ( |
386 | 9934F1D819303DC6005EF4AB /* Debug */, | 390 | 9934F1D819303DC6005EF4AB /* Debug */, |
387 | 9934F1D919303DC6005EF4AB /* Release */, | 391 | 9934F1D919303DC6005EF4AB /* Release */, |
388 | ); | 392 | ); |
389 | defaultConfigurationIsVisible = 0; | 393 | defaultConfigurationIsVisible = 0; |
390 | defaultConfigurationName = Release; | 394 | defaultConfigurationName = Release; |
391 | }; | 395 | }; |
392 | 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */ = { | 396 | 9934F1DA19303DC6005EF4AB /* Build configuration list for PBXNativeTarget "GameSDKDemo" */ = { |
393 | isa = XCConfigurationList; | 397 | isa = XCConfigurationList; |
394 | buildConfigurations = ( | 398 | buildConfigurations = ( |
395 | 9934F1DB19303DC6005EF4AB /* Debug */, | 399 | 9934F1DB19303DC6005EF4AB /* Debug */, |
396 | 9934F1DC19303DC6005EF4AB /* Release */, | 400 | 9934F1DC19303DC6005EF4AB /* Release */, |
397 | ); | 401 | ); |
398 | defaultConfigurationIsVisible = 0; | 402 | defaultConfigurationIsVisible = 0; |
399 | defaultConfigurationName = Release; | 403 | defaultConfigurationName = Release; |
400 | }; | 404 | }; |
401 | /* End XCConfigurationList section */ | 405 | /* End XCConfigurationList section */ |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/Js.txt
1 | ;(function() { | File was deleted | |
2 | var messagingIframe, | ||
3 | bridge = 'sdk', | ||
4 | CUSTOM_PROTOCOL_SCHEME = 'jscall'; | ||
5 | var appId = '%@' ,deviceId='%@'; | ||
6 | |||
7 | |||
8 | if (window[bridge]) { return } | ||
9 | |||
10 | // 创建隐藏的iframe | ||
11 | function _createQueueReadyIframe(doc) { | ||
12 | messagingIframe = doc.createElement('iframe'); | ||
13 | messagingIframe.style.display = 'none'; | ||
14 | doc.documentElement.appendChild(messagingIframe); | ||
15 | } | ||
16 | |||
17 | window[bridge] = {}; | ||
18 | |||
19 | window[bridge]['getAppId']=function getAppId(){ | ||
20 | //alert('appid='+appId); | ||
21 | return appId; | ||
22 | }; | ||
23 | window[bridge]['getDeviceId']=function getDeviceId(){ | ||
24 | return deviceId; | ||
25 | }; | ||
26 | |||
27 | window[bridge]['closeWin'] = function closeWin(uid,nick,sessionKey){ | ||
28 | document.location=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); | ||
29 | }; | ||
30 | //var methods = ["closeWin(uid,nick,sessionKey)"]; | ||
31 | //var methodsWithoutParam =["closeWin"]; | ||
32 | //for (var i=0;i<methods.length;i++){ | ||
33 | // var method = methods[i]; | ||
34 | // var methodWithoutParam = methodsWithoutParam[i]; | ||
35 | // 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);}"; | ||
36 | // eval(code); | ||
37 | //} | ||
38 | |||
39 | //创建iframe,必须在创建app之后,否则会出现死循环 | ||
40 | _createQueueReadyIframe(document); | ||
41 | //通知js开始初始化 | ||
42 | //alert('onInjectJsOver='+typeof(onInjectJsOver)); | ||
43 | if(typeof(onInjectJsOver)=='function') | ||
44 | onInjectJsOver(); | ||
45 | |||
46 | })(); |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/PayJs.txt
1 | ;(function() { | File was deleted | |
2 | var messagingIframe, | ||
3 | bridge = 'sdk', | ||
4 | CUSTOM_PROTOCOL_SCHEME = 'jscall'; | ||
5 | |||
6 | |||
7 | if (window[bridge]) { return } | ||
8 | |||
9 | // 创建隐藏的iframe | ||
10 | function _createQueueReadyIframe(doc) { | ||
11 | messagingIframe = doc.createElement('iframe'); | ||
12 | messagingIframe.style.display = 'none'; | ||
13 | doc.documentElement.appendChild(messagingIframe); | ||
14 | } | ||
15 | |||
16 | window[bridge] = {}; | ||
17 | |||
18 | |||
19 | window[bridge]['closeWin'] = function closeWin(oid,status,extraInfo){ | ||
20 | |||
21 | messagingIframe.src=CUSTOM_PROTOCOL_SCHEME + ':' + arguments.callee.name + ':' + encodeURIComponent(JSON.stringify(arguments)); | ||
22 | }; | ||
23 | //var methods = ["closeWin(uid,nick,sessionKey)"]; | ||
24 | //var methodsWithoutParam =["closeWin"]; | ||
25 | //for (var i=0;i<methods.length;i++){ | ||
26 | // var method = methods[i]; | ||
27 | // var methodWithoutParam = methodsWithoutParam[i]; | ||
28 | // 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);}"; | ||
29 | // eval(code); | ||
30 | //} | ||
31 | |||
32 | //创建iframe,必须在创建app之后,否则会出现死循环 | ||
33 | _createQueueReadyIframe(document); | ||
34 | //通知js开始初始化 | ||
35 | if(typeof(onInjectJsOver)=='function') | ||
36 | onInjectJsOver(); | ||
37 | |||
38 | })(); |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/en.strings
1 | "user_name_hint" = "Email"; | File was deleted | |
2 | "password_hint" = "Password"; | ||
3 | "quick_play" = "Guest Play"; | ||
4 | "login" = "Login"; | ||
5 | "gump_login" = "Login"; | ||
6 | "signup" = "Signup"; | ||
7 | "bind" = "Bound to email"; | ||
8 | "loading" = "Loading"; | ||
9 | "cancel" = "Cancel"; | ||
10 | "ok" = "OK"; | ||
11 | "illegal_uname_tip" = "Invalid Email"; | ||
12 | "illegal_pwd_tip" = "Invalid Password (6-20 characters)"; | ||
13 | "illegal_user_exist" = "Email has already used"; | ||
14 | "illegal_pwd_invalid" = "Password is incorrect, please try again"; | ||
15 | "illegal_user_not_exist" = "Invalid Email"; | ||
16 | "invalid_email" = "Please input your email"; | ||
17 | "login_fail" = "Login failed"; | ||
18 | "signup_fail" = "Signup failed"; | ||
19 | "bind_fail" = "Bound failed"; | ||
20 | "switch"="Switching accounts"; |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/FBLoginViewButton@2x.png
1.44 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/FBLoginViewButtonPressed@2x.png
1.29 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/bottom_bg@2x.png
1.39 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/header_bg@2x.png
1.13 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_fb@2x.png
2.67 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_pwd@2x.png
445 Bytes
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_user@2x.png
570 Bytes
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/ic_vk@2x.png
3.89 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_back@2x.png
1.58 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_back_pressed@2x.png
1.58 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_cancel@2x.png
3.11 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_cancel_pressed@2x.png
3.12 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/icon_close@2x.png
1.9 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/loading@2x.png
11.4 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/log@2x.png
20.4 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/images/or@2x.png
1.19 KB
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/pt-PT.strings
1 | "user_name_hint" = "Email"; | File was deleted | |
2 | "password_hint" = "Senha"; | ||
3 | "quick_login" = "jogo de hóspedes"; | ||
4 | "quick_play" = "Play"; | ||
5 | "login" = "Login"; | ||
6 | "gump_login" = "Login"; | ||
7 | "signup" = "Registrar"; | ||
8 | "bind" = "Vincular ao email"; | ||
9 | "loading" = "Carregando"; | ||
10 | "illegal_uname_tip" = "Email inválido"; | ||
11 | "illegal_pwd_tip" = "Senha Inválida (6-20 caracteres)"; | ||
12 | "illegal_user_exist" = "Email já está em uso"; | ||
13 | "illegal_pwd_invalid" = "Senha incorreta, favor tentar novamente"; | ||
14 | "illegal_user_not_exist" = "Email Inválido"; | ||
15 | "invalid_email" = "Favor inserir seu email"; | ||
16 | "login_fail" = "Login falhou"; | ||
17 | "signup_fail" = "Registrar falhou"; | ||
18 | "bind_fail" = "Vincular falhou"; | ||
19 | 1 | "user_name_hint" = "Email"; |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/ru.strings
1 | "user_name_hint" = "Почта"; | File was deleted | |
2 | "password_hint" = "Пароль"; | ||
3 | "quick_play" = "Guest Play"; | ||
4 | "login" = "Войти"; | ||
5 | "gump_login" = "Login"; | ||
6 | "signup" = "Зарегистрироваться"; | ||
7 | "bind" = "Bound to email"; | ||
8 | "loading" = "Загружаю..."; | ||
9 | "cancel" = "отменить"; | ||
10 | "ok" = "Ок"; | ||
11 | "illegal_uname_tip" = "Неверный электронный адрес "; | ||
12 | "illegal_pwd_tip" = "Неверный пароль (6-20 символов)"; | ||
13 | "illegal_user_exist" = "Почта используется"; | ||
14 | "illegal_pwd_invalid" = "Введите верный пароль"; | ||
15 | "illegal_user_not_exist" = "Почта не зарегистрирована"; | ||
16 | "invalid_email" = "Неверный электронный адрес"; | ||
17 | "login_fail" = "не удалось войти"; | ||
18 | "signup_fail" = "кандидату не"; | ||
19 | "bind_fail" = "Bound failed"; |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/th.strings
1 | "user_name_hint" = "อีเมลล์"; | File was deleted | |
2 | "password_hint" = "พาสเวิร์ด"; | ||
3 | "quick_play" = "การเล่นของผู้เข้าพัก"; | ||
4 | "quick_login" = "เริ่มเล่น"; | ||
5 | "login" = "ล็อกอิน"; | ||
6 | "gump_login" = "Login"; | ||
7 | "signup" = "ลงทะเบียน"; | ||
8 | "bind" = "ผูกอีเมลล์"; | ||
9 | "loading" = "กำลังโหลด"; | ||
10 | "illegal_uname_tip" = "อีเมลล์ไม่ถูกต้อง"; | ||
11 | "illegal_pwd_tip" = "พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)"; | ||
12 | "illegal_user_exist" = "อีเมลล์นี้ได้ถูกใช้แล้ว"; | ||
13 | "illegal_pwd_invalid" = "พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง"; | ||
14 | "illegal_user_not_exist" = "อีเมลล์ไม่ถูกต้อง"; | ||
15 | "invalid_email" = "ใส่อีเมลล์ของคุณ"; | ||
16 | "login_fail" = "ล็อกอินผิดพลาด"; | ||
17 | "signup_fail" = "ลงทะเบียนไม่สำเร็จ"; | ||
18 | "bind_fail" = "ผูกอีเมลล์ไม่สำเร็จ"; | ||
19 | 1 | "user_name_hint" = "อีเมลล์"; |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/zh-Hans.strings
1 | "user_name_hint" = "邮箱"; | File was deleted | |
2 | "password_hint" = "密码"; | ||
3 | "quick_login" = "一键进入"; | ||
4 | "quick_play" = "Play"; | ||
5 | "gump_login" = "Login"; | ||
6 | "login" = "登陆"; | ||
7 | "loginFacebook" = "登录Facebook"; | ||
8 | "signup" = "注册"; | ||
9 | "bind" = "绑定邮箱"; | ||
10 | "loading" = "加载中……"; | ||
11 | "illegal_uname_tip" = "邮箱不存在"; | ||
12 | "illegal_pwd_tip" = "密码格式不正确 (6–20字符)"; | ||
13 | "illegal_user_exist" = "邮箱已注册"; | ||
14 | "illegal_pwd_invalid" = "密码不正确,请重试"; | ||
15 | "illegal_user_not_exist" = "邮箱格式不正确"; | ||
16 | "invalid_email" = "请输入正确的邮箱"; | ||
17 | "login_fail" = "登录失败"; | ||
18 | "signup_fail" = "注册失败"; | ||
19 | "bind_fail" = "绑定失败"; | ||
20 | "GumptechLogin" = "甘普登录"; |
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/zh-Hant.strings
1 | "user_name_hint" = "郵箱"; | File was deleted | |
2 | "password_hint" = "密碼"; | ||
3 | "quick_login" = "一鍵進入"; | ||
4 | "quick_play" = "Play"; | ||
5 | "gump_login" = "Login"; | ||
6 | "login" = "登陸"; | ||
7 | "signup" = "註冊"; | ||
8 | "bind" = "綁定郵箱"; | ||
9 | "loading" = "加載中……"; | ||
10 | "illegal_uname_tip" = "郵箱不存在"; | ||
11 | "illegal_pwd_tip" = "密碼格式不爭取 (6–20字符)"; | ||
12 | "illegal_user_exist" = "郵箱已註冊"; | ||
13 | "illegal_pwd_invalid" = "密碼不正確,請重試"; | ||
14 | "illegal_user_not_exist" = "郵箱格式不正確"; | ||
15 | "invalid_email" = "請輸入正確的郵箱"; | ||
16 | "login_fail" = "登陸失敗"; | ||
17 | "signup_fail" = "註冊失敗"; | ||
18 | "bind_fail" = "綁定失敗"; |
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 | |||
14 | @implementation LSGAppDelegate | 13 | @implementation LSGAppDelegate |
15 | 14 | ||
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
17 | { | 16 | { |
18 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | 17 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
19 | 18 | ||
20 | LSGMainViewController *viewController = [[LSGMainViewController alloc] init]; | 19 | LSGMainViewController *viewController = [[LSGMainViewController alloc] init]; |
21 | self.window.rootViewController = viewController; | 20 | self.window.rootViewController = viewController; |
22 | [self.window addSubview:viewController.view]; | 21 | [self.window addSubview:viewController.view]; |
23 | 22 | ||
24 | self.window.backgroundColor = [UIColor whiteColor]; | 23 | self.window.backgroundColor = [UIColor whiteColor]; |
25 | [self.window makeKeyAndVisible]; | 24 | [self.window makeKeyAndVisible]; |
26 | 25 | [[LetsGameAPI instance] decideIsDebug:1]; | |
27 | [[UIApplication sharedApplication] setStatusBarHidden:YES]; | 26 | [[UIApplication sharedApplication] setStatusBarHidden:YES]; |
28 | [[LetsGameAPI instance] registeIapObserver]; | 27 | [[LetsGameAPI instance] registeIapObserver]; |
29 | return YES; | 28 | return YES; |
30 | } | 29 | } |
31 | 30 | ||
32 | - (void)applicationWillResignActive:(UIApplication *)application | 31 | - (void)applicationWillResignActive:(UIApplication *)application |
33 | { | 32 | { |
34 | // 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. | 33 | // 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. |
35 | // 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. | 34 | // 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. |
36 | } | 35 | } |
37 | 36 | ||
38 | - (void)applicationDidEnterBackground:(UIApplication *)application | 37 | - (void)applicationDidEnterBackground:(UIApplication *)application |
39 | { | 38 | { |
40 | // 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. | 39 | // 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. |
41 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | 40 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. |
42 | } | 41 | } |
43 | 42 | ||
44 | - (void)applicationWillEnterForeground:(UIApplication *)application | 43 | - (void)applicationWillEnterForeground:(UIApplication *)application |
45 | { | 44 | { |
46 | // 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. | 45 | // 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. |
47 | } | 46 | } |
48 | 47 | ||
49 | -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ | 48 | -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ |
50 | return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; | 49 | return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; |
51 | //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication]; | 50 | //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication]; |
52 | } | 51 | } |
53 | 52 | ||
53 | |||
54 | @end | 54 | @end |
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 | 27 | NSLog(@"i come in"); | |
28 | self.view.backgroundColor = [UIColor whiteColor]; | 28 | self.view.backgroundColor = [UIColor whiteColor]; |
29 | 29 | ||
30 | UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(110, 40, 100, 30)]; | 30 | UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(110, 40, 100, 30)]; |
31 | btn.backgroundColor = [UIColor orangeColor]; | 31 | btn.backgroundColor = [UIColor orangeColor]; |
32 | [btn setTitle:@"测试入口" forState:UIControlStateNormal]; | 32 | [btn setTitle:@"测试入口" forState:UIControlStateNormal]; |
33 | [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; | 33 | [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
34 | btn.titleLabel.font = [UIFont systemFontOfSize:15]; | 34 | btn.titleLabel.font = [UIFont systemFontOfSize:15]; |
35 | [btn addTarget:self action:@selector(onClickTest) forControlEvents:UIControlEventTouchUpInside]; | 35 | [btn addTarget:self action:@selector(onClickTest) forControlEvents:UIControlEventTouchUpInside]; |
36 | [self.view addSubview:btn]; | 36 | [self.view addSubview:btn]; |
37 | 37 | ||
38 | 38 | ||
39 | 39 | ||
40 | UIButton *bindtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 100, 100, 30)]; | 40 | UIButton *bindtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 100, 100, 30)]; |
41 | bindtn.backgroundColor = [UIColor orangeColor]; | 41 | bindtn.backgroundColor = [UIColor orangeColor]; |
42 | [bindtn setTitle:@"退出账号" forState:UIControlStateNormal]; | 42 | [bindtn setTitle:@"退出账号" forState:UIControlStateNormal]; |
43 | [bindtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; | 43 | [bindtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
44 | bindtn.titleLabel.font = [UIFont systemFontOfSize:15]; | 44 | bindtn.titleLabel.font = [UIFont systemFontOfSize:15]; |
45 | [bindtn addTarget:self action:@selector(onLogoutTest) forControlEvents:UIControlEventTouchUpInside]; | 45 | [bindtn addTarget:self action:@selector(onLogoutTest) forControlEvents:UIControlEventTouchUpInside]; |
46 | [self.view addSubview:bindtn]; | 46 | [self.view addSubview:bindtn]; |
47 | 47 | ||
48 | UIButton *payBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 160, 100, 30)]; | 48 | UIButton *payBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 160, 100, 30)]; |
49 | payBtn.backgroundColor = [UIColor orangeColor]; | 49 | payBtn.backgroundColor = [UIColor orangeColor]; |
50 | [payBtn setTitle:@"支付" forState:UIControlStateNormal]; | 50 | [payBtn setTitle:@"支付" forState:UIControlStateNormal]; |
51 | [payBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; | 51 | [payBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
52 | payBtn.titleLabel.font = [UIFont systemFontOfSize:15]; | 52 | payBtn.titleLabel.font = [UIFont systemFontOfSize:15]; |
53 | [payBtn addTarget:self action:@selector(onPayTest) forControlEvents:UIControlEventTouchUpInside]; | 53 | [payBtn addTarget:self action:@selector(onPayTest) forControlEvents:UIControlEventTouchUpInside]; |
54 | [self.view addSubview:payBtn]; | 54 | [self.view addSubview:payBtn]; |
55 | 55 | ||
56 | UIButton *iapBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 220, 100, 30)]; | 56 | UIButton *iapBtn = [[UIButton alloc] initWithFrame:CGRectMake(110, 220, 100, 30)]; |
57 | iapBtn.backgroundColor = [UIColor orangeColor]; | 57 | iapBtn.backgroundColor = [UIColor orangeColor]; |
58 | [iapBtn setTitle:@"IAP" forState:UIControlStateNormal]; | 58 | [iapBtn setTitle:@"IAP" forState:UIControlStateNormal]; |
59 | [iapBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; | 59 | [iapBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
60 | iapBtn.titleLabel.font = [UIFont systemFontOfSize:15]; | 60 | iapBtn.titleLabel.font = [UIFont systemFontOfSize:15]; |
61 | [iapBtn addTarget:self action:@selector(onIapTest) forControlEvents:UIControlEventTouchUpInside]; | 61 | [iapBtn addTarget:self action:@selector(onIapTest) forControlEvents:UIControlEventTouchUpInside]; |
62 | [self.view addSubview:iapBtn]; | 62 | [self.view addSubview:iapBtn]; |
63 | 63 | ||
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 = @"10047"; | 85 | [LetsGameAPI instance].appId = @"10047"; |
86 | [LetsGameAPI instance].appKey = @"eccd9f7dc92858b741132fda313130cf"; | 86 | [LetsGameAPI instance].appKey = @"eccd9f7dc92858b741132fda313130cf"; |
87 | [LetsGameAPI hiddenLogo:YES]; | 87 | [LetsGameAPI hiddenLogo:YES]; |
88 | // [LetsGameAPI disableFB:NO]; | 88 | // [LetsGameAPI disableFB:NO]; |
89 | NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]); | 89 | NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]); |
90 | //启用vk登录 | 90 | //启用vk登录 |
91 | VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; | 91 | VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; |
92 | [LetsGameAPI instance].vkBridge = vkBridge; | 92 | [LetsGameAPI instance].vkBridge = vkBridge; |
93 | 93 | ||
94 | [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { | 94 | [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { |
95 | self.sessionKey = sessionKey; | 95 | self.sessionKey = sessionKey; |
96 | self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type]; | 96 | self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type]; |
97 | }; | 97 | }; |
98 | [LetsGameAPI instance].dismissBlock = ^() { | 98 | [LetsGameAPI instance].dismissBlock = ^() { |
99 | self.resultLabel.text = @"dismiss without login"; | 99 | self.resultLabel.text = @"dismiss without login"; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | [[LetsGameAPI instance] showLoginView]; | 102 | [[LetsGameAPI instance] showLoginView]; |
103 | } | 103 | } |
104 | 104 | ||
105 | 105 | ||
106 | - (void)onLogoutTest { | 106 | - (void)onLogoutTest { |
107 | [LetsGameAPI instance].appId = @"10000"; | 107 | [LetsGameAPI instance].appId = @"10000"; |
108 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; | 108 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; |
109 | [[LetsGameAPI instance] logout]; | 109 | [[LetsGameAPI instance] logout]; |
110 | 110 | ||
111 | } | 111 | } |
112 | 112 | ||
113 | -(void)onPayTest{ | 113 | -(void)onPayTest{ |
114 | [LetsGameAPI instance].appId = @"10022"; | 114 | [LetsGameAPI instance].appId = @"10022"; |
115 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; | 115 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; |
116 | NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; | 116 | NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; |
117 | [payInfo setValue:@"100" forKey:@"serverId"]; | 117 | [payInfo setValue:@"100" forKey:@"serverId"]; |
118 | [payInfo setValue:@"10010" forKey:@"roleId"]; | 118 | [payInfo setValue:@"10010" forKey:@"roleId"]; |
119 | [payInfo setValue:@"1000" forKey:@"channelId"]; | 119 | [payInfo setValue:@"1000" forKey:@"channelId"]; |
120 | [payInfo setValue:@"10" forKey:@"amount"]; | 120 | [payInfo setValue:@"10" forKey:@"amount"]; |
121 | [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; | 121 | [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; |
122 | [payInfo setValue:@"元宝" forKey:@"product"]; | 122 | [payInfo setValue:@"元宝" forKey:@"product"]; |
123 | [payInfo setValue:self.sessionKey forKey:@"sessionKey"]; | 123 | [payInfo setValue:self.sessionKey forKey:@"sessionKey"]; |
124 | [[LetsGameAPI instance] pay:payInfo]; | 124 | [[LetsGameAPI instance] pay:payInfo]; |
125 | } | 125 | } |
126 | 126 | ||
127 | -(void)onIapTest{ | 127 | -(void)onIapTest{ |
128 | [LetsGameAPI instance].appId = @"10022"; | 128 | [LetsGameAPI instance].appId = @"10022"; |
129 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; | 129 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; |
130 | NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; | 130 | NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; |
131 | [payInfo setValue:@"5001" forKey:@"serverId"]; | 131 | [payInfo setValue:@"5001" forKey:@"serverId"]; |
132 | [payInfo setValue:@"10010" forKey:@"roleId"]; | 132 | [payInfo setValue:@"10010" forKey:@"roleId"]; |
133 | [payInfo setValue:@"1000" forKey:@"channelId"]; | 133 | [payInfo setValue:@"1000" forKey:@"channelId"]; |
134 | [payInfo setValue:@"10" forKey:@"amount"]; | 134 | [payInfo setValue:@"10" forKey:@"amount"]; |
135 | [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; | 135 | [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; |
136 | [payInfo setValue:@"test.product.1" forKey:@"product"]; | 136 | [payInfo setValue:@"test.product.1" forKey:@"product"]; |
137 | [[LetsGameAPI instance] iap:payInfo forUser:@"" handleCallback:^(NSString* orderId){ | 137 | [[LetsGameAPI instance] iap:payInfo forUser:@"" handleCallback:^(NSString* orderId){ |
138 | NSLog(@"IAP completed orderId of Gumptech:%@",orderId); | 138 | NSLog(@"IAP completed orderId of Gumptech:%@",orderId); |
139 | }]; | 139 | }]; |
140 | } | 140 | } |
141 | 141 | ||
142 | 142 | ||
143 | - (BOOL)shouldAutorotate { | 143 | - (BOOL)shouldAutorotate { |
144 | return YES; | 144 | return YES; |
145 | } | 145 | } |
146 | 146 | ||
147 | -(UIInterfaceOrientationMask)supportedInterfaceOrientations{ | 147 | -(UIInterfaceOrientationMask)supportedInterfaceOrientations{ |
148 | return UIInterfaceOrientationMaskAll; | 148 | return UIInterfaceOrientationMaskAll; |
149 | } | 149 | } |
150 | 150 | ||
151 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { | 151 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { |
152 | return YES; | 152 | return YES; |
153 | } | 153 | } |
154 | 154 | ||
155 | @end | 155 | @end |
156 | 156 |
ios/GameSDKResources.bundle/en.strings
1 | "user_name_hint" = "Email"; | 1 | "user_name_hint" = "Email"; |
2 | "password_hint" = "Password"; | 2 | "password_hint" = "Password"; |
3 | "quick_play" = "Guest Play"; | 3 | "quick_play" = "Guest Play"; |
4 | "login" = "Login"; | 4 | "login" = "Login"; |
5 | "gump_login" = "Login"; | 5 | "gump_login" = "Login"; |
6 | "signup" = "Signup"; | 6 | "signup" = "Signup"; |
7 | "bind" = "Bound to email"; | 7 | "bind" = "Bound to email"; |
8 | "loading" = "Loading"; | 8 | "loading" = "Loading"; |
9 | "cancel" = "Cancel"; | 9 | "cancel" = "Cancel"; |
10 | "ok" = "OK"; | 10 | "ok" = "OK"; |
11 | "illegal_uname_tip" = "Invalid Email"; | 11 | "illegal_uname_tip" = "Invalid Email"; |
12 | "illegal_pwd_tip" = "Invalid Password (6-20 characters)"; | 12 | "illegal_pwd_tip" = "Invalid Password (6-20 characters)"; |
13 | "illegal_user_exist" = "Email has already used"; | 13 | "illegal_user_exist" = "Email has already used"; |
14 | "illegal_pwd_invalid" = "Password is incorrect, please try again"; | 14 | "illegal_pwd_invalid" = "Password is incorrect, please try again"; |
15 | "illegal_user_not_exist" = "Invalid Email"; | 15 | "illegal_user_not_exist" = "Invalid Email"; |
16 | "invalid_email" = "Please input your email"; | 16 | "invalid_email" = "Please input your email"; |
17 | "login_fail" = "Login failed"; | 17 | "login_fail" = "Login failed"; |
18 | "signup_fail" = "Signup failed"; | 18 | "signup_fail" = "Signup failed"; |
19 | "bind_fail" = "Bound failed"; | 19 | "bind_fail" = "Bound failed"; |
20 | "switch"="Switching accounts"; | ||
20 | "switch"="Switching accounts"; | ||
21 | "change_password" = "Change Password"; | ||
22 | "current_password" = "Current Password"; | ||
23 | "change_password_notice" = "current passeord isn't required when reset password."; | ||
24 | "new_password" = "New Password"; | ||
25 | "Reset" = "Reset"; | ||
26 | "Confirm" = "Confirm"; | ||
27 | "Succeed" = "Succeed"; | ||
28 | "reset_fail" = "Reset fail, please contact customer service"; |
ios/GameSDKResources.bundle/ru.strings
1 | "user_name_hint" = "Почта"; | 1 | "user_name_hint" = "Почта"; |
2 | "password_hint" = "Пароль"; | 2 | "password_hint" = "Пароль"; |
3 | "quick_play" = "Guest Play"; | 3 | "quick_play" = "Guest Play"; |
4 | "login" = "Войти"; | 4 | "login" = "Войти"; |
5 | "gump_login" = "Login"; | 5 | "gump_login" = "Login"; |
6 | "signup" = "Зарегистрироваться"; | 6 | "signup" = "Зарегистрироваться"; |
7 | "bind" = "Bound to email"; | 7 | "bind" = "Bound to email"; |
8 | "loading" = "Загружаю..."; | 8 | "loading" = "Загружаю..."; |
9 | "cancel" = "отменить"; | 9 | "cancel" = "отменить"; |
10 | "ok" = "Ок"; | 10 | "ok" = "Ок"; |
11 | "illegal_uname_tip" = "Неверный электронный адрес "; | 11 | "illegal_uname_tip" = "Неверный электронный адрес "; |
12 | "illegal_pwd_tip" = "Неверный пароль (6-20 символов)"; | 12 | "illegal_pwd_tip" = "Неверный пароль (6-20 символов)"; |
13 | "illegal_user_exist" = "Почта используется"; | 13 | "illegal_user_exist" = "Почта используется"; |
14 | "illegal_pwd_invalid" = "Введите верный пароль"; | 14 | "illegal_pwd_invalid" = "Введите верный пароль"; |
15 | "illegal_user_not_exist" = "Почта не зарегистрирована"; | 15 | "illegal_user_not_exist" = "Почта не зарегистрирована"; |
16 | "invalid_email" = "Неверный электронный адрес"; | 16 | "invalid_email" = "Неверный электронный адрес"; |
17 | "login_fail" = "не удалось войти"; | 17 | "login_fail" = "не удалось войти"; |
18 | "signup_fail" = "кандидату не"; | 18 | "signup_fail" = "кандидату не"; |
19 | "bind_fail" = "Bound failed"; | ||
19 | "bind_fail" = "Bound failed"; | ||
20 | "change_password" = "Change Password1"; | ||
21 | "current_password" = "Current Password"; | ||
22 | "change_password_notice" = "current passeord isn't required when reset password."; | ||
23 | "new_password" = "New Password"; | ||
24 | "Reset" = "Reset"; | ||
25 | "Confirm" = "Confirm"; | ||
26 | "Succeed" = "Succeed"; | ||
27 | "reset_fail" = "Reset fail, please contact customer service"; |
ios/GameSDKResources.bundle/template.html
File was created | 1 | <!doctype html> | |
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 }} [{{x.level}}]-{{x.filename}}:{{x.line}}/{{x.function}} => {{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> |
ios/GameSDKResources.bundle/th.strings
1 | "user_name_hint" = "อีเมลล์"; | 1 | "user_name_hint" = "อีเมลล์"; |
2 | "password_hint" = "พาสเวิร์ด"; | 2 | "password_hint" = "พาสเวิร์ด"; |
3 | "quick_play" = "การเล่นของผู้เข้าพัก"; | 3 | "quick_play" = "การเล่นของผู้เข้าพัก"; |
4 | "quick_login" = "เริ่มเล่น"; | 4 | "quick_login" = "เริ่มเล่น"; |
5 | "login" = "ล็อกอิน"; | 5 | "login" = "ล็อกอิน"; |
6 | "gump_login" = "Login"; | 6 | "gump_login" = "Login"; |
7 | "signup" = "ลงทะเบียน"; | 7 | "signup" = "ลงทะเบียน"; |
8 | "bind" = "ผูกอีเมลล์"; | 8 | "bind" = "ผูกอีเมลล์"; |
9 | "loading" = "กำลังโหลด"; | 9 | "loading" = "กำลังโหลด"; |
10 | "illegal_uname_tip" = "อีเมลล์ไม่ถูกต้อง"; | 10 | "illegal_uname_tip" = "อีเมลล์ไม่ถูกต้อง"; |
11 | "illegal_pwd_tip" = "พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)"; | 11 | "illegal_pwd_tip" = "พาสเวิร์ดไม่ถูกต้อง(6-20 ตัวอักษร)"; |
12 | "illegal_user_exist" = "อีเมลล์นี้ได้ถูกใช้แล้ว"; | 12 | "illegal_user_exist" = "อีเมลล์นี้ได้ถูกใช้แล้ว"; |
13 | "illegal_pwd_invalid" = "พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง"; | 13 | "illegal_pwd_invalid" = "พาสเวิร์ดไม่ถูกต้อง, โปรดลองใหม่อีกครั้ง"; |
14 | "illegal_user_not_exist" = "อีเมลล์ไม่ถูกต้อง"; | 14 | "illegal_user_not_exist" = "อีเมลล์ไม่ถูกต้อง"; |
15 | "invalid_email" = "ใส่อีเมลล์ของคุณ"; | 15 | "invalid_email" = "ใส่อีเมลล์ของคุณ"; |
16 | "login_fail" = "ล็อกอินผิดพลาด"; | 16 | "login_fail" = "ล็อกอินผิดพลาด"; |
17 | "signup_fail" = "ลงทะเบียนไม่สำเร็จ"; | 17 | "signup_fail" = "ลงทะเบียนไม่สำเร็จ"; |
18 | "bind_fail" = "ผูกอีเมลล์ไม่สำเร็จ"; | 18 | "bind_fail" = "ผูกอีเมลล์ไม่สำเร็จ"; |
19 | "change_password" = "แก้ไขพาสเวิร์ด"; | ||
20 | "current_password" = "พาสเวิร์ดปัจจุบัน"; | ||
21 | "change_password_notice" = "ไม่สามารถตั้งพาสเวิร์ดซ้ำกับพาสเวิร์ดปัจจุบันได้."; | ||
22 | "new_password" = "พาสเวิร์ดใหม่"; | ||
23 | "Reset" = "ตั้งพาสเวิร์ด"; | ||
24 | "Confirm" = "ยืนยัน"; | ||
25 | "Succeed" = "แก้ไขสำเร็จ"; | ||
26 | "reset_fail" = "แก้ไขล้มเหลว,กรุณาติดต่อแอดมิน"; | ||
27 | "reset_success" = "ระบบได้แจ้งข้อมูลการเปลี่ยนพาสเวิร์ดไปยังอีเมลล์สำรอง กรุณาทำตามขั้นตอนในอีเมลล์."; | ||
19 | 28 |
ios/GameSDKResources.bundle/zh-Hans.strings
1 | "user_name_hint" = "邮箱"; | 1 | "user_name_hint" = "邮箱"; |
2 | "password_hint" = "密码"; | 2 | "password_hint" = "密码"; |
3 | "quick_login" = "一键进入"; | 3 | "quick_login" = "一键进入"; |
4 | "quick_play" = "Play"; | 4 | "quick_play" = "Play"; |
5 | "gump_login" = "Login"; | 5 | "gump_login" = "Login"; |
6 | "login" = "登陆"; | 6 | "login" = "登陆"; |
7 | "loginFacebook" = "登录Facebook"; | 7 | "loginFacebook" = "登录Facebook"; |
8 | "signup" = "注册"; | 8 | "signup" = "注册"; |
9 | "bind" = "绑定邮箱"; | 9 | "bind" = "绑定邮箱"; |
10 | "loading" = "加载中……"; | 10 | "loading" = "加载中……"; |
11 | "illegal_uname_tip" = "邮箱不存在"; | 11 | "illegal_uname_tip" = "邮箱不存在"; |
12 | "illegal_pwd_tip" = "密码格式不正确 (6–20字符)"; | 12 | "illegal_pwd_tip" = "密码格式不正确 (6–20字符)"; |
13 | "illegal_user_exist" = "邮箱已注册"; | 13 | "illegal_user_exist" = "邮箱已注册"; |
14 | "illegal_pwd_invalid" = "密码不正确,请重试"; | 14 | "illegal_pwd_invalid" = "密码不正确,请重试"; |
15 | "illegal_user_not_exist" = "邮箱格式不正确"; | 15 | "illegal_user_not_exist" = "邮箱格式不正确"; |
16 | "invalid_email" = "请输入正确的邮箱"; | 16 | "invalid_email" = "请输入正确的邮箱"; |
17 | "login_fail" = "登录失败"; | 17 | "login_fail" = "登录失败"; |
18 | "signup_fail" = "注册失败"; | 18 | "signup_fail" = "注册失败"; |
19 | "bind_fail" = "绑定失败"; | 19 | "bind_fail" = "绑定失败"; |
20 | "GumptechLogin" = "甘普登录"; | ||
20 | "GumptechLogin" = "甘普登录"; | ||
21 | "switch" = "切换账户"; | ||
22 | "change_password" = "修改密码"; | ||
23 | "current_password" = "当前密码"; | ||
24 | "change_password_notice" = "重置密码时课不填写当前密码"; | ||
25 | "new_password" = "新密码"; | ||
26 | "Reset" = "重置"; | ||
27 | "Confirm" = "确定修改"; | ||
28 | "Succeed" = "修改成功"; | ||
29 | "reset_fail" = "修改失败,请与客服联系"; | ||
30 | "reset_success" = "密码重置邮件已发送到指定账户邮箱,请按邮件内的提示操作"; |
ios/GameSDKResources.bundle/zh-Hant.strings
1 | "user_name_hint" = "郵箱"; | 1 | "user_name_hint" = "郵箱"; |
2 | "password_hint" = "密碼"; | 2 | "password_hint" = "密碼"; |
3 | "quick_login" = "一鍵進入"; | 3 | "quick_login" = "一鍵進入"; |
4 | "quick_play" = "Play"; | 4 | "quick_play" = "Play"; |
5 | "gump_login" = "Login"; | 5 | "gump_login" = "Login"; |
6 | "login" = "登陸"; | 6 | "login" = "登陸"; |
7 | "signup" = "註冊"; | 7 | "signup" = "註冊"; |
8 | "bind" = "綁定郵箱"; | 8 | "bind" = "綁定郵箱"; |
9 | "loading" = "加載中……"; | 9 | "loading" = "加載中……"; |
10 | "illegal_uname_tip" = "郵箱不存在"; | 10 | "illegal_uname_tip" = "郵箱不存在"; |
11 | "illegal_pwd_tip" = "密碼格式不爭取 (6–20字符)"; | 11 | "illegal_pwd_tip" = "密碼格式不爭取 (6–20字符)"; |
12 | "illegal_user_exist" = "郵箱已註冊"; | 12 | "illegal_user_exist" = "郵箱已註冊"; |
13 | "illegal_pwd_invalid" = "密碼不正確,請重試"; | 13 | "illegal_pwd_invalid" = "密碼不正確,請重試"; |
14 | "illegal_user_not_exist" = "郵箱格式不正確"; | 14 | "illegal_user_not_exist" = "郵箱格式不正確"; |
15 | "invalid_email" = "請輸入正確的郵箱"; | 15 | "invalid_email" = "請輸入正確的郵箱"; |
16 | "login_fail" = "登陸失敗"; | 16 | "login_fail" = "登陸失敗"; |
17 | "signup_fail" = "註冊失敗"; | 17 | "signup_fail" = "註冊失敗"; |
18 | "bind_fail" = "綁定失敗"; | ||
18 | "bind_fail" = "綁定失敗"; | ||
19 | "GumptechLogin" = "甘普登錄"; | ||
20 | "switch" = "切換賬號"; | ||
21 | "change_password" = "修改密碼"; | ||
22 | "current_password" = "當前密碼"; | ||
23 | "change_password_notice" = "重置密碼時可不填寫當前密碼"; | ||
24 | "new_password" = "新密碼"; | ||
25 | "Reset" = "重置"; | ||
26 | "Confirm" = "確定修改"; | ||
27 | "Succeed" = "修改成功"; | ||
28 | "reset_fail" = "修改失败,請與客服聯系"; |