Skip to content

Commit 4ae6843

Browse files
Revert Twitter Auth deprecation because devepler may want to build their own sign in flow (#2765)
1 parent 67e7941 commit 4ae6843

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

Firebase/Auth/Source/Auth Provider/Twitter/FIRTwitterAuthCredential.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ NS_ASSUME_NONNULL_BEGIN
2323
/** @class FIRTwitterAuthCredential
2424
@brief Internal implementation of FIRAuthCredential for Twitter credentials.
2525
*/
26-
DEPRECATED_MSG_ATTRIBUTE("Please use FIROAuthCredential instead of FIRTwitterAuthCredential.")
2726
@interface FIRTwitterAuthCredential : FIRAuthCredential <NSSecureCoding>
2827

2928
/** @property token

Firebase/Auth/Source/Auth Provider/Twitter/FIRTwitterAuthCredential.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
NS_ASSUME_NONNULL_BEGIN
2424

25-
#pragma clang diagnostic push
26-
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
27-
2825
@interface FIRTwitterAuthCredential ()
2926

3027
- (nullable instancetype)initWithProvider:(NSString *)provider NS_UNAVAILABLE;
@@ -73,6 +70,4 @@ - (void)encodeWithCoder:(NSCoder *)aCoder {
7370

7471
@end
7572

76-
#pragma clang diagnostic pop
77-
7873
NS_ASSUME_NONNULL_END

Firebase/Auth/Source/Auth Provider/Twitter/FIRTwitterAuthProvider.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
NS_ASSUME_NONNULL_BEGIN
2525

26-
#pragma clang diagnostic push
27-
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
28-
2926
@implementation FIRTwitterAuthProvider
3027

3128
- (instancetype)init {
@@ -40,6 +37,4 @@ + (FIRAuthCredential *)credentialWithToken:(NSString *)token secret:(NSString *)
4037

4138
@end
4239

43-
#pragma clang diagnostic pop
44-
4540
NS_ASSUME_NONNULL_END

Firebase/Auth/Source/Public/FIRTwitterAuthProvider.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,15 @@ NS_ASSUME_NONNULL_BEGIN
2323
/**
2424
@brief A string constant identifying the Twitter identity provider.
2525
*/
26-
extern NSString *const FIRTwitterAuthProviderID NS_SWIFT_NAME(TwitterAuthProviderID)
27-
DEPRECATED_MSG_ATTRIBUTE("Please use \"twitter.com\" instead.");
28-
26+
extern NSString *const FIRTwitterAuthProviderID NS_SWIFT_NAME(TwitterAuthProviderID);
2927
/**
3028
@brief A string constant identifying the Twitter sign-in method.
3129
*/
32-
extern NSString *const _Nonnull FIRTwitterAuthSignInMethod NS_SWIFT_NAME(TwitterAuthSignInMethod)
33-
DEPRECATED_MSG_ATTRIBUTE("Please use \"twitter.com\" instead.");
34-
30+
extern NSString *const _Nonnull FIRTwitterAuthSignInMethod NS_SWIFT_NAME(TwitterAuthSignInMethod);
3531

3632
/** @class FIRTwitterAuthProvider
3733
@brief Utility class for constructing Twitter credentials.
3834
*/
39-
DEPRECATED_MSG_ATTRIBUTE("Please use FIROAuthProvider instead of FIRTwitterAuthProvider.")
4035
NS_SWIFT_NAME(TwitterAuthProvider)
4136
@interface FIRTwitterAuthProvider : NSObject
4237

0 commit comments

Comments
 (0)