aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Auth
diff options
context:
space:
mode:
authorGravatar Ivan <gonzalezivan@google.com>2017-10-16 16:58:53 -0700
committerGravatar Ivan <gonzalezivan@google.com>2017-10-16 16:58:53 -0700
commited4b9d43875973f1dc024321ff118bee42293692 (patch)
treeaab4de501df5c6e4a5e10ab04bc6794f2815f56a /Example/Auth
parentd8bcaf0f968dafd9b9acb3f54f28424f9760a7e0 (diff)
Adds automated test for manual phone sign-in
Diffstat (limited to 'Example/Auth')
-rw-r--r--Example/Auth/Sample/MainViewController.m18
1 files changed, 9 insertions, 9 deletions
diff --git a/Example/Auth/Sample/MainViewController.m b/Example/Auth/Sample/MainViewController.m
index 22a1626..6e973f6 100644
--- a/Example/Auth/Sample/MainViewController.m
+++ b/Example/Auth/Sample/MainViewController.m
@@ -676,13 +676,13 @@ typedef enum {
]],
[StaticContentTableViewSection sectionWithTitle:kPhoneAuthSectionTitle cells:@[
[StaticContentTableViewCell cellWithTitle:kPhoneNumberSignInReCaptchaTitle
- action:^{ [weakSelf signInWithPhoneNumberPrompt]; }],
+ action:^{ [weakSelf signInWithPhoneNumberWithPrompt]; }],
[StaticContentTableViewCell cellWithTitle:kPhoneNumberSignInTitle
action:^{ [weakSelf signInWithPhoneNumber]; }],
[StaticContentTableViewCell cellWithTitle:kUpdatePhoneNumber
- action:^{ [weakSelf updatePhoneNumberPrompt]; }],
+ action:^{ [weakSelf updatePhoneNumberWithPrompt]; }],
[StaticContentTableViewCell cellWithTitle:kLinkPhoneNumber
- action:^{ [weakSelf linkPhoneNumberPrompt]; }],
+ action:^{ [weakSelf linkPhoneNumberWithPrompt]; }],
[StaticContentTableViewCell cellWithTitle:kUnlinkPhoneNumber
action:^{
[weakSelf unlinkFromProvider:FIRPhoneAuthProviderID completion:nil];
@@ -2554,10 +2554,10 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) {
}];
}
-/** @fn signInWithPhoneNumberPrompt
+/** @fn signInWithPhoneNumberWithPrompt
@brief Allows sign in with phone number via popup prompt.
*/
-- (void)signInWithPhoneNumberPrompt {
+- (void)signInWithPhoneNumberWithPrompt {
[self commonPhoneNumberInputWithTitle:@"Phone #"
Completion:^(NSString *_Nullable phone) {
[self signInWithPhoneNumber:phone completion:nil];
@@ -2657,10 +2657,10 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) {
}];
}
-/** @fn updatePhoneNumber
+/** @fn updatePhoneNumberWithPrompt
@brief Allows adding a verified phone number to the currently signed user via popup prompt.
*/
-- (void)updatePhoneNumberPrompt {
+- (void)updatePhoneNumberWithPrompt {
[self showTextInputPromptWithMessage:@"Update Phone #:"
keyboardType:UIKeyboardTypePhonePad
completionBlock:^(BOOL userPressedOK, NSString *_Nullable phoneNumber) {
@@ -2756,10 +2756,10 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) {
}];
}
-/** @fn linkPhoneNumber
+/** @fn linkPhoneNumberWithPrompt
@brief Allows linking a verified phone number to the currently signed user via popup prompt.
*/
-- (void)linkPhoneNumberPrompt {
+- (void)linkPhoneNumberWithPrompt {
[self showTextInputPromptWithMessage:@"Phone #:"
keyboardType:UIKeyboardTypePhonePad
completionBlock:^(BOOL userPressedOK, NSString *_Nullable phoneNumber) {