diff --git a/FirebaseRemoteConfig.podspec b/FirebaseRemoteConfig.podspec index a85c5fdf862..68d0af28e73 100644 --- a/FirebaseRemoteConfig.podspec +++ b/FirebaseRemoteConfig.podspec @@ -105,7 +105,6 @@ app update. } swift_api.source_files = ['FirebaseRemoteConfig/Tests/Swift/SwiftAPI/*.swift', 'FirebaseRemoteConfig/Tests/Swift/FakeUtils/*.swift', - 'FirebaseRemoteConfig/Tests/Swift/ObjC/*.[hm]', ] # Excludes tests that cannot be include in API tests because it requires fetch remote values from # a real console but only one test can be run without polluting other tests' remote values. diff --git a/FirebaseRemoteConfig/SwiftNew/RemoteConfig.swift b/FirebaseRemoteConfig/SwiftNew/RemoteConfig.swift index bd0f8469309..19143ce1c6a 100644 --- a/FirebaseRemoteConfig/SwiftNew/RemoteConfig.swift +++ b/FirebaseRemoteConfig/SwiftNew/RemoteConfig.swift @@ -140,7 +140,7 @@ private var RCInstances = [String: [String: RemoteConfig]]() /// to fetch, activate and read config results and set default config results on the default /// Remote Config instance. @objc(FIRRemoteConfig) -public class RemoteConfig: NSObject, NSFastEnumeration { +open class RemoteConfig: NSObject, NSFastEnumeration { /// All the config content. private let configContent: ConfigContent @@ -426,7 +426,7 @@ public class RemoteConfig: NSObject, NSFastEnumeration { /// and avoid calling this method again. @available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *) public func fetch() async throws -> RemoteConfigFetchStatus { - return try await withUnsafeThrowingContinuation() { continuation in + return try await withUnsafeThrowingContinuation { continuation in self.fetch { status, error in if let error { continuation.resume(throwing: error)