@@ -34,13 +34,7 @@ import Foundation
34
34
/// - providerID: The provider ID of the IDP for which this auth provider instance will be
35
35
/// configured.
36
36
/// - Returns: An instance of OAuthProvider corresponding to the specified provider ID.
37
- #if !FIREBASE_CI
38
- @available (
39
- swift,
40
- deprecated: 0.01 ,
41
- message: " Use `provider(providerID: AuthProviderID) -> OAuthProvider` instead. "
42
- )
43
- #endif // !FIREBASE_CI
37
+ @available ( swift 1000 . 0 ) // Objective-C only API
44
38
@objc ( providerWithProviderID: ) open class func provider( providerID: String ) -> OAuthProvider {
45
39
return OAuthProvider ( providerID: providerID, auth: Auth . auth ( ) )
46
40
}
@@ -60,13 +54,7 @@ import Foundation
60
54
/// configured.
61
55
/// - auth: The auth instance to be associated with the OAuthProvider instance.
62
56
/// - Returns: An instance of OAuthProvider corresponding to the specified provider ID.
63
- #if !FIREBASE_CI
64
- @available (
65
- swift,
66
- deprecated: 0.01 ,
67
- message: " Use `provider(providerID: AuthProviderID, auth: Auth) -> OAuthProvider` instead. "
68
- )
69
- #endif // !FIREBASE_CI
57
+ @available ( swift 1000 . 0 ) // Objective-C only API
70
58
@objc ( providerWithProviderID: auth: ) open class func provider( providerID: String ,
71
59
auth: Auth ) -> OAuthProvider {
72
60
return OAuthProvider ( providerID: providerID, auth: auth)
@@ -136,13 +124,7 @@ import Foundation
136
124
/// - Parameter accessToken: The access token associated with the Auth credential be created, if
137
125
/// available.
138
126
/// - Returns: An AuthCredential for the specified provider ID, ID token and access token.
139
- #if !FIREBASE_CI
140
- @available (
141
- swift,
142
- deprecated: 0.01 ,
143
- message: " Use `credential(providerID: AuthProviderID, idToken: String, accessToken: String? = nil) -> OAuthCredential` instead. "
144
- )
145
- #endif // !FIREBASE_CI
127
+ @available ( swift 1000 . 0 ) // Objective-C only API
146
128
@objc ( credentialWithProviderID: IDToken: accessToken: )
147
129
public static func credential( withProviderID providerID: String ,
148
130
idToken: String ,
@@ -173,13 +155,7 @@ import Foundation
173
155
/// - Parameter accessToken: The access token associated with the Auth credential be created, if
174
156
/// available.
175
157
/// - Returns: An AuthCredential for the specified provider ID, ID token and access token.
176
- #if !FIREBASE_CI
177
- @available (
178
- swift,
179
- deprecated: 0.01 ,
180
- message: " Use `credential(providerID: AuthProviderID, accessToken: String) -> OAuthCredential` instead. "
181
- )
182
- #endif // !FIREBASE_CI
158
+ @available ( swift 1000 . 0 ) // Objective-C only API
183
159
@objc ( credentialWithProviderID: accessToken: )
184
160
public static func credential( withProviderID providerID: String ,
185
161
accessToken: String ) -> OAuthCredential {
@@ -203,13 +179,7 @@ import Foundation
203
179
/// - Parameter rawNonce: The raw nonce associated with the Auth credential being created.
204
180
/// - Parameter accessToken: The access token associated with the Auth credential be created.
205
181
/// - Returns: An AuthCredential for the specified provider ID, ID token and access token.
206
- #if !FIREBASE_CI
207
- @available (
208
- swift,
209
- deprecated: 0.01 ,
210
- message: " Use `credential(providerID: AuthProviderID, idToken: String, rawNonce: String, accessToken: String? = nil) -> OAuthCredential` instead. "
211
- )
212
- #endif // !FIREBASE_CI
182
+ @available ( swift 1000 . 0 ) // Objective-C only API
213
183
@objc ( credentialWithProviderID: IDToken: rawNonce: accessToken: )
214
184
public static func credential( withProviderID providerID: String , idToken: String ,
215
185
rawNonce: String ,
@@ -228,13 +198,7 @@ import Foundation
228
198
/// - Parameter idToken: The IDToken associated with the Auth credential being created.
229
199
/// - Parameter rawNonce: The raw nonce associated with the Auth credential being created.
230
200
/// - Returns: An AuthCredential.
231
- #if !FIREBASE_CI
232
- @available (
233
- swift,
234
- deprecated: 0.01 ,
235
- message: " Use `credential(providerID: AuthProviderID, idToken: String, rawNonce: String, accessToken: String? = nil) -> OAuthCredential` instead. "
236
- )
237
- #endif // !FIREBASE_CI
201
+ @available ( swift 1000 . 0 ) // Objective-C only API
238
202
@objc ( credentialWithProviderID: IDToken: rawNonce: )
239
203
public static func credential( withProviderID providerID: String , idToken: String ,
240
204
rawNonce: String ) -> OAuthCredential {
0 commit comments