aboutsummaryrefslogtreecommitdiffhomepage
path: root/AuthSamples
diff options
context:
space:
mode:
authorGravatar Xiangtian Dai <xiangtian@google.com>2017-07-28 17:43:33 -0700
committerGravatar GitHub <noreply@github.com>2017-07-28 17:43:33 -0700
commit925a1cc0a27a3afb17b862a0740b56e56c3ae669 (patch)
treeda6935aa77f50ae17e0b6f60425c8bd0f1c142e6 /AuthSamples
parent0abd3444344ea134b0593fcaaf428e82cd190e12 (diff)
Merge from private/auth-master (#159)
* Adds passing state and continue URL in OOBCodes actions. (#82) * Adds actionCodeSettings class (#83) * Adds FIRActionCodeSettings class * Removes iOSAppStoreId to reflect update spec. * Adds “reset password in app” to sample app (#84) * Adds “reset password in app” to sample app * Addresses comments * Addresses comments * Adds @param documentation for actionCodeSettings (#85) Adds @param documentation for actionCodeSettings in FIRGetOOBConfirmationCodeRequest. * Adds request configuration class Adds a class that will comprise of all configurations needed to make a request to the Firebase Auth backend; including APIKey and Language code in the future. * Addresses comments. * Adds Setting Language Add Setting Language Feature to Firebase Auth. - Only adds support for two languages (English and Spanish) in this change. (Also supports two languages in test), more to come after this change is accepted. - For now sample app tests language setting only when using “reset password in app” option, the email sent will be in the current app language. Additional tests to come after change is accepted. * Amends code for unit tests Will add more comprehensive testing when code accepted. * Ecodes strings files in UTF-8 * Addresses comments * Addresses comments * Remove comments in .strings * Adds remaining TC languages to Firebase Auth. * Add line break to .strings files * remove language code english fallback Remove the fallback that sends “en” as the language code to the backend if no language code is specified. * addresses comment * Fixes FIRSecureToken Crash Integrates FIRSecureTokenService and FIRSecureTokenRequest with FIRAuthRequestConfiguration. * Addresses comment * Add auth language input Adds Auth language input to the Sample App in preparation for manual testing. * removes unnecessary comment * address comments * Add app language option Allow user to set the current app language code as the auth language code. This is in preparation for manual testing before release. * Addresses Comment * Adds missing continue URI Adds missing continue URL to Firebear error handling. * Remove unused line Removes unused line from FIRPhoneAuthProvider.m * Moves the new public header to the right place. * Fixes broken macOS build. * Removes trailing spaces. * Addresses review comments.
Diffstat (limited to 'AuthSamples')
-rw-r--r--AuthSamples/README.md4
-rw-r--r--AuthSamples/Sample/ApplicationDelegate.m17
-rw-r--r--AuthSamples/Sample/AuthCredentialsTemplate.h1
-rw-r--r--AuthSamples/Sample/Images.xcassets/AppIcon.appiconset/Contents.json20
-rw-r--r--AuthSamples/Sample/MainViewController.h7
-rw-r--r--AuthSamples/Sample/MainViewController.m117
-rw-r--r--AuthSamples/Sample/SampleTemplate.entitlements (renamed from AuthSamples/Sample/Sample.entitlements)4
-rw-r--r--AuthSamples/Sample/SettingsViewController.m23
-rw-r--r--AuthSamples/Sample/en-GB.lproj/Localizable.strings2
-rw-r--r--AuthSamples/Sample/es-MX.lproj/Localizable.strings2
-rw-r--r--AuthSamples/Sample/fr-FR.lproj/Localizable.strings2
-rw-r--r--AuthSamples/Sample/ru-RU.lproj/Localizable.strings2
-rw-r--r--AuthSamples/Samples.xcodeproj/project.pbxproj21
13 files changed, 216 insertions, 6 deletions
diff --git a/AuthSamples/README.md b/AuthSamples/README.md
index 66c21e1..fb0e660 100644
--- a/AuthSamples/README.md
+++ b/AuthSamples/README.md
@@ -30,6 +30,10 @@ This feature is for advanced testing.
Please follow the instructions in [Sample/ApplicationTemplate.plist](Sample/ApplicationTemplate.plist) to generate the right Application.plist file
+### Sample.entitlements file
+
+In order to test the "Reset Password In App" feature you will need to create a dynamic link for your Firebase project in the Dynamic Links section of the Firebase Console. Once the link is created, please copy the contents of [Sample/SampleTemplate.entitlements](Sample/SampleTemplate.entitlements) into a file named `Sample/Sample.entitlements` and replace `$KAPP_LINKS_DOMAIN` with your own relevant appLinks domain. Your appLinks domains are domains that your app will handle as universal links, in this particular case you can obtain this domain from the aforementioned Dynamic Links section of the Firebase Console.
+
#### Getting your own Credential files
Please follow the instructions in [Sample/AuthCredentialsTemplate.h](Sample/AuthCredentialsTemplate.h) to generate the AuthCredentials.h file.
diff --git a/AuthSamples/Sample/ApplicationDelegate.m b/AuthSamples/Sample/ApplicationDelegate.m
index 594327f..3b49862 100644
--- a/AuthSamples/Sample/ApplicationDelegate.m
+++ b/AuthSamples/Sample/ApplicationDelegate.m
@@ -28,7 +28,10 @@
*/
static __weak id<OpenURLDelegate> gOpenURLDelegate;
-@implementation ApplicationDelegate
+@implementation ApplicationDelegate {
+ // The main view controller of the sample app.
+ MainViewController *_sampleAppMainViewController;
+}
+ (void)setOpenURLDelegate:(nullable id<OpenURLDelegate>)openURLDelegate {
gOpenURLDelegate = openURLDelegate;
@@ -44,9 +47,10 @@ static __weak id<OpenURLDelegate> gOpenURLDelegate;
// Load and present the UI:
UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- window.rootViewController =
+ _sampleAppMainViewController =
[[MainViewController alloc] initWithNibName:NSStringFromClass([MainViewController class])
bundle:nil];
+ window.rootViewController = _sampleAppMainViewController;
self.window = window;
[self.window makeKeyAndVisible];
@@ -72,4 +76,13 @@ static __weak id<OpenURLDelegate> gOpenURLDelegate;
return NO;
}
+- (BOOL)application:(UIApplication *)application
+continueUserActivity:(NSUserActivity *)userActivity
+ restorationHandler:(void (^)(NSArray *))restorationHandler {
+ if (userActivity.webpageURL) {
+ return [_sampleAppMainViewController handleIncomingLinkWithURL:userActivity.webpageURL];
+ }
+ return NO;
+}
+
@end
diff --git a/AuthSamples/Sample/AuthCredentialsTemplate.h b/AuthSamples/Sample/AuthCredentialsTemplate.h
index 0c9708a..d0278b1 100644
--- a/AuthSamples/Sample/AuthCredentialsTemplate.h
+++ b/AuthSamples/Sample/AuthCredentialsTemplate.h
@@ -30,3 +30,4 @@ to obtain such an id.
*/
#define KFACEBOOK_APP_ID $KFACEBOOK_APP_ID
+#define KCONTINUE_URL $KCONTINUE_URL
diff --git a/AuthSamples/Sample/Images.xcassets/AppIcon.appiconset/Contents.json b/AuthSamples/Sample/Images.xcassets/AppIcon.appiconset/Contents.json
index 4f6afa6..328f185 100644
--- a/AuthSamples/Sample/Images.xcassets/AppIcon.appiconset/Contents.json
+++ b/AuthSamples/Sample/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -1,6 +1,16 @@
{
"images" : [
{
+ "idiom" : "iphone",
+ "size" : "20x20",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "20x20",
+ "scale" : "3x"
+ },
+ {
"size" : "29x29",
"idiom" : "iphone",
"filename" : "logo_avatar_square_grey_color_1x_ios_21in29dp-1.png",
@@ -55,6 +65,16 @@
"scale" : "3x"
},
{
+ "idiom" : "ipad",
+ "size" : "20x20",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "ipad",
+ "size" : "20x20",
+ "scale" : "2x"
+ },
+ {
"size" : "29x29",
"idiom" : "ipad",
"filename" : "logo_avatar_square_grey_color_1x_ios_21in29dp.png",
diff --git a/AuthSamples/Sample/MainViewController.h b/AuthSamples/Sample/MainViewController.h
index d2390b1..a4d3583 100644
--- a/AuthSamples/Sample/MainViewController.h
+++ b/AuthSamples/Sample/MainViewController.h
@@ -82,4 +82,11 @@ extern NSString *const kCreateUserAccessibilityID;
*/
- (IBAction)memoryClear;
+/** @fn handleIncomingLinkWithURL:
+ @brief Handles an incoming link to trigger the appropriate OOBCode if possible.
+ @param URL The webURL of the incoming universal link.
+ @return Boolean value indicating whether the incoming link could be handled or not.
+ */
+- (BOOL)handleIncomingLinkWithURL:(NSURL *)URL;
+
@end
diff --git a/AuthSamples/Sample/MainViewController.m b/AuthSamples/Sample/MainViewController.m
index 6171da2..8ee1b39 100644
--- a/AuthSamples/Sample/MainViewController.m
+++ b/AuthSamples/Sample/MainViewController.m
@@ -18,6 +18,7 @@
#import <objc/runtime.h>
+#import "AuthCredentials.h"
#import "FIRAdditionalUserInfo.h"
#import "FirebaseCommunity/FIRApp.h"
#import "FirebaseCommunity/FIRAppInternal.h"
@@ -55,10 +56,11 @@ static NSString *const kTokenRefreshedAlertTitle = @"Token";
*/
static NSString *const kTokenRefreshErrorAlertTitle = @"Get Token Error";
-/** @var kSettingsButtonText
- @brief The text of the "Settings" button.
+/** @var kSettingsButtonTextDesription
+ @brief The description for the text of the "Settings" button.
*/
-static NSString *const kSettingsButtonText = @"[Sample App Settings]";
+static NSString *const kSettingsButtonTextDesription =
+ @"The button text to open sample app settings";
/** @var kUserInfoButtonText
@brief The text of the "Show User Info" button.
@@ -265,6 +267,11 @@ static NSString *const kRequestPasswordReset = @"Send Password Reset Email";
*/
static NSString *const kResetPassword = @"Reset Password";
+/** @var kResetPasswordInApp
+ @brief The text of the "Password Reset" button.
+ */
+static NSString *const kResetPasswordInApp = @"Reset Password In app";
+
/** @var kCheckActionCode
@brief The text of the "Check action code" button.
*/
@@ -465,6 +472,11 @@ static NSString *const kSafariFacebookSignOutMessagePrompt = @"This automated te
static NSString *const kUnlinkAccountMessagePrompt = @"Sign into gmail with an email address "
"that has not been linked to this sample application before. Delete account if necessary.";
+/** @var kPasswordResetAction
+ @brief The value for password reset mode in the action code URL.
+ */
+static NSString *const kPasswordResetAction = @"PASSWORD_RESET";
+
// Declared extern in .h file.
NSString *const kCreateUserAccessibilityID = @"CreateUserAccessibilityID";
@@ -584,7 +596,8 @@ typedef void (^FIRTokenCallback)(NSString *_Nullable token, NSError *_Nullable e
}],
]],
[StaticContentTableViewSection sectionWithTitle:kSectionTitleSettings cells:@[
- [StaticContentTableViewCell cellWithTitle:kSettingsButtonText
+ [StaticContentTableViewCell cellWithTitle:NSLocalizedString(@"SETTINGSKEY",
+ kSettingsButtonTextDesription)
action:^{ [weakSelf presentSettings]; }]
]],
[StaticContentTableViewSection sectionWithTitle:kPhoneAuthSectionTitle cells:@[
@@ -636,6 +649,8 @@ typedef void (^FIRTokenCallback)(NSString *_Nullable token, NSError *_Nullable e
action:^{ [weakSelf requestVerifyEmail]; }],
[StaticContentTableViewCell cellWithTitle:kRequestPasswordReset
action:^{ [weakSelf requestPasswordReset]; }],
+ [StaticContentTableViewCell cellWithTitle:kResetPasswordInApp
+ action:^{ [weakSelf requestPasswordResetInApp]; }],
[StaticContentTableViewCell cellWithTitle:kResetPassword
action:^{ [weakSelf resetPassword]; }],
[StaticContentTableViewCell cellWithTitle:kCheckActionCode
@@ -747,6 +762,68 @@ typedef void (^FIRTokenCallback)(NSString *_Nullable token, NSError *_Nullable e
[self updateUserInfo];
}
+/** @fn parseURL
+ @brief Parses an incoming URL into all available query items.
+ @param urlString The url to be parsed.
+ @return A dictionary of available query items in the target URL.
+ */
+static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) {
+ NSString *linkURL = [NSURLComponents componentsWithString:urlString].query;
+ NSArray<NSString *> *URLComponents = [linkURL componentsSeparatedByString:@"&"];
+ NSMutableDictionary<NSString *, NSString *> *queryItems =
+ [[NSMutableDictionary alloc] initWithCapacity:URLComponents.count];
+ for (NSString *component in URLComponents) {
+ NSRange equalRange = [component rangeOfString:@"="];
+ if (equalRange.location != NSNotFound) {
+ NSString *queryItemKey =
+ [[component substringToIndex:equalRange.location] stringByRemovingPercentEncoding];
+ NSString *queryItemValue =
+ [[component substringFromIndex:equalRange.location + 1] stringByRemovingPercentEncoding];
+ if (queryItemKey && queryItemValue) {
+ queryItems[queryItemKey] = queryItemValue;
+ }
+ }
+ }
+ return queryItems;
+}
+
+#pragma mark public methods
+
+- (BOOL)handleIncomingLinkWithURL:(NSURL *)URL {
+ // Parse the query portion of the incoming URL.
+ NSDictionary<NSString *, NSString *> *queryItems =
+ parseURL([NSURLComponents componentsWithString:URL.absoluteString].query);
+
+ // Check that all necessary query items are available.
+ if (!queryItems[@"oobCode"] ||
+ !queryItems[@"mode"]) {
+ return NO;
+ }
+ // Handle Password Reset action.
+ if ([queryItems[@"mode"] isEqualToString:kPasswordResetAction]) {
+ [self showTextInputPromptWithMessage:@"New Password:"
+ completionBlock:^(BOOL userPressedOK, NSString *_Nullable newPassword) {
+ if (!userPressedOK || !newPassword.length) {
+ return;
+ }
+ [[FIRAuth auth] confirmPasswordResetWithCode:queryItems[@"oobCode"]
+ newPassword:newPassword
+ completion:^(NSError *_Nullable error) {
+ [self hideSpinner:^{
+ if (error) {
+ [self logFailure:@"Password reset failed" error:error];
+ [self showMessagePrompt:error.localizedDescription];
+ return;
+ }
+ [self logSuccess:@"Password reset succeeded."];
+ [self showMessagePrompt:@"Password reset succeeded."];
+ }];
+ }];
+ }];
+ }
+ return YES;
+}
+
#pragma mark - Actions
/** @fn signInWithProvider:provider:
@@ -1953,6 +2030,38 @@ typedef void (^FIRTokenCallback)(NSString *_Nullable token, NSError *_Nullable e
}];
}
+/** @fn requestPasswordResetInApp
+ @brief Requests a "password reset" email be sent and handled in the app.
+ */
+- (void)requestPasswordResetInApp {
+ [self showTextInputPromptWithMessage:@"Email:"
+ completionBlock:^(BOOL userPressedOK, NSString *_Nullable userInput) {
+ if (!userPressedOK || !userInput.length) {
+ return;
+ }
+ [self showSpinner:^{
+ FIRActionCodeSettings *actionCodeSettings = [[FIRActionCodeSettings alloc] init];
+ [actionCodeSettings setIOSBundleID:[NSBundle mainBundle].bundleIdentifier];
+ actionCodeSettings.URL = [NSURL URLWithString:KCONTINUE_URL];
+ actionCodeSettings.handleCodeInApp = YES;
+
+ [[FIRAuth auth] sendPasswordResetWithEmail:userInput
+ actionCodeSettings:actionCodeSettings
+ completion:^(NSError *_Nullable error) {
+ [self hideSpinner:^{
+ if (error) {
+ [self logFailure:@"request password reset failed" error:error];
+ [self showMessagePrompt:error.localizedDescription];
+ return;
+ }
+ [self logSuccess:@"request password reset succeeded."];
+ [self showMessagePrompt:@"Sent"];
+ }];
+ }];
+ }];
+ }];
+}
+
/** @fn resetPassword
@brief Performs a password reset operation.
*/
diff --git a/AuthSamples/Sample/Sample.entitlements b/AuthSamples/Sample/SampleTemplate.entitlements
index 9199dae..87371f3 100644
--- a/AuthSamples/Sample/Sample.entitlements
+++ b/AuthSamples/Sample/SampleTemplate.entitlements
@@ -6,5 +6,9 @@
<string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
<key>aps-environment</key>
<string>development</string>
+ <key>com.apple.developer.associated-domains</key>
+ <array>
+ <string>applinks:$KAPP_LINKS_DOMAIN</string>
+ </array>
</dict>
</plist>
diff --git a/AuthSamples/Sample/SettingsViewController.m b/AuthSamples/Sample/SettingsViewController.m
index 61af637..23fa2c7 100644
--- a/AuthSamples/Sample/SettingsViewController.m
+++ b/AuthSamples/Sample/SettingsViewController.m
@@ -210,6 +210,15 @@ static NSString *hexString(NSData *data) {
action:^{
[weakSelf clearAppCredential];
}],
+ [StaticContentTableViewCell cellWithTitle:@"Auth Language"
+ value:[FIRAuth auth].languageCode ?: @"[none]"
+ action:^{
+ [weakSelf showLanguageInput];
+ }],
+ [StaticContentTableViewCell cellWithTitle:@"Use App language" action:^{
+ [[FIRAuth auth] useAppLanguage];
+ [weakSelf loadTableView];
+ }],
]],
]];
}
@@ -333,4 +342,18 @@ static NSString *hexString(NSData *data) {
}];
}
+/** @fn showLanguageInput
+ @brief Show language code input field.
+ */
+- (void)showLanguageInput {
+ [self showTextInputPromptWithMessage:@"Enter Language Code For Auth:"
+ completionBlock:^(BOOL userPressedOK, NSString *_Nullable languageCode) {
+ if (!userPressedOK) {
+ return;
+ }
+ [FIRAuth auth].languageCode = languageCode.length ? languageCode : nil;
+ [self loadTableView];
+ }];
+}
+
@end
diff --git a/AuthSamples/Sample/en-GB.lproj/Localizable.strings b/AuthSamples/Sample/en-GB.lproj/Localizable.strings
new file mode 100644
index 0000000..bbbc3ae
--- /dev/null
+++ b/AuthSamples/Sample/en-GB.lproj/Localizable.strings
@@ -0,0 +1,2 @@
+/* Text label for button which opens sample app settings */
+"SETTINGSKEY" = "Settings";
diff --git a/AuthSamples/Sample/es-MX.lproj/Localizable.strings b/AuthSamples/Sample/es-MX.lproj/Localizable.strings
new file mode 100644
index 0000000..3a487ce
--- /dev/null
+++ b/AuthSamples/Sample/es-MX.lproj/Localizable.strings
@@ -0,0 +1,2 @@
+/* Text label for button which opens sample app settings */
+"SETTINGSKEY" = "Ajustes";
diff --git a/AuthSamples/Sample/fr-FR.lproj/Localizable.strings b/AuthSamples/Sample/fr-FR.lproj/Localizable.strings
new file mode 100644
index 0000000..a500427
--- /dev/null
+++ b/AuthSamples/Sample/fr-FR.lproj/Localizable.strings
@@ -0,0 +1,2 @@
+/* Text label for button which opens sample app settings */
+"SETTINGSKEY" = "Préférence";
diff --git a/AuthSamples/Sample/ru-RU.lproj/Localizable.strings b/AuthSamples/Sample/ru-RU.lproj/Localizable.strings
new file mode 100644
index 0000000..7b8fc66
--- /dev/null
+++ b/AuthSamples/Sample/ru-RU.lproj/Localizable.strings
@@ -0,0 +1,2 @@
+/* Text label for button which opens sample app settings */
+"SETTINGSKEY" = "настройки";
diff --git a/AuthSamples/Samples.xcodeproj/project.pbxproj b/AuthSamples/Samples.xcodeproj/project.pbxproj
index 4f57a16..3b1c2d8 100644
--- a/AuthSamples/Samples.xcodeproj/project.pbxproj
+++ b/AuthSamples/Samples.xcodeproj/project.pbxproj
@@ -26,6 +26,7 @@
52C975C71EE10B1304EBBEB2 /* Pods_SwiftSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC8C39EF1F42A0C750FF5186 /* Pods_SwiftSample.framework */; };
569C3F4E18627674CABE02AE /* Pods_EarlGreyTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AEE2E563FADF8C3382956B4F /* Pods_EarlGreyTests.framework */; };
67AFFB52FF0FC4668D92F2E4 /* Pods_Sample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5FE06BD9AA795DFBA9EFAAD /* Pods_Sample.framework */; };
+ 7EDFD35B1F0EA29200B29DC5 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 7EDFD35D1F0EA29200B29DC5 /* Localizable.strings */; };
A7609DCAD8A247411F27EA14 /* Pods_TestApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDD2401395E91D0923BC5CD8 /* Pods_TestApp.framework */; };
AB62D09AF8C1196E07F37D3B /* Pods_SwiftSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1F689EE8E0E6F83D82429F0 /* Pods_SwiftSample.framework */; };
BD555A1DCF4E889DC3338248 /* Pods_FirebaseAuthUnitTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FFAD3F37BC4D7CEF0CAD579 /* Pods_FirebaseAuthUnitTests.framework */; };
@@ -178,6 +179,10 @@
4FFAD3F37BC4D7CEF0CAD579 /* Pods_FirebaseAuthUnitTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FirebaseAuthUnitTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
57150555A6B03949ECB58AD9 /* Pods-TestApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TestApp.debug.xcconfig"; path = "Pods/Target Support Files/Pods-TestApp/Pods-TestApp.debug.xcconfig"; sourceTree = "<group>"; };
6EC09307D636721EAAB89BB2 /* Pods_ApiTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ApiTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 7E0BC64A1F199D86008BE4E0 /* fr-FR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "fr-FR"; path = "fr-FR.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 7E0BC64E1F19A77C008BE4E0 /* ru-RU */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ru-RU"; path = "ru-RU.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 7EDFD35C1F0EA29200B29DC5 /* en-GB */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "en-GB"; path = "en-GB.lproj/Localizable.strings"; sourceTree = "<group>"; };
+ 7EDFD3771F0EA2A900B29DC5 /* es-MX */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "es-MX"; path = "es-MX.lproj/Localizable.strings"; sourceTree = "<group>"; };
81ED9C5F2E61472DE3FA17CC /* Pods-ApiTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ApiTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ApiTests/Pods-ApiTests.release.xcconfig"; sourceTree = "<group>"; };
920E926BD468CBC593349A36 /* Pods-FirebaseAuthUnitTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FirebaseAuthUnitTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FirebaseAuthUnitTests/Pods-FirebaseAuthUnitTests.debug.xcconfig"; sourceTree = "<group>"; };
94E3B3EB70D34E55CFF2E45D /* Pods-EarlGreyTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EarlGreyTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-EarlGreyTests/Pods-EarlGreyTests.release.xcconfig"; sourceTree = "<group>"; };
@@ -411,6 +416,7 @@
DECE04851E9FEA7500164CA4 /* Sample */ = {
isa = PBXGroup;
children = (
+ 7EDFD35D1F0EA29200B29DC5 /* Localizable.strings */,
D930B7611EDF9AAD001265FD /* Sample.entitlements */,
DECEA5661EBBDFB400273585 /* AuthCredentials.h */,
DECE049B1E9FEAE600164CA4 /* Application.plist */,
@@ -821,6 +827,9 @@
vi,
zh_CN,
zh_TW,
+ "es-419",
+ "fr-FR",
+ "ru-RU",
);
mainGroup = DECE045D1E9FEA1000164CA4;
productRefGroup = DECE04671E9FEA1000164CA4 /* Products */;
@@ -848,6 +857,7 @@
D99C31A11ED7A0ED00607534 /* GoogleService-Info_multi.plist in Resources */,
DECE04ED1E9FEAE600164CA4 /* MainViewController.xib in Resources */,
DECE04F61E9FEAE600164CA4 /* UserInfoViewController.xib in Resources */,
+ 7EDFD35B1F0EA29200B29DC5 /* Localizable.strings in Resources */,
DECE04F01E9FEAE600164CA4 /* SettingsViewController.xib in Resources */,
DECE04E91E9FEAE600164CA4 /* GoogleService-Info.plist in Resources */,
);
@@ -1323,6 +1333,17 @@
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
+ 7EDFD35D1F0EA29200B29DC5 /* Localizable.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 7EDFD35C1F0EA29200B29DC5 /* en-GB */,
+ 7EDFD3771F0EA2A900B29DC5 /* es-MX */,
+ 7E0BC64A1F199D86008BE4E0 /* fr-FR */,
+ 7E0BC64E1F19A77C008BE4E0 /* ru-RU */,
+ );
+ name = Localizable.strings;
+ sourceTree = "<group>";
+ };
DEE13AC01EA1764B00D1BABA /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (