Skip to content

Commit 60627fd

Browse files
committed
Fix using deprecated method
1 parent 8a6ad61 commit 60627fd

File tree

3 files changed

+40
-27
lines changed

3 files changed

+40
-27
lines changed

Auth/FirebaseAuthUI/FUIAuth.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ - (void)signInWithProviderUI:(id<FUIAuthProvider>)providerUI
197197
credential:credential
198198
resultCallback:result];
199199
} else {
200-
[self.auth signInAndRetrieveDataWithCredential:credential
201-
completion:^(FIRAuthDataResult *_Nullable authResult,
202-
NSError *_Nullable error) {
200+
[self.auth signInWithCredential:credential
201+
completion:^(FIRAuthDataResult *_Nullable authResult,
202+
NSError *_Nullable error) {
203203
if (error && error.code == FIRAuthErrorCodeAccountExistsWithDifferentCredential) {
204204
NSString *email = error.userInfo[kErrorUserInfoEmailKey];
205205
[self.emailAuthProvider handleAccountLinkingForEmail:email
@@ -230,9 +230,9 @@ - (void)autoUpgradeAccountWithProviderUI:(id<FUIAuthProvider>)providerUI
230230
credential:(nullable FIRAuthCredential *)credential
231231
resultCallback:(nullable FIRAuthResultCallback)callback {
232232
[self.auth.currentUser
233-
linkAndRetrieveDataWithCredential:credential
234-
completion:^(FIRAuthDataResult *_Nullable authResult,
235-
NSError * _Nullable error) {
233+
linkWithCredential:credential
234+
completion:^(FIRAuthDataResult *_Nullable authResult,
235+
NSError * _Nullable error) {
236236
if (error) {
237237
// Check for "credential in use" conflict error and handle appropriately.
238238
if (error.code == FIRAuthErrorCodeCredentialAlreadyInUse) {
@@ -283,9 +283,9 @@ - (void)autoUpgradeAccountWithProviderUI:(id<FUIAuthProvider>)providerUI
283283
return;
284284
}
285285

286-
[authResult.user linkAndRetrieveDataWithCredential:credential
287-
completion:^(FIRAuthDataResult *authResult,
288-
NSError *linkError) {
286+
[authResult.user linkWithCredential:credential
287+
completion:^(FIRAuthDataResult *authResult,
288+
NSError *linkError) {
289289
if (linkError) {
290290
[self completeSignInWithResult:nil
291291
error:linkError

Auth/Podfile.lock

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
PODS:
2-
- Firebase/Auth (5.18.0):
2+
- Firebase/Auth (6.1.0):
33
- Firebase/CoreOnly
4-
- FirebaseAuth (= 5.4.0)
5-
- Firebase/CoreOnly (5.18.0):
6-
- FirebaseCore (= 5.3.1)
7-
- FirebaseAuth (5.4.0):
4+
- FirebaseAuth (~> 6.1.0)
5+
- Firebase/CoreOnly (6.1.0):
6+
- FirebaseCore (= 6.0.1)
7+
- FirebaseAuth (6.1.0):
88
- FirebaseAuthInterop (~> 1.0)
9-
- FirebaseCore (~> 5.2)
10-
- GoogleUtilities/Environment (~> 5.2)
9+
- FirebaseCore (~> 6.0)
10+
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
11+
- GoogleUtilities/Environment (~> 6.0)
1112
- GTMSessionFetcher/Core (~> 1.1)
1213
- FirebaseAuthInterop (1.0.0)
13-
- FirebaseCore (5.3.1):
14-
- GoogleUtilities/Logger (~> 5.2)
15-
- GoogleUtilities/Environment (5.4.0)
16-
- GoogleUtilities/Logger (5.4.0):
14+
- FirebaseCore (6.0.1):
15+
- GoogleUtilities/Environment (~> 6.0)
16+
- GoogleUtilities/Logger (~> 6.0)
17+
- GoogleUtilities/AppDelegateSwizzler (6.2.0):
1718
- GoogleUtilities/Environment
18-
- GTMSessionFetcher/Core (1.2.1)
19+
- GoogleUtilities/Logger
20+
- GoogleUtilities/Network
21+
- GoogleUtilities/Environment (6.2.0)
22+
- GoogleUtilities/Logger (6.2.0):
23+
- GoogleUtilities/Environment
24+
- GoogleUtilities/Network (6.2.0):
25+
- GoogleUtilities/Logger
26+
- "GoogleUtilities/NSData+zlib"
27+
- GoogleUtilities/Reachability
28+
- "GoogleUtilities/NSData+zlib (6.2.0)"
29+
- GoogleUtilities/Reachability (6.2.0):
30+
- GoogleUtilities/Logger
31+
- GTMSessionFetcher/Core (1.2.2)
1932

2033
DEPENDENCIES:
2134
- Firebase/Auth
@@ -30,12 +43,12 @@ SPEC REPOS:
3043
- GTMSessionFetcher
3144

3245
SPEC CHECKSUMS:
33-
Firebase: 02f3281965c075426141a0ce1277e9de6649cab9
34-
FirebaseAuth: d85d052354447f30b4b2a805ab91b511458b56a6
46+
Firebase: 8d77bb33624ae9b62d745d82ec023de5f70f7e4f
47+
FirebaseAuth: 4281d6d98a90881e00710fa8d9e37c2ccdfc7d80
3548
FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
36-
FirebaseCore: 52f851b30e11360f1e67cf04b1edfebf0a47a2d3
37-
GoogleUtilities: fa768ad04b264be250ee9edf9f378ad006f7a560
38-
GTMSessionFetcher: 32aeca0aa144acea523e1c8e053089dec2cb98ca
49+
FirebaseCore: 66bdef3b310a026880e2a5bc8aa586ab62ce4543
50+
GoogleUtilities: 996e0db07153674fd1b54b220fda3a3dc3547cba
51+
GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
3952

4053
PODFILE CHECKSUM: b52e77a8635fdab60813531d42d397d13cda156e
4154

FirebaseUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Pod::Spec.new do |s|
44
s.summary = 'UI binding libraries for Firebase.'
55
s.homepage = 'https://github.com/firebase/FirebaseUI-iOS'
66
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
7-
s.source = { :git => 'https://github.com/firebase/FirebaseUI-iOS.git', :tag => 'v' + s.version.to_s + '-prerelease' }
7+
s.source = { :git => 'https://github.com/firebase/FirebaseUI-iOS.git', :tag => 'v' + s.version.to_s }
88
s.author = 'Firebase'
99
s.platform = :ios
1010
s.ios.deployment_target = '9.0'

0 commit comments

Comments
 (0)