Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Dec 16, 2024
1 parent e4a895c commit 534ea5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ typedef void (^FIRRemoteConfigUpdateCompletion)(FIRRemoteConfigUpdate *_Nullable
userDefaults:(nullable NSUserDefaults *)userDefaults
analytics:(nullable id<FIRAnalyticsInterop>)analytics;

/// Register RolloutsStateSubcriber to FIRRemoteConfig instance
/// Register `FIRRolloutsStateSubscriber` to `FIRRemoteConfig` instance
- (void)addRemoteConfigInteropSubscriber:(id<FIRRolloutsStateSubscriber> _Nonnull)subscriber;

@end
Expand Down
11 changes: 4 additions & 7 deletions FirebaseRemoteConfig/SwiftNew/RemoteConfigComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ extension RemoteConfigComponent: RemoteConfigProvider {
return nil
}

// Validate the required information is available.
let errorPropertyName = if app.options.googleAppID.isEmpty {
"googleAppID"
} else if app.options.gcmSenderID.isEmpty {
Expand All @@ -74,13 +75,9 @@ extension RemoteConfigComponent: RemoteConfigProvider {
} else { nil as String? }

if let errorPropertyName {
NSException.raise(
NSExceptionName("com.firebase.config"),
format: "Firebase Remote Config is missing the required %@ property from the " +
"configured FirebaseApp and will not be able to function properly. " +
"Please fix this issue to ensure that Firebase is correctly configured.",
arguments: getVaList([errorPropertyName])
)
fatalError("Firebase Remote Config is missing the required \(errorPropertyName) property from the " +
"configured FirebaseApp and will not be able to function properly. " +
"Please fix this issue to ensure that Firebase is correctly configured.")
}

instancesLock.lock()
Expand Down

0 comments on commit 534ea5c

Please sign in to comment.