Commit b27a5c1eb8cfdc51aa1336fd9a671ea3d7864242
1 parent
8efe969419
Exists in
master
Google login
Showing 8 changed files with 14 additions and 8 deletions Side-by-side Diff
- IOSDocument.md
- ios/GameSDK.framework/Versions/A/GameSDK
- ios/GameSDK.framework/Versions/A/Headers/LSGAccount.h
- ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
- ios/GameSDK.zip
- ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
- ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
- ios/GameSDKResources.bundle/images/ic_gg@2x.png
IOSDocument.md
| ... | ... | @@ -2,11 +2,11 @@ |
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | 接入手册 |
| 5 | -V 3.5.1 | |
| 6 | -2017年4月7日 | |
| 5 | +V 3.5.2 | |
| 6 | +2017年4月28日 | |
| 7 | 7 | |
| 8 | 8 | ## 概述 |
| 9 | -#### 本SDK提供gump账号,fb账号,vk账号三种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 | |
| 9 | +#### 本SDK提供gump账号,fb账号,vk账号,Google帐号四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 | |
| 10 | 10 | |
| 11 | 11 | ## 接入步骤 |
| 12 | 12 | ### 1、添加Framework和资源文件 |
| ... | ... | @@ -66,7 +66,8 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi |
| 66 | 66 | |
| 67 | 67 | //隐藏fb登录 |
| 68 | 68 | [LetsGameAPI disableFB:YES]; |
| 69 | - | |
| 69 | + //隐藏Google登录 | |
| 70 | + [LetsGameAPI disableGoogle:YES]; | |
| 70 | 71 | //隐藏gumptech的logo |
| 71 | 72 | [LetsGameAPI hiddenLogo:YES]; |
| 72 | 73 |
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
ios/GameSDK.framework/Versions/A/Headers/LSGAccount.h
| ... | ... | @@ -5,10 +5,11 @@ typedef NS_ENUM(NSInteger, LSGAccountType) { |
| 5 | 5 | LSGAccountTypeFBRegist = 2, |
| 6 | 6 | LSGAccountTypeQuickRegist = 4, |
| 7 | 7 | LSGAccountTypeVKRegist = 8, |
| 8 | + LSGAccountTypeGoogleRegist = 16, | |
| 8 | 9 | }; |
| 9 | 10 | |
| 10 | 11 | //判断是不是自动登录情况 |
| 11 | -#define LSGAccountTypeBaseLogin 16 | |
| 12 | +#define LSGAccountTypeBaseLogin 32 | |
| 12 | 13 | |
| 13 | 14 | @interface LSGAccount : NSObject |
| 14 | 15 |
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
| ... | ... | @@ -11,9 +11,11 @@ static BOOL isDisableFB = NO; |
| 11 | 11 | |
| 12 | 12 | static BOOL isEnableVK = NO; |
| 13 | 13 | |
| 14 | +static BOOL isDisableGoogle = NO; | |
| 15 | + | |
| 14 | 16 | static BOOL hiddenLogo = NO; |
| 15 | 17 | |
| 16 | -static NSString *version = @"3.5.1"; | |
| 18 | +static NSString *version = @"3.5.2"; | |
| 17 | 19 | |
| 18 | 20 | @interface LetsGameAPI : NSObject<UIApplicationDelegate> |
| 19 | 21 | |
| ... | ... | @@ -34,8 +36,10 @@ static NSString *version = @"3.5.1"; |
| 34 | 36 | - (void)showLoginViewInView:(UIView *)view; |
| 35 | 37 | |
| 36 | 38 | +(void)disableFB:(BOOL)isDisable; |
| 39 | ++(void)disableGoogle:(BOOL)isDisable; | |
| 37 | 40 | +(BOOL)isFBDisable; |
| 38 | 41 | +(BOOL)isVKEnable; |
| 42 | ++(BOOL)isGoogleDisable; | |
| 39 | 43 | +(void)hiddenLogo:(BOOL)isHidden; |
| 40 | 44 | +(BOOL)isHiddenLogo; |
| 41 | 45 |
ios/GameSDK.zip
No preview for this file type
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
| ... | ... | @@ -82,8 +82,8 @@ |
| 82 | 82 | |
| 83 | 83 | - (void)onClickTest { |
| 84 | 84 | |
| 85 | - [LetsGameAPI instance].appId = @"10056";//10047 | |
| 86 | - [LetsGameAPI instance].appKey = @"b59c21a078fde074a6750e91ed19fb21";//eccd9f7dc92858b741132fda313130cf | |
| 85 | + [LetsGameAPI instance].appId = @"10022";//10047 | |
| 86 | + [LetsGameAPI instance].appKey = @"93a27b0bd99bac3e68a440b48aa421ab";//eccd9f7dc92858b741132fda313130cf | |
| 87 | 87 | [LetsGameAPI hiddenLogo:YES]; |
| 88 | 88 | // [LetsGameAPI disableFB:NO]; |
| 89 | 89 | NSLog(@"sdk version:%@",[[LetsGameAPI instance] version]); |
ios/GameSDKResources.bundle/images/ic_gg@2x.png
4.98 KB