File tree 6 files changed +13
-6
lines changed
6 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ Pod::Spec.new do |s|
48
48
s . dependency 'FirebaseAppCheckInterop' , '~> 10.17'
49
49
s . dependency 'FirebaseCore' , '~> 10.0'
50
50
s . dependency 'PromisesObjC' , '~> 2.1'
51
- s . dependency 'GoogleUtilities/Environment' , '~> 7.8'
51
+ s . dependency 'GoogleUtilities/Environment' , '~> 7.13'
52
+ s . dependency 'GoogleUtilities/UserDefaults' , '~> 7.13'
52
53
53
54
s . pod_target_xcconfig = {
54
55
'GCC_C_LANGUAGE_STANDARD' => 'c99' ,
Original file line number Diff line number Diff line change 18
18
19
19
#import < AppCheckCore/AppCheckCore.h>
20
20
#import < FirebaseAppCheckInterop/FirebaseAppCheckInterop.h>
21
+ #import < GoogleUtilities/GULUserDefaults.h>
21
22
22
23
#import " FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckErrors.h"
23
24
#import " FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckProvider.h"
@@ -92,7 +93,7 @@ - (nullable instancetype)initWithApp:(FIRApp *)app {
92
93
[[FIRInternalAppCheckProvider alloc ] initWithAppCheckProvider: appCheckProvider];
93
94
FIRAppCheckSettings *settings =
94
95
[[FIRAppCheckSettings alloc ] initWithApp: app
95
- userDefault: [NSUserDefaults standardUserDefaults ]
96
+ userDefault: [GULUserDefaults standardUserDefaults ]
96
97
mainBundle: [NSBundle mainBundle ]];
97
98
98
99
GACAppCheck *appCheckCore = [[GACAppCheck alloc ] initWithServiceName: serviceName
Original file line number Diff line number Diff line change 19
19
#import < AppCheckCore/AppCheckCore.h>
20
20
21
21
@class FIRApp;
22
+ @class GULUserDefaults;
22
23
23
24
NS_ASSUME_NONNULL_BEGIN
24
25
@@ -32,7 +33,7 @@ FOUNDATION_EXPORT NSString *const kFIRAppCheckTokenAutoRefreshEnabledInfoPlistKe
32
33
@property (nonatomic , assign ) BOOL isTokenAutoRefreshEnabled;
33
34
34
35
- (instancetype )initWithApp : (FIRApp *)firebaseApp
35
- userDefault : (NSUserDefaults *)userDefaults
36
+ userDefault : (GULUserDefaults *)userDefaults
36
37
mainBundle : (NSBundle *)mainBundle NS_DESIGNATED_INITIALIZER;
37
38
38
39
- (instancetype )init NS_UNAVAILABLE;
Original file line number Diff line number Diff line change 16
16
17
17
#import " FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.h"
18
18
19
+ #import < GoogleUtilities/GULUserDefaults.h>
20
+
19
21
#import " FirebaseCore/Extension/FirebaseCoreInternal.h"
20
22
21
23
NS_ASSUME_NONNULL_BEGIN
28
30
@interface FIRAppCheckSettings ()
29
31
30
32
@property (nonatomic , weak , readonly ) FIRApp *firebaseApp;
31
- @property (nonatomic , readonly ) NSUserDefaults *userDefaults;
33
+ @property (nonatomic , readonly ) GULUserDefaults *userDefaults;
32
34
@property (nonatomic , readonly ) NSBundle *mainBundle;
33
35
@property (nonatomic , readonly ) NSString *userDefaultKey;
34
36
@property (nonatomic , assign ) BOOL isTokenAutoRefreshConfigured;
@@ -38,7 +40,7 @@ @interface FIRAppCheckSettings ()
38
40
@implementation FIRAppCheckSettings
39
41
40
42
- (instancetype )initWithApp : (FIRApp *)firebaseApp
41
- userDefault : (NSUserDefaults *)userDefaults
43
+ userDefault : (GULUserDefaults *)userDefaults
42
44
mainBundle : (NSBundle *)mainBundle {
43
45
self = [super init ];
44
46
if (self) {
Original file line number Diff line number Diff line change 16
16
17
17
#import < XCTest/XCTest.h>
18
18
19
+ #import < GoogleUtilities/GULUserDefaults.h>
19
20
#import < OCMock/OCMock.h>
20
21
21
22
#import " FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.h"
@@ -46,7 +47,7 @@ - (void)setUp {
46
47
47
48
self.mockApp = OCMClassMock ([FIRApp class ]);
48
49
OCMStub ([self .mockApp name ]).andReturn (self.appName );
49
- self.mockUserDefaults = OCMClassMock ([NSUserDefaults class ]);
50
+ self.mockUserDefaults = OCMClassMock ([GULUserDefaults class ]);
50
51
self.bundleMock = OCMClassMock ([NSBundle class ]);
51
52
52
53
self.settings = [[FIRAppCheckSettings alloc ] initWithApp: self .mockApp
Original file line number Diff line number Diff line change @@ -1290,6 +1290,7 @@ let package = Package(
1290
1290
. product( name: " AppCheckCore " , package : " app-check " ) ,
1291
1291
. product( name: " FBLPromises " , package : " Promises " ) ,
1292
1292
. product( name: " GULEnvironment " , package : " GoogleUtilities " ) ,
1293
+ . product( name: " GULUserDefaults " , package : " GoogleUtilities " ) ,
1293
1294
] ,
1294
1295
path: " FirebaseAppCheck/Sources " ,
1295
1296
publicHeadersPath: " Public " ,
You can’t perform that action at this time.
0 commit comments