Commit 45e6983e8ed18ac315e24a087d50506d8c0ab818
Exists in
master
Merge branch 'master' of http://123.59.74.8:81/document/gumptech-document.git
Showing 8 changed files Inline Diff
- ios/GameSDK.framework/Versions/A/GameSDK
- ios/GameSDK.zip
- ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m
- ios/GameSDKResources.bundle/en.strings
- ios/GameSDKResources.bundle/pt-PT.strings
- ios/GameSDKResources.bundle/ru.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.zip
No preview for this file type
ios/GameSDKDemo/letsgameDemo/LSGAppDelegate.m
1 | // | 1 | // |
2 | // LSGAppDelegate.m | 2 | // LSGAppDelegate.m |
3 | // letsgameDemo | 3 | // letsgameDemo |
4 | // | 4 | // |
5 | // Created by zhy on 14-5-24. | 5 | // Created by zhy on 14-5-24. |
6 | // | 6 | // |
7 | // | 7 | // |
8 | 8 | ||
9 | #import "LSGAppDelegate.h" | 9 | #import "LSGAppDelegate.h" |
10 | #import "LSGMainViewController.h" | 10 | #import "LSGMainViewController.h" |
11 | #import "LetsGameAPI.h" | 11 | #import "LetsGameAPI.h" |
12 | 12 | ||
13 | @implementation LSGAppDelegate | 13 | @implementation LSGAppDelegate |
14 | 14 | ||
15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
16 | { | 16 | { |
17 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | 17 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
18 | 18 | ||
19 | LSGMainViewController *viewController = [[LSGMainViewController alloc] init]; | 19 | LSGMainViewController *viewController = [[LSGMainViewController alloc] init]; |
20 | self.window.rootViewController = viewController; | 20 | self.window.rootViewController = viewController; |
21 | [self.window addSubview:viewController.view]; | 21 | [self.window addSubview:viewController.view]; |
22 | 22 | ||
23 | self.window.backgroundColor = [UIColor whiteColor]; | 23 | self.window.backgroundColor = [UIColor whiteColor]; |
24 | [self.window makeKeyAndVisible]; | 24 | [self.window makeKeyAndVisible]; |
25 | [[LetsGameAPI instance] decideIsDebug:1]; | 25 | // [[LetsGameAPI instance] decideIsDebug:1]; |
26 | [[UIApplication sharedApplication] setStatusBarHidden:YES]; | 26 | [[UIApplication sharedApplication] setStatusBarHidden:YES]; |
27 | [[LetsGameAPI instance] registeIapObserver]; | 27 | [[LetsGameAPI instance] registeIapObserver]; |
28 | return YES; | 28 | return YES; |
29 | } | 29 | } |
30 | 30 | ||
31 | - (void)applicationWillResignActive:(UIApplication *)application | 31 | - (void)applicationWillResignActive:(UIApplication *)application |
32 | { | 32 | { |
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. | 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. |
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. | 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. |
35 | } | 35 | } |
36 | 36 | ||
37 | - (void)applicationDidEnterBackground:(UIApplication *)application | 37 | - (void)applicationDidEnterBackground:(UIApplication *)application |
38 | { | 38 | { |
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. | 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. |
40 | // 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. |
41 | } | 41 | } |
42 | 42 | ||
43 | - (void)applicationWillEnterForeground:(UIApplication *)application | 43 | - (void)applicationWillEnterForeground:(UIApplication *)application |
44 | { | 44 | { |
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. | 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. |
46 | } | 46 | } |
47 | 47 | ||
48 | -(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{ |
49 | return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; | 49 | return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; |
50 | //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication]; | 50 | //return [[LetsGameAPI instance].vkBridge processOpenURL:url fromApplication:sourceApplication]; |
51 | } | 51 | } |
52 | 52 | ||
53 | 53 | ||
54 | @end | 54 | @end |
55 | 55 |
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" = "Play as Guest"; |
4 | "login" = "Login"; | 4 | "login" = "Login"; |
5 | "gump_login" = "Login"; | 5 | "gump_login" = "Login"; |
6 | "signup" = "Signup"; | 6 | "signup" = "Sign up"; |
7 | "bind" = "Bound to email"; | 7 | "bind" = "Bind your 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 been used"; |
14 | "illegal_pwd_invalid" = "Password is incorrect, please try again"; | 14 | "illegal_pwd_invalid" = "Incorrect password. 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" = "Bind Failed"; |
20 | "switch"="Switching accounts"; | 20 | "switch"="Switch Account"; |
21 | "change_password" = "Change Password"; | 21 | "change_password" = "Change Password"; |
22 | "current_password" = "Current Password"; | 22 | "current_password" = "Current Password"; |
23 | "change_password_notice" = "current passeord isn't required when reset password."; | 23 | "change_password_notice" = “Current passeord isn't required when reset password."; |
24 | "new_password" = "New Password"; | 24 | "new_password" = "New Password"; |
25 | "Reset" = "Reset"; | 25 | "Reset" = "Reset"; |
26 | "Confirm" = "Confirm"; | 26 | "Confirm" = "Confirm"; |
27 | "Succeed" = "Succeed"; | 27 | "Succeed" = "Succeed"; |
28 | "reset_fail" = "Reset fail, please contact customer service"; | ||
29 | "reset_success" = "An email has been sent to you, please follow the instructions in email."; |
ios/GameSDKResources.bundle/pt-PT.strings
1 | "user_name_hint" = "Email"; | 1 | "user_name_hint" = "Email"; |
2 | "password_hint" = "Senha"; | 2 | "password_hint" = "Senha"; |
3 | "quick_login" = "jogo de hóspedes"; | 3 | "quick_login" = "jogo de hóspedes"; |
4 | "quick_play" = "Play"; | 4 | "quick_play" = "Play"; |
5 | "login" = "Login"; | 5 | "login" = "Login"; |
6 | "gump_login" = "Login"; | 6 | "gump_login" = "Login"; |
7 | "signup" = "Registrar"; | 7 | "signup" = "Registrar"; |
8 | "bind" = "Vincular ao email"; | 8 | "bind" = "Vincular ao email"; |
9 | "loading" = "Carregando"; | 9 | "loading" = "Carregando"; |
10 | "illegal_uname_tip" = "Email inválido"; | 10 | "illegal_uname_tip" = "Email inválido"; |
11 | "illegal_pwd_tip" = "Senha Inválida (6-20 caracteres)"; | 11 | "illegal_pwd_tip" = "Senha Inválida (6-20 caracteres)"; |
12 | "illegal_user_exist" = "Email já está em uso"; | 12 | "illegal_user_exist" = "Email já está em uso"; |
13 | "illegal_pwd_invalid" = "Senha incorreta, favor tentar novamente"; | 13 | "illegal_pwd_invalid" = "Senha incorreta, favor tentar novamente"; |
14 | "illegal_user_not_exist" = "Email Inválido"; | 14 | "illegal_user_not_exist" = "Email Inválido"; |
15 | "invalid_email" = "Favor inserir seu email"; | 15 | "invalid_email" = "Favor inserir seu email"; |
16 | "login_fail" = "Login falhou"; | 16 | "login_fail" = "Login Falhou"; |
17 | "signup_fail" = "Registrar falhou"; | 17 | "signup_fail" = "Registrar Falhou"; |
18 | "bind_fail" = "Vincular falhou"; | 18 | "bind_fail" = "Vincular Falhou"; |
19 | 19 |
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" = "Play as Guest"; |
4 | "login" = "Войти"; | 4 | "login" = "Войти"; |
5 | "gump_login" = "Login"; | 5 | "gump_login" = "Login"; |
6 | "signup" = "Зарегистрироваться"; | 6 | "signup" = "Зарегистрироваться"; |
7 | "bind" = "Bound to email"; | 7 | "bind" = "Bind your 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" = "Bind Failed"; |
20 | "change_password" = "Change Password1"; | 20 | "change_password" = "Change Password"; |
21 | "current_password" = "Current Password"; | 21 | "current_password" = "Current Password"; |
22 | "change_password_notice" = "current passeord isn't required when reset password."; | 22 | "change_password_notice" = "Current passeord isn't required when reset password."; |
23 | "new_password" = "New Password"; | 23 | "new_password" = "New Password"; |
24 | "Reset" = "Reset"; | 24 | "Reset" = "Reset"; |
25 | "Confirm" = "Confirm"; | 25 | "Confirm" = "Confirm"; |
26 | "Succeed" = "Succeed"; | 26 | "Succeed" = "Succeed"; |
27 | "reset_fail" = "Reset fail, please contact customer service"; | ||
28 | "reset_success" = "An email has been sent to you, please follow the instructions in email."; |
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 as Guest"; |
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" = "切换账户"; | 21 | "switch" = "切换账户"; |
22 | "change_password" = "修改密码"; | 22 | "change_password" = "修改密码"; |
23 | "current_password" = "当前密码"; | 23 | "current_password" = "当前密码"; |
24 | "change_password_notice" = "重置密码时课不填写当前密码"; | 24 | "change_password_notice" = "重置密码时课不填写当前密码"; |
25 | "new_password" = "新密码"; | 25 | "new_password" = "新密码"; |
26 | "Reset" = "重置"; | 26 | "Reset" = "重置"; |
27 | "Confirm" = "确定修改"; | 27 | "Confirm" = "确定修改"; |
28 | "Succeed" = "修改成功"; | 28 | "Succeed" = "修改成功"; |
29 | "reset_fail" = "修改失败,请与客服联系"; | 29 | "reset_fail" = "修改失败,请与客服联系"; |
30 | "reset_success" = "密码重置邮件已发送到指定账户邮箱,请按邮件内的提示操作"; | 30 | "reset_success" = "密码重置邮件已发送到指定账户邮箱,请按邮件内的提示操作"; |
31 | 31 |
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 as Guest"; |
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" = "甘普登錄"; | 19 | "GumptechLogin" = "甘普登錄"; |
20 | "switch" = "切換賬號"; | 20 | "switch" = "切換賬號"; |
21 | "change_password" = "修改密碼"; | 21 | "change_password" = "修改密碼"; |
22 | "current_password" = "當前密碼"; | 22 | "current_password" = "當前密碼"; |
23 | "change_password_notice" = "重置密碼時可不填寫當前密碼"; | 23 | "change_password_notice" = "重置密碼時可不填寫當前密碼"; |
24 | "new_password" = "新密碼"; | 24 | "new_password" = "新密碼"; |
25 | "Reset" = "重置"; | 25 | "Reset" = "重置"; |
26 | "Confirm" = "確定修改"; | 26 | "Confirm" = "確定修改"; |
27 | "Succeed" = "修改成功"; | 27 | "Succeed" = "修改成功"; |
28 | "reset_fail" = "修改失败,請與客服聯系"; | 28 | "reset_fail" = "修改失败,請與客服聯系"; |
29 | "reset_success" = "密碼重置郵件已發送到指定賬戶郵箱,請按郵件內的提示操作"; | 29 | "reset_success" = "密碼重置郵件已發送到指定賬戶郵箱,請按郵件內的提示操作"; |