Skip to content

Commit f0038f4

Browse files
authored
[Config] Port 'FIRRemoteConfigComponent' (#14252)
1 parent cfd5fdc commit f0038f4

File tree

9 files changed

+165
-222
lines changed

9 files changed

+165
-222
lines changed

FirebaseCore/Sources/FIRApp.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ + (void)registerSwiftComponents {
805805
NSDictionary<NSString *, NSString *> *swiftComponents = @{
806806
@"FIRSessions" : @"fire-ses",
807807
@"FIRAuthComponent" : @"fire-auth",
808+
@"FIRRemoteConfigComponent" : @"fire-rc",
808809
};
809810
for (NSString *className in swiftComponents.allKeys) {
810811
Class klass = NSClassFromString(className);

FirebaseRemoteConfig/Sources/FIRRemoteConfig.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#import "FirebaseABTesting/Sources/Private/FirebaseABTestingInternal.h"
2020
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
21-
#import "FirebaseRemoteConfig/Sources/FIRRemoteConfigComponent.h"
2221
#import "FirebaseRemoteConfig/Sources/Private/FIRRemoteConfig_Private.h"
2322
#import "FirebaseRemoteConfig/Sources/Private/RCNConfigFetch.h"
2423
#import "FirebaseRemoteConfig/Sources/Private/RCNConfigSettings.h"

FirebaseRemoteConfig/Sources/FIRRemoteConfigComponent.h

Lines changed: 0 additions & 64 deletions
This file was deleted.

FirebaseRemoteConfig/Sources/FIRRemoteConfigComponent.m

Lines changed: 0 additions & 151 deletions
This file was deleted.

FirebaseRemoteConfig/Sources/Private/FIRRemoteConfig_Private.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
@class RCNConfigFetch;
2424
@class RCNConfigRealtime;
2525
@protocol FIRAnalyticsInterop;
26-
@protocol FIRRolloutsStateSubscriber;
2726

2827
NS_ASSUME_NONNULL_BEGIN
2928

@@ -49,9 +48,6 @@ NS_ASSUME_NONNULL_BEGIN
4948
+ (FIRRemoteConfig *)remoteConfigWithFIRNamespace:(NSString *)remoteConfigNamespace
5049
NS_SWIFT_NAME(remoteConfig(FIRNamespace:));
5150

52-
/// Register RolloutsStateSubcriber to FIRRemoteConfig instance
53-
- (void)addRemoteConfigInteropSubscriber:(id<FIRRolloutsStateSubscriber> _Nonnull)subscriber;
54-
5551
@end
5652

5753
NS_ASSUME_NONNULL_END

FirebaseRemoteConfig/Sources/Public/FirebaseRemoteConfig/FIRRemoteConfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
@class FIRRemoteConfigValue;
2626
@protocol FIRAnalyticsInterop;
2727

28+
@protocol FIRRolloutsStateSubscriber;
29+
2830
/// The Firebase Remote Config service default namespace, to be used if the API method does not
2931
/// specify a different namespace. Use the default namespace if configuring from the Google Firebase
3032
/// service.
@@ -354,5 +356,8 @@ typedef void (^FIRRemoteConfigUpdateCompletion)(FIRRemoteConfigUpdate *_Nullable
354356
userDefaults:(nullable NSUserDefaults *)userDefaults
355357
analytics:(nullable id<FIRAnalyticsInterop>)analytics;
356358

359+
/// Register `FIRRolloutsStateSubscriber` to `FIRRemoteConfig` instance
360+
- (void)addRemoteConfigInteropSubscriber:(id<FIRRolloutsStateSubscriber> _Nonnull)subscriber;
361+
357362
@end
358363
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)