feat(auth): 接入 Google 登录
- 登录页保留邮箱与 Google 两个入口,Google 按钮按官方规范改为白底四色图标 - 新增 GoogleAuthService:封装 initialize/authenticate,失败以结果对象返回 - AuthApi 增加 googleLogin,AuthController 增加 signInWithGoogle - iOS 补充 CFBundleURLTypes 与 GIDClientID,Bundle ID 统一为 com.stormg.lumadrama - Google 请求期间按钮显示转圈并禁止重复点击
This commit is contained in:
1 parent
7b90bd59b9
commit
67670d46b1
18 files changed
+335
-55
No files matched your search
@@ -32,6 +32,7 @@
|
||||
"authContinueGoogle": "Continue with Google",
|
||||
"authPhoneSignIn": "Phone sign in",
|
||||
"authEmailSignIn": "Email sign in",
|
||||
"authGoogleFailed": "Google sign in failed, please try again",
|
||||
"suspense": "Suspense",
|
||||
"romance": "Romance",
|
||||
"actionGenre": "Action",
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"authContinueGoogle": "Lanjutkan dengan Google",
|
||||
"authPhoneSignIn": "Masuk dengan ponsel",
|
||||
"authEmailSignIn": "Masuk dengan email",
|
||||
"authGoogleFailed": "Gagal masuk dengan Google, silakan coba lagi",
|
||||
"suspense": "Thriller",
|
||||
"romance": "Romantis",
|
||||
"actionGenre": "Aksi",
|
||||
|
||||
@@ -292,6 +292,12 @@ abstract class AppLocalizations {
|
||||
/// **'Email sign in'**
|
||||
String get authEmailSignIn;
|
||||
|
||||
/// No description provided for @authGoogleFailed.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Google sign in failed, please try again'**
|
||||
String get authGoogleFailed;
|
||||
|
||||
/// No description provided for @suspense.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
@@ -106,6 +106,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get authEmailSignIn => 'Email sign in';
|
||||
|
||||
@override
|
||||
String get authGoogleFailed => 'Google sign in failed, please try again';
|
||||
|
||||
@override
|
||||
String get suspense => 'Suspense';
|
||||
|
||||
|
||||
@@ -106,6 +106,9 @@ class AppLocalizationsId extends AppLocalizations {
|
||||
@override
|
||||
String get authEmailSignIn => 'Masuk dengan email';
|
||||
|
||||
@override
|
||||
String get authGoogleFailed => 'Gagal masuk dengan Google, silakan coba lagi';
|
||||
|
||||
@override
|
||||
String get suspense => 'Thriller';
|
||||
|
||||
|
||||
@@ -104,6 +104,9 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get authEmailSignIn => '邮箱登录';
|
||||
|
||||
@override
|
||||
String get authGoogleFailed => 'Google 登录失败,请稍后重试';
|
||||
|
||||
@override
|
||||
String get suspense => '悬疑';
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"authContinueGoogle": "使用 Google 继续",
|
||||
"authPhoneSignIn": "手机号登录",
|
||||
"authEmailSignIn": "邮箱登录",
|
||||
"authGoogleFailed": "Google 登录失败,请稍后重试",
|
||||
"suspense": "悬疑",
|
||||
"romance": "都市爱情",
|
||||
"actionGenre": "动作",
|
||||
|
||||
Reference in new issue
Block a user