Pārlūkot izejas kodu

[Config] Fix Xcode 16.3 warning due to comparing two different enums (#14873)

Nick Cooke 10 mēneši atpakaļ
vecāks
revīzija
1ce88877de

+ 3 - 0
FirebaseRemoteConfig/CHANGELOG.md

@@ -1,3 +1,6 @@
+# Unreleased
+- [fixed] Fix build warning from comparison of different enumeration types.
+
 # 11.13.0
 - [fixed] Fix an issue where network requests would fail in the iOS 18.4
   simulator due to a URLSession bug introduced in Xcode 16.3. (#14728)

+ 1 - 1
FirebaseRemoteConfig/Sources/RCNConfigContent.m

@@ -198,7 +198,7 @@ const NSTimeInterval kDatabaseLoadTimeoutSecs = 30.0;
   toDict[FIRNamespace] = [[NSMutableDictionary alloc] init];
   NSDictionary *config = fromDict[FIRNamespace];
   for (NSString *key in config) {
-    if (DBSource == FIRRemoteConfigSourceDefault) {
+    if (DBSource == RCNDBSourceDefault) {
       NSObject *value = config[key];
       NSData *valueData;
       if ([value isKindOfClass:[NSData class]]) {