Commit cfe98726291e32182b61902d74cea9d4d9b3cdaa
1 parent
cdbfa03fa8
Exists in
master
release3.3.5
登录按钮去gumptech文案 增加隐藏gumptech logo的方法 支付接口升级到v3,支持gump币支付
Showing 19 changed files with 28 additions and 16 deletions Side-by-side Diff
- doc/IOSDocument.md
- 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/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/gump.xcuserdatad/UserInterfaceState.xcuserstate
- ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/en.strings
- 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/LSGMainViewController.m
- ios/GameSDKResources.bundle/en.strings
- ios/GameSDKResources.bundle/pt-PT.strings
- ios/GameSDKResources.bundle/ru.strings
- ios/GameSDKResources.bundle/th.strings
- ios/GameSDKResources.bundle/zh-Hans.strings
- ios/GameSDKResources.bundle/zh-Hant.strings
doc/IOSDocument.md
... | ... | @@ -40,6 +40,9 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi |
40 | 40 | //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略 |
41 | 41 | //VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; |
42 | 42 | //[LetsGameAPI instance].vkBridge = vkBridge; |
43 | + | |
44 | + //隐藏gumptech的logo | |
45 | + [LetsGameAPI hiddenLogo:YES]; | |
43 | 46 | |
44 | 47 | [[LetsGameAPI instance] showLoginView]; // 弹出登录页面 |
45 | 48 |
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
... | ... | @@ -12,7 +12,9 @@ static BOOL isDisableFB = NO; |
12 | 12 | |
13 | 13 | static BOOL isEnableVK = NO; |
14 | 14 | |
15 | -static NSString *version = @"3.3.4"; | |
15 | +static BOOL hiddenLogo = NO; | |
16 | + | |
17 | +static NSString *version = @"3.3.5"; | |
16 | 18 | |
17 | 19 | @interface LetsGameAPI : NSObject |
18 | 20 | |
... | ... | @@ -34,6 +36,8 @@ static NSString *version = @"3.3.4"; |
34 | 36 | +(void)disableFB:(BOOL)isDisable; |
35 | 37 | +(BOOL)isFBDisable; |
36 | 38 | +(BOOL)isVKEnable; |
39 | ++(void)hiddenLogo:(BOOL)isHidden; | |
40 | ++(BOOL)isHiddenLogo; | |
37 | 41 | |
38 | 42 | - (void)logout; |
39 | 43 |
ios/GameSDK.zip
No preview for this file type
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.pbxproj
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3309D97E1C4394C800534E33 /* VKSdk.framework */; }; |
14 | 14 | 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 331262361C50B56800B1B435 /* VKBridge.framework */; }; |
15 | 15 | 335EB0691C51D67D003E6F44 /* GameSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 335EB0681C51D67D003E6F44 /* GameSDKResources.bundle */; }; |
16 | - 335EB0801C5203DA003E6F44 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 335EB07F1C5203DA003E6F44 /* GameSDK.framework */; }; | |
16 | + 3396626D1C892BAC00022866 /* GameSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 335EB07F1C5203DA003E6F44 /* GameSDK.framework */; }; | |
17 | 17 | 3CD53D9D1B81F37900E1B01A /* VKSdkResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3CD53D9C1B81F37900E1B01A /* VKSdkResources.bundle */; }; |
18 | 18 | 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B119303DC6005EF4AB /* Foundation.framework */; }; |
19 | 19 | 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9934F1B519303DC6005EF4AB /* UIKit.framework */; }; |
... | ... | @@ -59,6 +59,7 @@ |
59 | 59 | isa = PBXFrameworksBuildPhase; |
60 | 60 | buildActionMask = 2147483647; |
61 | 61 | files = ( |
62 | + 3396626D1C892BAC00022866 /* GameSDK.framework in Frameworks */, | |
62 | 63 | 331262371C50B56800B1B435 /* VKBridge.framework in Frameworks */, |
63 | 64 | 3309D9791C438A5E00534E33 /* libz.1.2.5.tbd in Frameworks */, |
64 | 65 | 3309D8551C312F6500534E33 /* QuartzCore.framework in Frameworks */, |
... | ... | @@ -67,7 +68,6 @@ |
67 | 68 | 997523301930A50F00F50D29 /* SystemConfiguration.framework in Frameworks */, |
68 | 69 | 3309D97F1C4394C800534E33 /* VKSdk.framework in Frameworks */, |
69 | 70 | 997523281930A42500F50D29 /* CFNetwork.framework in Frameworks */, |
70 | - 335EB0801C5203DA003E6F44 /* GameSDK.framework in Frameworks */, | |
71 | 71 | 9934F1B619303DC6005EF4AB /* UIKit.framework in Frameworks */, |
72 | 72 | 9934F1B219303DC6005EF4AB /* Foundation.framework in Frameworks */, |
73 | 73 | ); |
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/gump.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKDemo/letsgameDemo/GameSDKResources.bundle/en.strings
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/LSGMainViewController.m
... | ... | @@ -16,6 +16,8 @@ |
16 | 16 | @property (nonatomic, strong) UILabel *resultLabel; |
17 | 17 | |
18 | 18 | @property(nonatomic,strong) UIButton *vkActivityShareBtn; |
19 | + | |
20 | +@property(nonatomic,copy) NSString *sessionKey; | |
19 | 21 | @end |
20 | 22 | |
21 | 23 | @implementation LSGMainViewController |
... | ... | @@ -82,6 +84,7 @@ |
82 | 84 | NSLog(@"mainBundle:%@",[[LetsGameAPI instance] version]); |
83 | 85 | [LetsGameAPI instance].appId = @"10047"; |
84 | 86 | [LetsGameAPI instance].appKey = @"eccd9f7dc92858b741132fda313130cf"; |
87 | + [LetsGameAPI hiddenLogo:YES]; | |
85 | 88 | // [LetsGameAPI disableFB:NO]; |
86 | 89 | NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]); |
87 | 90 | //启用vk登录 |
... | ... | @@ -89,6 +92,7 @@ |
89 | 92 | // [LetsGameAPI instance].vkBridge = vkBridge; |
90 | 93 | |
91 | 94 | [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { |
95 | + self.sessionKey = sessionKey; | |
92 | 96 | self.resultLabel.text = [NSString stringWithFormat:@"login succ: userId = %@, sessionKey = %@, accountType = %ld", userId, sessionKey, type]; |
93 | 97 | }; |
94 | 98 | [LetsGameAPI instance].dismissBlock = ^() { |
... | ... | @@ -110,12 +114,13 @@ |
110 | 114 | [LetsGameAPI instance].appId = @"10022"; |
111 | 115 | [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab"; |
112 | 116 | NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; |
113 | - [payInfo setValue:@"5001" forKey:@"serverId"]; | |
117 | + [payInfo setValue:@"100" forKey:@"serverId"]; | |
114 | 118 | [payInfo setValue:@"10010" forKey:@"roleId"]; |
115 | 119 | [payInfo setValue:@"1000" forKey:@"channelId"]; |
116 | 120 | [payInfo setValue:@"10" forKey:@"amount"]; |
117 | 121 | [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; |
118 | 122 | [payInfo setValue:@"元宝" forKey:@"product"]; |
123 | + [payInfo setValue:self.sessionKey forKey:@"sessionKey"]; | |
119 | 124 | [[LetsGameAPI instance] pay:payInfo]; |
120 | 125 | } |
121 | 126 |
ios/GameSDKResources.bundle/en.strings
ios/GameSDKResources.bundle/pt-PT.strings
ios/GameSDKResources.bundle/ru.strings
ios/GameSDKResources.bundle/th.strings
ios/GameSDKResources.bundle/zh-Hans.strings
ios/GameSDKResources.bundle/zh-Hant.strings