Skip to content

Commit e32847a

Browse files
committed
Fix outstanding deprecation warnings
Change-Id: I335064ee6592deae6b4acf27e5b77aaf41948f24
1 parent e49b53f commit e32847a

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

FirebaseAuthUI/AccountManagement/FUIAccountSettingsOperation.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ - (void)reauthenticateWithProvider:(NSString *)providerID
178178
}
179179
return;
180180
}
181-
[self.delegate.auth.currentUser reauthenticateWithCredential:credential
182-
completion:^(NSError *_Nullable reauthError) {
181+
[self.delegate.auth.currentUser
182+
reauthenticateAndRetrieveDataWithCredential:credential
183+
completion:^(NSError *_Nullable reauthError) {
183184
[self.delegate decrementActivity];
184185
if (result) {
185186
result(self.delegate.auth.currentUser, reauthError);

FirebaseAuthUI/FUIAuth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ - (void)signInWithProviderUI:(id<FUIAuthProvider>)providerUI
215215
the sign-in attempt.
216216
@param newCredential The credential used in the lastest sign-in attempt.
217217
@param presentingViewController The view controller used to present the UI.
218-
@param signInResult block which takes the result of this method as a parameter; a nullable
218+
@param result block which takes the result of this method as a parameter; a nullable
219219
AuthResult indicating success or a nullable Error indicating failure.
220220
*/
221221
- (void)handleAccountLinkingForEmail:(NSString *)email

FirebaseAuthUI/FUIAuthBaseViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ - (void)incrementActivity {
323323
dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
324324
(int64_t)(kActivityIndiactorAnimationDelay * NSEC_PER_SEC)),
325325
dispatch_get_main_queue(), ^{
326-
[self->_activityIndicator.superview bringSubviewToFront:_activityIndicator];
326+
[self->_activityIndicator.superview bringSubviewToFront:self->_activityIndicator];
327327
if (self->_activityCount > 0) {
328328
[self->_activityIndicator startAnimating];
329329
}

FirebaseAuthUI/FUIPasswordSignUpViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ - (void)signUpWithEmail:(NSString *)email
180180

181181
[self incrementActivity];
182182

183-
[self.auth createUserAndRetrieveDataWithEmail:email
184-
password:password
185-
completion:^(FIRAuthDataResult *_Nullable authDataResult,
186-
NSError *_Nullable error) {
183+
[self.auth createUserWithEmail:email
184+
password:password
185+
completion:^(FIRAuthDataResult *_Nullable authDataResult,
186+
NSError *_Nullable error) {
187187
if (error) {
188188
[self decrementActivity];
189189

0 commit comments

Comments
 (0)