Skip to content

Commit 52f246c

Browse files
authored
[AppCheck] Fix unused isTokenAutoRefreshEnabled ivar warning (#10818)
Stopped synthesizing a backing instance variable for the `isTokenAutoRefreshEnabled` property in `FIRAppCheckSettings` because it is unused, resulting in a warning when "-Wunused-property-ivar" is enabled. This resolves the error "FIRAppCheckSettings.m:92:1: error: ivar '_isTokenAutoRefreshEnabled' which backs the property is not referenced in this property's accessor [-Werror,-Wunused-property-ivar]" when building in google3 (where this warning is treated as an error).
1 parent 206cef3 commit 52f246c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ @interface FIRAppCheckSettings ()
3131
@property(nonatomic, readonly) NSUserDefaults *userDefaults;
3232
@property(nonatomic, readonly) NSBundle *mainBundle;
3333
@property(nonatomic, readonly) NSString *userDefaultKey;
34-
3534
@property(nonatomic, nullable) NSNumber *isTokenAutoRefreshEnabledNumber;
35+
3636
@end
3737

3838
@implementation FIRAppCheckSettings
3939

40-
@synthesize isTokenAutoRefreshEnabled = _isTokenAutoRefreshEnabled;
40+
@dynamic isTokenAutoRefreshEnabled;
4141

4242
- (instancetype)initWithApp:(FIRApp *)firebaseApp
4343
userDefault:(NSUserDefaults *)userDefaults

0 commit comments

Comments
 (0)