File tree Expand file tree Collapse file tree 5 files changed +30
-24
lines changed
FirebaseAppCheck/Sources/Core
FirebaseAuth/Sources/Auth
FirebaseDatabase/Sources/Api
FirebaseInstallations/Source/Library Expand file tree Collapse file tree 5 files changed +30
-24
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,10 @@ + (instancetype)appCheck {
174
174
if (!defaultApp) {
175
175
[NSException raise: FIRAppCheckErrorDomain
176
176
format: @" The default FirebaseApp instance must be configured before the default"
177
- @" AppCheck instance can be initialized. One way to ensure that is to "
178
- @" call `[FIRApp configure];` (` FirebaseApp.configure()` in Swift) in the App"
179
- @" Delegate's `application:didFinishLaunchingWithOptions:` "
180
- @" (`application(_:didFinishLaunchingWithOptions:)` in Swift )." ];
177
+ @" AppCheck instance can be initialized. One way to ensure this is to "
178
+ @" call `FirebaseApp.configure()` in the App Delegate's "
179
+ @" `application(_ :didFinishLaunchingWithOptions:)` (or the `@main` struct's "
180
+ @" initializer in SwiftUI )." ];
181
181
}
182
182
return [self appCheckWithApp: defaultApp];
183
183
}
Original file line number Diff line number Diff line change @@ -433,12 +433,13 @@ + (void)initialize {
433
433
+ (FIRAuth *)auth {
434
434
FIRApp *defaultApp = [FIRApp defaultApp ];
435
435
if (!defaultApp) {
436
- [NSException raise: NSInternalInconsistencyException
437
- format: @" The default FIRApp instance must be configured before the default FIRAuth"
438
- @" instance can be initialized. One way to ensure that is to call "
439
- @" `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) in the App "
440
- @" Delegate's `application:didFinishLaunchingWithOptions:` "
441
- @" (`application(_:didFinishLaunchingWithOptions:)` in Swift)." ];
436
+ [NSException
437
+ raise: NSInternalInconsistencyException
438
+ format: @" The default FirebaseApp instance must be configured before the default Auth"
439
+ @" instance can be initialized. One way to ensure this is to call "
440
+ @" `FirebaseApp.configure()` in the App Delegate's "
441
+ @" `application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's "
442
+ @" initializer in SwiftUI)." ];
442
443
}
443
444
return [self authWithApp: defaultApp];
444
445
}
@@ -1393,7 +1394,7 @@ - (void)removeAuthStateDidChangeListener:(FIRAuthStateDidChangeListenerHandle)li
1393
1394
- (FIRIDTokenDidChangeListenerHandle)addIDTokenDidChangeListener :
1394
1395
(FIRIDTokenDidChangeListenerBlock)listener {
1395
1396
if (!listener) {
1396
- [NSException raise: NSInvalidArgumentException format: @" listener must not be nil." ];
1397
+ [NSException raise: NSInvalidArgumentException format: @" Listener must not be nil." ];
1397
1398
return nil ;
1398
1399
}
1399
1400
FIRAuthStateDidChangeListenerHandle handle;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ + (void)configure {
129
129
FIROptions *options = [FIROptions defaultOptions ];
130
130
if (!options) {
131
131
[NSException raise: kFirebaseCoreErrorDomain
132
- format: @" `[FIRApp configure];` (` FirebaseApp.configure()` in Swift) could not find "
132
+ format: @" `FirebaseApp.configure()` could not find "
133
133
@" a valid GoogleService-Info.plist in your project. Please download one "
134
134
@" from %@ ." ,
135
135
kPlistURL ];
@@ -250,8 +250,11 @@ + (FIRApp *)defaultApp {
250
250
}
251
251
FIRLogError (kFIRLoggerCore , @" I-COR000003" ,
252
252
@" The default Firebase app has not yet been "
253
- @" configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your "
254
- @" application initialization. Read more: https://goo.gl/ctyzm8." );
253
+ @" configured. Add `FirebaseApp.configure()` to your "
254
+ @" application initialization. This can be done in "
255
+ @" in the App Delegate's application(_:didFinishLaunchingWithOptions:)` "
256
+ @" (or the `@main` struct's initializer in SwiftUI). "
257
+ @" Read more: https://goo.gl/ctyzm8." );
255
258
return nil ;
256
259
}
257
260
Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ @implementation FIRDatabase
32
32
33
33
+ (FIRDatabase *)database {
34
34
if (![FIRApp isDefaultAppConfigured ]) {
35
- [NSException raise: @" FIRAppNotConfigured"
36
- format: @" Failed to get default Firebase Database instance. "
37
- @" Must call `[FIRApp "
38
- @" configure]` (`FirebaseApp.configure()` in Swift) "
39
- @" before using "
40
- @" Firebase Database." ];
35
+ [NSException
36
+ raise: @" FIRAppNotConfigured"
37
+ format: @" The default FirebaseApp instance must be "
38
+ @" configured before the default Database instance "
39
+ @" can be initialized. One way to ensure this is to "
40
+ @" call `FirebaseApp.configure()` in the App Delegate's "
41
+ @" `application(_:didFinishLaunchingWithOptions:)` "
42
+ @" (or the `@main` struct's initializer in SwiftUI)." ];
41
43
}
42
44
return [FIRDatabase databaseForApp: [FIRApp defaultApp ]];
43
45
}
Original file line number Diff line number Diff line change @@ -189,10 +189,10 @@ + (FIRInstallations *)installations {
189
189
if (!defaultApp) {
190
190
[NSException raise: kFirebaseInstallationsErrorDomain
191
191
format: @" The default FirebaseApp instance must be configured before the default"
192
- @" FirebaseApp instance can be initialized. One way to ensure that is to "
193
- @" call `[FIRApp configure];` (` FirebaseApp.configure()` in Swift) in the App"
194
- @" Delegate's `application:didFinishLaunchingWithOptions:` "
195
- @" (`application(_:didFinishLaunchingWithOptions:)` in Swift )." ];
192
+ @" FirebaseApp instance can be initialized. One way to ensure this is to "
193
+ @" call `FirebaseApp.configure()` in the App Delegate's "
194
+ @" `application(_ :didFinishLaunchingWithOptions:) ` "
195
+ @" (or the `@main` struct's initializer in SwiftUI )." ];
196
196
}
197
197
198
198
return [self installationsWithApp: defaultApp];
You can’t perform that action at this time.
0 commit comments