17
17
@import FirebaseCore;
18
18
@import FirebaseAuth;
19
19
20
- #if !TARGET_OS_MACOS && !TARGET_OS_WATCHOS
20
+ #if !TARGET_OS_OSX && !TARGET_OS_WATCH
21
21
@interface AuthUIImpl : NSObject <FIRAuthUIDelegate>
22
22
- (void )dismissViewControllerAnimated : (BOOL )flag completion : (void (^_Nullable)(void ))completion ;
23
23
- (void )presentViewController : (nonnull UIViewController *)viewControllerToPresent
@@ -61,7 +61,7 @@ - (void)FIRActionCodeSettings_h {
61
61
[codeSettings setAndroidPackageName: @" name" installIfNotAvailable: NO minimumVersion: @" 1.1" ];
62
62
BOOL b = [codeSettings handleCodeInApp ];
63
63
b = [codeSettings androidInstallIfNotAvailable ];
64
- NSURL *u = [codeSettings URL ];
64
+ __unused NSURL *u = [codeSettings URL ];
65
65
NSString *s = [codeSettings iOSBundleID ];
66
66
s = [codeSettings androidPackageName ];
67
67
s = [codeSettings androidMinimumVersion ];
@@ -70,29 +70,29 @@ - (void)FIRActionCodeSettings_h {
70
70
71
71
- (void )FIRAuthAdditionalUserInfo_h : (FIRAdditionalUserInfo *)additionalUserInfo {
72
72
NSString *s = [additionalUserInfo providerID ];
73
- BOOL b = [additionalUserInfo isNewUser ];
74
- NSDictionary <NSString *, NSObject *> *dict = [additionalUserInfo profile ];
73
+ __unused BOOL b = [additionalUserInfo isNewUser ];
74
+ __unused NSDictionary <NSString *, NSObject *> *dict = [additionalUserInfo profile ];
75
75
s = [additionalUserInfo username ];
76
76
}
77
77
78
78
- (void )ActionCodeOperationTests : (FIRActionCodeInfo *)info {
79
- FIRActionCodeOperation op = [info operation ];
79
+ __unused FIRActionCodeOperation op = [info operation ];
80
80
NSString *s = [info email ];
81
81
s = [info previousEmail ];
82
82
}
83
83
84
84
- (void )ActionCodeURL : (FIRActionCodeURL *)url {
85
- FIRActionCodeOperation op = [url operation ];
85
+ __unused FIRActionCodeOperation op = [url operation ];
86
86
NSString *s = [url APIKey ];
87
87
s = [url code ];
88
- NSURL *u = [url continueURL ];
88
+ __unused NSURL *u = [url continueURL ];
89
89
s = [url languageCode ];
90
90
}
91
91
92
92
- (void )authProperties : (FIRAuth *)auth {
93
- BOOL b = [auth shareAuthStateAcrossDevices ];
93
+ __unused BOOL b = [auth shareAuthStateAcrossDevices ];
94
94
[auth setShareAuthStateAcrossDevices: YES ];
95
- FIRUser *u = [auth currentUser ];
95
+ __unused FIRUser *u = [auth currentUser ];
96
96
NSString *s = [auth languageCode ];
97
97
[auth setLanguageCode: s];
98
98
FIRAuthSettings *settings = [auth settings ];
@@ -103,7 +103,7 @@ - (void)authProperties:(FIRAuth *)auth {
103
103
s = [auth customAuthDomain ];
104
104
[auth setCustomAuthDomain: s];
105
105
#if TARGET_OS_IOS
106
- NSData *d = [auth APNSToken ];
106
+ __unused NSData *d = [auth APNSToken ];
107
107
auth.APNSToken = [[NSData alloc ] init ];
108
108
#endif
109
109
}
@@ -197,7 +197,7 @@ - (void)FIRAuth_h:(FIRAuth *)auth
197
197
[auth getStoredUserForAccessGroup: @" user" error: &error];
198
198
}
199
199
200
- #if !TARGET_OS_MACOS
200
+ #if !TARGET_OS_OSX
201
201
- (void )FIRAuthAPNSTokenType_h {
202
202
FIRAuthAPNSTokenType t = FIRAuthAPNSTokenTypeProd;
203
203
t = FIRAuthAPNSTokenTypeSandbox;
@@ -210,9 +210,9 @@ - (NSString *)authCredential:(FIRAuthCredential *)credential {
210
210
}
211
211
212
212
- (void )authDataResult : (FIRAuthDataResult *)result {
213
- FIRUser *u = [result user ];
214
- FIRAdditionalUserInfo *info = [result additionalUserInfo ];
215
- FIRAuthCredential *c = [result credential ];
213
+ __unused FIRUser *u = [result user ];
214
+ __unused FIRAdditionalUserInfo *info = [result additionalUserInfo ];
215
+ __unused FIRAuthCredential *c = [result credential ];
216
216
}
217
217
218
218
- (void )FIRAuthErrors_h {
@@ -319,10 +319,10 @@ - (void)authTokenResult:(FIRAuthTokenResult *)result {
319
319
d = [result issuedAtDate ];
320
320
s = [result signInProvider ];
321
321
s = [result signInSecondFactor ];
322
- NSDictionary <NSString *, NSObject *> *dict = [result claims ];
322
+ __unused NSDictionary <NSString *, NSObject *> *dict = [result claims ];
323
323
}
324
324
325
- #if !TARGET_OS_MACOS && !TARGET_OS_WATCHOS
325
+ #if !TARGET_OS_OSX && !TARGET_OS_WATCH
326
326
- (void )authTokenResult {
327
327
AuthUIImpl *impl = [[AuthUIImpl alloc ] init ];
328
328
[impl presentViewController: [[UIViewController alloc ] init ]
@@ -341,7 +341,7 @@ - (void)FIREmailAuthProvider_h {
341
341
}
342
342
343
343
- (void )FIRFacebookAuthProvider_h {
344
- FIRAuthCredential *c = [FIRFacebookAuthProvider credentialWithAccessToken: @" token" ];
344
+ __unused FIRAuthCredential *c = [FIRFacebookAuthProvider credentialWithAccessToken: @" token" ];
345
345
}
346
346
347
347
#if TARGET_OS_IOS
@@ -353,7 +353,7 @@ - (void)FIRFederatedAuthProvider_h {
353
353
}
354
354
#endif
355
355
356
- #if !TARGET_OS_WATCHOS
356
+ #if !TARGET_OS_WATCH
357
357
- (void )FIRGameCenterAuthProvider_h {
358
358
[FIRGameCenterAuthProvider getCredentialWithCompletion: ^(FIRAuthCredential *_Nullable credential,
359
359
NSError *_Nullable error){
@@ -362,11 +362,11 @@ - (void)FIRGameCenterAuthProvider_h {
362
362
#endif
363
363
364
364
- (void )FIRGitHubAuthProvider_h {
365
- FIRAuthCredential *c = [FIRGitHubAuthProvider credentialWithToken: @" token" ];
365
+ __unused FIRAuthCredential *c = [FIRGitHubAuthProvider credentialWithToken: @" token" ];
366
366
}
367
367
368
368
- (void )FIRGoogleAuthProvider_h {
369
- FIRAuthCredential *c = [FIRGoogleAuthProvider credentialWithIDToken: @" token"
369
+ __unused FIRAuthCredential *c = [FIRGoogleAuthProvider credentialWithIDToken: @" token"
370
370
accessToken: @" token" ];
371
371
}
372
372
@@ -389,20 +389,20 @@ - (void)FIRMultiFactor_h:(FIRMultiFactor *)mf mfa:(FIRMultiFactorAssertion *)mfa
389
389
}
390
390
391
391
- (void )multiFactorAssertion : (FIRMultiFactorAssertion *)mfa {
392
- NSString *s = [mfa factorID ];
392
+ __unused NSString *s = [mfa factorID ];
393
393
}
394
394
395
395
- (void )multiFactorInfo : (FIRMultiFactorInfo *)mfi {
396
396
NSString *s = [mfi UID ];
397
397
s = [mfi factorID ];
398
398
s = [mfi displayName ];
399
- NSDate *d = [mfi enrollmentDate ];
399
+ __unused NSDate *d = [mfi enrollmentDate ];
400
400
}
401
401
402
402
- (void )multiFactorResolver : (FIRMultiFactorResolver *)mfr {
403
- FIRMultiFactorSession *s = [mfr session ];
404
- NSArray <FIRMultiFactorInfo *> *hints = [mfr hints ];
405
- FIRAuth *auth = [mfr auth ];
403
+ __unused FIRMultiFactorSession *s = [mfr session ];
404
+ __unused NSArray <FIRMultiFactorInfo *> *hints = [mfr hints ];
405
+ __unused FIRAuth *auth = [mfr auth ];
406
406
}
407
407
#endif
408
408
@@ -428,9 +428,9 @@ - (void)FIROAuthProvider_h:(FIROAuthProvider *)provider {
428
428
completion: ^(FIRAuthCredential *_Nullable credential,
429
429
NSError *_Nullable error){
430
430
}];
431
- NSString *s = [provider providerID ];
432
- NSArray <NSString *> *scopes = [provider scopes ];
433
- NSDictionary <NSString *, NSString *> *params = [provider customParameters ];
431
+ __unused NSString *s = [provider providerID ];
432
+ __unused NSArray <NSString *> *scopes = [provider scopes ];
433
+ __unused NSDictionary <NSString *, NSString *> *params = [provider customParameters ];
434
434
}
435
435
436
436
- (void )FIRPhoneAuthProvider_h : (FIRPhoneAuthProvider *)provider mfi : (FIRPhoneMultiFactorInfo *)mfi {
@@ -449,7 +449,7 @@ - (void)FIRPhoneAuthProvider_h:(FIRPhoneAuthProvider *)provider mfi:(FIRPhoneMul
449
449
completion: ^(NSString *_Nullable verificationID,
450
450
NSError *_Nullable error){
451
451
}];
452
- FIRPhoneAuthCredential *c = [provider credentialWithVerificationID: @" id"
452
+ __unused FIRPhoneAuthCredential *c = [provider credentialWithVerificationID: @" id"
453
453
verificationCode: @" code" ];
454
454
}
455
455
@@ -458,7 +458,7 @@ - (void)FIRPhoneAuthProvider_h:(FIRPhoneAuthCredential *)credential {
458
458
}
459
459
460
460
- (void )phoneMultiFactorInfo : (FIRPhoneMultiFactorInfo *)info {
461
- NSString *s = [info phoneNumber ];
461
+ __unused NSString *s = [info phoneNumber ];
462
462
}
463
463
464
464
- (void )FIRTOTPSecret_h : (FIRTOTPSecret *)secret {
@@ -480,7 +480,7 @@ - (void)FIRTOTPMultiFactorGenerator_h:(FIRMultiFactorSession *)session
480
480
#endif
481
481
482
482
- (void )FIRTwitterAuthProvider_h {
483
- FIRAuthCredential *c = [FIRTwitterAuthProvider credentialWithToken: @" token" secret: @" secret" ];
483
+ __unused FIRAuthCredential *c = [FIRTwitterAuthProvider credentialWithToken: @" token" secret: @" secret" ];
484
484
}
485
485
486
486
- (void )FIRUser_h : (FIRUser *)user credential : (FIRAuthCredential *)credential {
@@ -564,10 +564,10 @@ - (void)FIRUser_h:(FIRUser *)user credential:(FIRAuthCredential *)credential {
564
564
- (void )userProperties : (FIRUser *)user {
565
565
BOOL b = [user isAnonymous ];
566
566
b = [user isEmailVerified ];
567
- NSArray <NSObject <FIRUserInfo> *> *userInfo = [user providerData ];
568
- FIRUserMetadata *meta = [user metadata ];
567
+ __unused NSArray <NSObject <FIRUserInfo> *> *userInfo = [user providerData ];
568
+ __unused FIRUserMetadata *meta = [user metadata ];
569
569
#if TARGET_OS_IOS
570
- FIRMultiFactor *mf = [user multiFactor ];
570
+ __unused FIRMultiFactor *mf = [user multiFactor ];
571
571
#endif
572
572
NSString *s = [user refreshToken ];
573
573
s = [user tenantID ];
@@ -585,7 +585,7 @@ - (void)userInfoProperties:(NSObject<FIRUserInfo> *)userInfo {
585
585
s = [userInfo displayName ];
586
586
s = [userInfo email ];
587
587
s = [userInfo phoneNumber ];
588
- NSURL *u = [userInfo photoURL ];
588
+ __unused NSURL *u = [userInfo photoURL ];
589
589
}
590
590
591
591
- (void )userMetadataProperties : (FIRUserMetadata *)metadata {
0 commit comments