Commit 9c951e2e3d00175d21806fc135214bead98fa1de
1 parent
050bf63310
Exists in
master
wechat登录删除,增加德语适配
Showing 11 changed files with 65 additions and 61 deletions Side-by-side Diff
- IOSDocument.md
- README.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/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
- ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
- ios/GameSDKResources.bundle/de.strings
- ios/GameSDKResources.bundle/zh-Hans.strings
- ios/GameSDKResources.bundle/zh-Hant.strings
IOSDocument.md
... | ... | @@ -2,11 +2,11 @@ |
2 | 2 | |
3 | 3 | |
4 | 4 | 接入手册 |
5 | -V 3.5.23 | |
6 | -2018年9月6日 | |
5 | +V 3.5.24 | |
6 | +2018年9月20日 | |
7 | 7 | |
8 | 8 | ## 概述 |
9 | -#### 本SDK提供gump账号,fb账号,vk账号,Google帐号四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 | |
9 | +#### 本SDK提供gump账号,fb账号,vk账号,Google帐号,line 登录四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 | |
10 | 10 | |
11 | 11 | ## 接入步骤 |
12 | 12 | ### 1、添加Framework和资源文件 |
... | ... | @@ -14,8 +14,6 @@ V 3.5.23 |
14 | 14 | MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、GameSDK.framework、StoreKit.framework、GameSDKResources.bundle |
15 | 15 | + 以下为可选,若接入vk登录则需要添加以下framework和bundle,其中VKSdk.framework和VKSDKResources.bundle请自行从vk.com下载,使用1.3版本 |
16 | 16 | VKSdk.framework、VKBridge.framework、VKSDKResources.bundle |
17 | -+ 以下可选,若接入微信登陆则需要添加如下的framework: | |
18 | -libsqlite3.0.dylib, libc++.dylib, Security.framework, CoreTelephony.framework, CFNetwork.framework | |
19 | 17 | |
20 | 18 | |
21 | 19 | ### 2、引入头文件,设置build setting |
... | ... | @@ -34,9 +32,6 @@ Xcode 5: Open your application settings then select the Info tab. In the URL Typ |
34 | 32 |  |
35 | 33 | Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifier to vk+APP_ID |
36 | 34 |  |
37 | -3)配置URL-schema(weChat专用,不接入可以忽略) | |
38 | -选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id | |
39 | -选中“TARGETS”一栏,在“info”标签栏的“LSApplicationQueriesSchemes“添加weixin和wechat | |
40 | 35 | |
41 | 36 | ### 4、在工程里添加SDK登录代码 |
42 | 37 | |
... | ... | @@ -51,12 +46,6 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi |
51 | 46 | //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略 |
52 | 47 | VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; |
53 | 48 | [LetsGameAPI instance].vkBridge = vkBridge; |
54 | - //启用wechat的代码,需要注册,若不接入wechat,可以忽略 | |
55 | - [[LetsGameAPI instance] registerAppWeChatOfSuccess:^{ | |
56 | - NSLog(@"注册成功"); | |
57 | - } failure:^{ | |
58 | - NSLog(@"注册失败"); | |
59 | - }]; | |
60 | 49 | //隐藏fb登录 |
61 | 50 | [LetsGameAPI disableFB:YES]; |
62 | 51 | //隐藏Google登录 |
... | ... | @@ -65,8 +54,6 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi |
65 | 54 | [LetsGameAPI hiddenLogo:YES]; |
66 | 55 | //隐藏line登录 |
67 | 56 | [LetsGameAPI disableLine:YES]; |
68 | - //隐藏wechat登录 | |
69 | - [LetsGameAPI disableWeChat:YES]; | |
70 | 57 | |
71 | 58 | [[LetsGameAPI instance] showLoginView]; // 弹出登录页面 |
72 | 59 |
README.md
... | ... | @@ -2,11 +2,11 @@ |
2 | 2 | |
3 | 3 | |
4 | 4 | 接入手册 |
5 | -V 3.5.23 | |
6 | -2018年9月6日 | |
5 | +V 3.5.24 | |
6 | +2018年9月20日 | |
7 | 7 | |
8 | 8 | ## 概述 |
9 | -#### 本SDK提供gump账号,fb账号,vk账号,Google帐号四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 | |
9 | +#### 本SDK提供gump账号,fb账号,vk账号,Google帐号,line 登录四种账号登录,iap支付和第三方支付两种支付功能,其中gump账号登录和fb账号登录功能为必须接入,支付可根据需要选择性接入。 | |
10 | 10 | |
11 | 11 | ## 接入步骤 |
12 | 12 | ### 1、添加Framework和资源文件 |
... | ... | @@ -14,8 +14,6 @@ V 3.5.23 |
14 | 14 | MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、GameSDK.framework、StoreKit.framework、GameSDKResources.bundle |
15 | 15 | + 以下为可选,若接入vk登录则需要添加以下framework和bundle,其中VKSdk.framework和VKSDKResources.bundle请自行从vk.com下载,使用1.3版本 |
16 | 16 | VKSdk.framework、VKBridge.framework、VKSDKResources.bundle |
17 | -+ 以下可选,若接入微信登陆则需要添加如下的framework: | |
18 | -libsqlite3.0.dylib, libc++.dylib, Security.framework, CoreTelephony.framework, CFNetwork.framework | |
19 | 17 | |
20 | 18 | |
21 | 19 | ### 2、引入头文件,设置build setting |
... | ... | @@ -34,9 +32,6 @@ Xcode 5: Open your application settings then select the Info tab. In the URL Typ |
34 | 32 |  |
35 | 33 | Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifier to vk+APP_ID |
36 | 34 |  |
37 | -3)配置URL-schema(weChat专用,不接入可以忽略) | |
38 | -选中“TARGETS”一栏,在“info”标签栏的“URL type“添加“URL scheme”为你所注册的应用程序id | |
39 | -选中“TARGETS”一栏,在“info”标签栏的“LSApplicationQueriesSchemes“添加weixin和wechat | |
40 | 35 | |
41 | 36 | ### 4、在工程里添加SDK登录代码 |
42 | 37 | |
... | ... | @@ -51,13 +46,7 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi |
51 | 46 | //启用vk的代码,需要填入vk appId,若不接入vk,可以忽略 |
52 | 47 | VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; |
53 | 48 | [LetsGameAPI instance].vkBridge = vkBridge; |
54 | - //启用wechat的代码,需要注册,若不接入wechat,可以忽略 | |
55 | - [[LetsGameAPI instance] registerAppWeChatOfSuccess:^{ | |
56 | - NSLog(@"注册成功"); | |
57 | - } failure:^{ | |
58 | - NSLog(@"注册失败"); | |
59 | - }]; | |
60 | - //隐藏fb登录 | |
49 | + //隐藏fb登录 | |
61 | 50 | [LetsGameAPI disableFB:YES]; |
62 | 51 | //隐藏Google登录 |
63 | 52 | [LetsGameAPI disableGoogle:YES]; |
... | ... | @@ -65,8 +54,6 @@ Xcode 4: Open your Info.plist then add a new row URL Types. Set the URL identifi |
65 | 54 | [LetsGameAPI hiddenLogo:YES]; |
66 | 55 | //隐藏line登录 |
67 | 56 | [LetsGameAPI disableLine:YES]; |
68 | - //隐藏wechat登录 | |
69 | - [LetsGameAPI disableWeChat:YES]; | |
70 | 57 | |
71 | 58 | [[LetsGameAPI instance] showLoginView]; // 弹出登录页面 |
72 | 59 |
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
... | ... | @@ -13,8 +13,6 @@ static BOOL isEnableVK = NO; |
13 | 13 | |
14 | 14 | static BOOL isDisableLine = NO; |
15 | 15 | |
16 | -static BOOL isDisableWeChat = NO; | |
17 | - | |
18 | 16 | static BOOL isDisableGoogle = NO; |
19 | 17 | |
20 | 18 | static BOOL hiddenLogo = NO; |
... | ... | @@ -22,7 +20,7 @@ static BOOL hiddenLogo = NO; |
22 | 20 | //默认横屏 |
23 | 21 | static BOOL DeviceOrientationIsHorizontal = YES; |
24 | 22 | |
25 | -static NSString *version = @"3.5.23"; | |
23 | +static NSString *version = @"3.5.24"; | |
26 | 24 | |
27 | 25 | @interface LetsGameAPI : NSObject<UIApplicationDelegate> |
28 | 26 | |
... | ... | @@ -45,11 +43,9 @@ static NSString *version = @"3.5.23"; |
45 | 43 | |
46 | 44 | +(void)disableFB:(BOOL)isDisable; |
47 | 45 | +(void)disableGoogle:(BOOL)isDisable; |
48 | -+(void)disableWeChat:(BOOL)isDisable; | |
49 | 46 | +(void)disableLine:(BOOL)isDissable; |
50 | 47 | +(BOOL)isFBDisable; |
51 | 48 | +(BOOL)isVKEnable; |
52 | -+(BOOL)isWeChatDisable; | |
53 | 49 | +(BOOL)isGoogleDisable; |
54 | 50 | +(BOOL)isLineDisable; |
55 | 51 | +(void)hiddenLogo:(BOOL)isHidden; |
... | ... | @@ -60,11 +56,6 @@ static NSString *version = @"3.5.23"; |
60 | 56 | - (void)logout; |
61 | 57 | |
62 | 58 | - (void)hide; |
63 | -//是否安装微信 | |
64 | --(BOOL)isWeChatInstall; | |
65 | -//向微信注册应用 | |
66 | --(void)registerAppWeChatOfSuccess:(void (^)())success | |
67 | - failure:(void (^)())failure; | |
68 | 59 | |
69 | 60 | - (BOOL)handleOpenURL:(NSURL *)url |
70 | 61 | sourceApplication:(NSString *)sourceApplication; |
ios/GameSDK.zip
No preview for this file type
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.pbxproj
... | ... | @@ -239,8 +239,11 @@ |
239 | 239 | TargetAttributes = { |
240 | 240 | 9934F1AD19303DC6005EF4AB = { |
241 | 241 | DevelopmentTeam = NA5R6CY7V3; |
242 | - ProvisioningStyle = Manual; | |
242 | + ProvisioningStyle = Automatic; | |
243 | 243 | SystemCapabilities = { |
244 | + com.apple.GameCenter = { | |
245 | + enabled = 0; | |
246 | + }; | |
244 | 247 | com.apple.InAppPurchase = { |
245 | 248 | enabled = 0; |
246 | 249 | }; |
... | ... | @@ -402,7 +405,7 @@ |
402 | 405 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; |
403 | 406 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
404 | 407 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
405 | - CODE_SIGN_STYLE = Manual; | |
408 | + CODE_SIGN_STYLE = Automatic; | |
406 | 409 | DEVELOPMENT_TEAM = NA5R6CY7V3; |
407 | 410 | ENABLE_BITCODE = NO; |
408 | 411 | FRAMEWORK_SEARCH_PATHS = ( |
... | ... | @@ -426,8 +429,8 @@ |
426 | 429 | PRIVATE_HEADERS_FOLDER_PATH = ""; |
427 | 430 | PRODUCT_BUNDLE_IDENTIFIER = com.game.GumpSDK; |
428 | 431 | PRODUCT_NAME = GameSDKDemo; |
429 | - PROVISIONING_PROFILE = "372cbec4-6feb-49c5-9ce3-54831ae1316f"; | |
430 | - PROVISIONING_PROFILE_SPECIFIER = comgameGumpSDKDev; | |
432 | + PROVISIONING_PROFILE = ""; | |
433 | + PROVISIONING_PROFILE_SPECIFIER = ""; | |
431 | 434 | PUBLIC_HEADERS_FOLDER_PATH = ""; |
432 | 435 | WRAPPER_EXTENSION = app; |
433 | 436 | }; |
... | ... | @@ -442,7 +445,7 @@ |
442 | 445 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; |
443 | 446 | CODE_SIGN_IDENTITY = "iPhone Developer"; |
444 | 447 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
445 | - CODE_SIGN_STYLE = Manual; | |
448 | + CODE_SIGN_STYLE = Automatic; | |
446 | 449 | DEVELOPMENT_TEAM = NA5R6CY7V3; |
447 | 450 | ENABLE_BITCODE = NO; |
448 | 451 | FRAMEWORK_SEARCH_PATHS = ( |
... | ... | @@ -466,8 +469,8 @@ |
466 | 469 | PRIVATE_HEADERS_FOLDER_PATH = ""; |
467 | 470 | PRODUCT_BUNDLE_IDENTIFIER = com.game.GumpSDK; |
468 | 471 | PRODUCT_NAME = GameSDKDemo; |
469 | - PROVISIONING_PROFILE = "372cbec4-6feb-49c5-9ce3-54831ae1316f"; | |
470 | - PROVISIONING_PROFILE_SPECIFIER = comgameGumpSDKDev; | |
472 | + PROVISIONING_PROFILE = ""; | |
473 | + PROVISIONING_PROFILE_SPECIFIER = ""; | |
471 | 474 | PUBLIC_HEADERS_FOLDER_PATH = ""; |
472 | 475 | WRAPPER_EXTENSION = app; |
473 | 476 | }; |
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
... | ... | @@ -103,16 +103,9 @@ |
103 | 103 | // [LetsGameAPI disableFB:YES]; |
104 | 104 | // [LetsGameAPI disableGoogle:YES]; |
105 | 105 | // [LetsGameAPI disableLine:YES]; |
106 | - // [LetsGameAPI disableWeChat:YES]; | |
107 | 106 | //启用vk登录 |
108 | 107 | VKBridge *vkBridge = [[VKBridge alloc] initWithVKAppId:@"5029792"]; |
109 | 108 | [LetsGameAPI instance].vkBridge = vkBridge; |
110 | - //微信登陆 | |
111 | - [[LetsGameAPI instance] registerAppWeChatOfSuccess:^{ | |
112 | - NSLog(@"注册成功"); | |
113 | - } failure:^{ | |
114 | - NSLog(@"注册失败"); | |
115 | - }]; | |
116 | 109 | |
117 | 110 | [LetsGameAPI instance].succBlock = ^(NSString *userId, NSString *sessionKey, LSGAccountType type) { |
118 | 111 | self.sessionKey = sessionKey; |
... | ... | @@ -126,6 +119,7 @@ |
126 | 119 | [[LetsGameAPI instance] showLoginView]; |
127 | 120 | }else{ |
128 | 121 | NSLog(@"初始化失败"); |
122 | + self.resultLabel.text = @"初始化失败"; | |
129 | 123 | } |
130 | 124 | }]; |
131 | 125 |
ios/GameSDKResources.bundle/de.strings
... | ... | @@ -0,0 +1,42 @@ |
1 | +"user_name_hint" = "Konto"; | |
2 | +"password_hint" = "Passwort"; | |
3 | +"quick_login" = "Quick Login"; | |
4 | +"quick_play" = "Gast Login"; | |
5 | +"gump_login" = "Einloggen"; | |
6 | +"login" = "Per Passwort einloggen"; | |
7 | +"loginFacebook" = "Facebook einloggen"; | |
8 | +"signup" = "Registrieren"; | |
9 | +"bind" = "E-Mali binden"; | |
10 | +"loading" = "Loading……"; | |
11 | +"illegal_uname_tip" = "Ungültige E-Mail"; | |
12 | +"illegal_pwd_tip" = "Ungültiges Passwort (6-20 Zeichen)."; | |
13 | +"illegal_user_exist" = "Die E-Mail wurde bereits verwendet"; | |
14 | +"illegal_pwd_invalid" = "Passwortfehler"; | |
15 | +"illegal_user_not_exist" = "Ungültige E-Mail"; | |
16 | +"invalid_email" = "Bitte geben Sie eine gültige Email-Adresse ein"; | |
17 | +"login_fail" = "Login fehlgeschlagen"; | |
18 | +"signup_fail" = "Registrierung fehlgeschlagen"; | |
19 | +"bind_fail" = "Bindung fehlgeschlagen"; | |
20 | +"GumptechLogin" = "Gump Login"; | |
21 | +"switch" = "Konto wechseln"; | |
22 | +"change_password" = "Passwort zurücksetzen"; | |
23 | +"current_password" = "Aktuelles Passwort"; | |
24 | +"change_password_notice" = "Füllen Sie nicht das aktuelle Passwort aus, wenn Sie das Passwort zurücksetzen"; | |
25 | +"new_password" = "Neues Passwort"; | |
26 | +"Reset" = "Passwort vergessen? Klicken Sie hier zum Zurücksetzen"; | |
27 | +"Confirm" = "bestätigen"; | |
28 | +"Succeed" = "Reset erfolgreich"; | |
29 | +"reset_fail" = "Reset fehlgeschlagen, bitte kontaktieren Sie den Kundenservice"; | |
30 | +"reset_success" = "Bestätigte E-Mail wurde gesendet. Bitte setzen Sie das Passwort gemäß der E-Mail zurück"; | |
31 | +"other_login_style" = "Andere Anmeldemethoden"; | |
32 | +"account_pwd_invalid" = "Account and password is empty!"; | |
33 | +"new_old_password_diff" = "Die Passworte stimmen nicht überein."; | |
34 | +"Confirm_password" = "Passwort bestätigen"; | |
35 | +"forget_change_password" = "Passwort zurücksetzen oder vergessen?"; | |
36 | +"input_new_pwd" = "erneuert eingeben"; | |
37 | +"back" = "zurückgehen"; | |
38 | +"play_btn_notice" = "Sie haben als Gast angemeldet.Um Datenverluste zu vermeiden,gehen Sie ein Konto zu registrieren.Gastinformationen werden automatisch auf das neue Konto übertragen."; | |
39 | +"Notice" = "Tipps"; | |
40 | +"Continue" = "weiter einloggen"; | |
41 | +"Log_in" = "Konto Registrieren"; | |
42 | + |
ios/GameSDKResources.bundle/zh-Hans.strings
ios/GameSDKResources.bundle/zh-Hant.strings