Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Jan 9, 2025
1 parent d4e5be3 commit 8d373c7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 66 deletions.
1 change: 0 additions & 1 deletion FirebaseRemoteConfig.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ app update.
fake_console.source_files = ['FirebaseRemoteConfig/Tests/Swift/SwiftAPI/*.swift',
'FirebaseRemoteConfig/Tests/Swift/FakeUtils/*.swift',
'FirebaseRemoteConfig/Tests/Swift/FakeConsole/*.swift',
'FirebaseRemoteConfig/Tests/Swift/ObjC/*.[hm]',
]
fake_console.resources = 'FirebaseRemoteConfig/Tests/Swift/Defaults-testInfo.plist'
fake_console.requires_app_host = true
Expand Down
49 changes: 0 additions & 49 deletions FirebaseRemoteConfig/Sources/Private/FIRRemoteConfig_Private.h

This file was deleted.

5 changes: 3 additions & 2 deletions FirebaseRemoteConfig/SwiftNew/RemoteConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,9 @@ open class RemoteConfig: NSObject, NSFastEnumeration {
/// - Returns Returns a registration representing the listener. The registration
/// contains a remove method, which can be used to stop receiving updates for the provided
/// listener.
@objc public func addOnConfigUpdateListener(remoteConfigUpdateCompletion listener: @Sendable @escaping (RemoteConfigUpdate?,
Error?)
@discardableResult
@objc(addOnConfigUpdateListener:) public func addOnConfigUpdateListener(remoteConfigUpdateCompletion listener: @Sendable @escaping (RemoteConfigUpdate?,
Error?)
-> Void)
-> ConfigUpdateListenerRegistration {
return configRealtime.addConfigUpdateListener(listener)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@
#import <FirebaseCore/FIROptions.h>
#import <FirebaseCore/FirebaseCore.h>
#import <FirebaseInstallations/FirebaseInstallations.h>
#import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
#import "../../../Sources/Private/FIRRemoteConfig_Private.h"
@import FirebaseRemoteConfig;
#import "FRCLog.h"

@import FirebaseRemoteConfig;
@import FirebaseRemoteConfigInterop;

typedef void (^FIRRemoteConfigFetchCompletion)(FIRRemoteConfigFetchStatus status,
NSError *_Nullable error)
NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");
typedef void (^FIRRemoteConfigActivateCompletion)(NSError *_Nullable error)
NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");
typedef void (^FIRRemoteConfigFetchAndActivateCompletion)(
FIRRemoteConfigFetchAndActivateStatus status, NSError *_Nullable error)
NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead.");

static NSString *const FIRPerfNamespace = @"fireperf";
static NSString *const FIRDefaultFIRAppName = @"__FIRAPP_DEFAULT";
static NSString *const FIRSecondFIRAppName = @"secondFIRApp";
Expand Down
12 changes: 1 addition & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,7 @@ let package = Package(
),
.testTarget(
name: "RemoteConfigFakeConsole",
dependencies: ["FirebaseRemoteConfig",
"RemoteConfigFakeConsoleObjC"],
dependencies: ["FirebaseRemoteConfig"],
path: "FirebaseRemoteConfig/Tests/Swift",
exclude: [
"AccessToken.json",
Expand All @@ -1011,15 +1010,6 @@ let package = Package(
.headerSearchPath("../../../"),
]
),
.target(
name: "RemoteConfigFakeConsoleObjC",
dependencies: [.product(name: "OCMock", package: "ocmock")],
path: "FirebaseRemoteConfig/Tests/Swift/ObjC",
publicHeadersPath: ".",
cSettings: [
.headerSearchPath("../../../../"),
]
),
// Internal headers only for consuming from other SDK.
.target(
name: "FirebaseRemoteConfigInterop",
Expand Down

0 comments on commit 8d373c7

Please sign in to comment.