@@ -10,7 +10,7 @@ import Foundation
1010
1111/// Abstracts the Firebase `RemoteConfig` API surface used by `FirebaseRemoteConfigSource`,
1212/// enabling the class to be tested without subclassing the Firebase singleton.
13- protocol RemoteConfigInterface {
13+ protocol RemoteConfigInterface : Sendable {
1414 func fetchAndActivate( completionHandler: ( ( RemoteConfigFetchAndActivateStatus , ( any Error ) ? ) -> Void ) ? )
1515 func configEntry( forKey key: String ) -> ( data: Data , source: FirebaseRemoteConfig . RemoteConfigSource )
1616}
@@ -56,10 +56,6 @@ public final class FirebaseRemoteConfigSource: RemoteConfigSource {
5656 guard source != . static || !data. isEmpty else {
5757 return nil
5858 }
59-
60- guard !data. isEmpty else {
61- return nil
62- }
6359
6460 if let string = String ( data: data, encoding: . utf8) {
6561 if let boolValue = string. normalizedRemoteConfigBoolean {
@@ -87,9 +83,9 @@ private extension String {
8783
8884 var normalizedRemoteConfigBoolean : Bool ? {
8985 switch trimmingCharacters ( in: . whitespacesAndNewlines) . lowercased ( ) {
90- case " 1 " , " true " , " yes " , " y " , " on " :
86+ case " true " , " yes " , " y " , " on " :
9187 return true
92- case " 0 " , " false " , " no " , " n " , " off " :
88+ case " false " , " no " , " n " , " off " :
9389 return false
9490 default :
9591 return nil
0 commit comments