@@ -34,13 +34,7 @@ import Foundation
3434 /// - providerID: The provider ID of the IDP for which this auth provider instance will be
3535 /// configured.
3636 /// - 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
4438 @objc ( providerWithProviderID: ) open class func provider( providerID: String ) -> OAuthProvider {
4539 return OAuthProvider ( providerID: providerID, auth: Auth . auth ( ) )
4640 }
@@ -60,13 +54,7 @@ import Foundation
6054 /// configured.
6155 /// - auth: The auth instance to be associated with the OAuthProvider instance.
6256 /// - 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
7058 @objc ( providerWithProviderID: auth: ) open class func provider( providerID: String ,
7159 auth: Auth ) -> OAuthProvider {
7260 return OAuthProvider ( providerID: providerID, auth: auth)
@@ -136,13 +124,7 @@ import Foundation
136124 /// - Parameter accessToken: The access token associated with the Auth credential be created, if
137125 /// available.
138126 /// - 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
146128 @objc ( credentialWithProviderID: IDToken: accessToken: )
147129 public static func credential( withProviderID providerID: String ,
148130 idToken: String ,
@@ -173,13 +155,7 @@ import Foundation
173155 /// - Parameter accessToken: The access token associated with the Auth credential be created, if
174156 /// available.
175157 /// - 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
183159 @objc ( credentialWithProviderID: accessToken: )
184160 public static func credential( withProviderID providerID: String ,
185161 accessToken: String ) -> OAuthCredential {
@@ -203,13 +179,7 @@ import Foundation
203179 /// - Parameter rawNonce: The raw nonce associated with the Auth credential being created.
204180 /// - Parameter accessToken: The access token associated with the Auth credential be created.
205181 /// - 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
213183 @objc ( credentialWithProviderID: IDToken: rawNonce: accessToken: )
214184 public static func credential( withProviderID providerID: String , idToken: String ,
215185 rawNonce: String ,
@@ -228,13 +198,7 @@ import Foundation
228198 /// - Parameter idToken: The IDToken associated with the Auth credential being created.
229199 /// - Parameter rawNonce: The raw nonce associated with the Auth credential being created.
230200 /// - 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
238202 @objc ( credentialWithProviderID: IDToken: rawNonce: )
239203 public static func credential( withProviderID providerID: String , idToken: String ,
240204 rawNonce: String ) -> OAuthCredential {
0 commit comments