Skip to content

Commit 19876a4

Browse files
committed
[rc-swift] ConfigDBManager
1 parent b4e5bcf commit 19876a4

23 files changed

+1686
-1679
lines changed

FirebaseRemoteConfig.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ app update.
5353
}
5454
s.dependency 'FirebaseABTesting', '~> 11.0'
5555
s.dependency 'FirebaseSharedSwift', '~> 11.0'
56-
s.dependency 'FirebaseCore', '~> 11.6.0'
56+
s.dependency 'FirebaseCore', '11.6'
57+
s.dependency 'FirebaseCoreExtension', '11.6'
5758
s.dependency 'FirebaseInstallations', '~> 11.0'
5859
s.dependency 'GoogleUtilities/Environment', '~> 8.0'
5960
s.dependency 'GoogleUtilities/NSData+zlib', '~> 8.0'

FirebaseRemoteConfig/Sources/FIRRemoteConfig.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#import "FirebaseRemoteConfig/Sources/Private/RCNConfigSettings.h"
2525
#import "FirebaseRemoteConfig/Sources/RCNConfigConstants.h"
2626
#import "FirebaseRemoteConfig/Sources/RCNConfigContent.h"
27-
#import "FirebaseRemoteConfig/Sources/RCNConfigDBManager.h"
2827
#import "FirebaseRemoteConfig/Sources/RCNConfigExperiment.h"
2928
#import "FirebaseRemoteConfig/Sources/RCNConfigRealtime.h"
3029
#import "FirebaseRemoteConfig/Sources/RCNConfigValue_Internal.h"

FirebaseRemoteConfig/Sources/FIRRemoteConfigComponent.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
2020
#import "FirebaseRemoteConfig/Sources/Private/FIRRemoteConfig_Private.h"
2121
#import "FirebaseRemoteConfig/Sources/RCNConfigContent.h"
22-
#import "FirebaseRemoteConfig/Sources/RCNConfigDBManager.h"
2322
#import "Interop/Analytics/Public/FIRAnalyticsInterop.h"
2423

24+
#import "FirebaseRemoteConfig/FirebaseRemoteConfig-Swift.h"
25+
2526
@implementation FIRRemoteConfigComponent
2627

2728
// Because Component now need to register two protocols (provider and interop), we need a way to

FirebaseRemoteConfig/Sources/Private/RCNConfigSettings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
- (NSString *)nextRequestWithUserProperties:(NSDictionary *)userProperties;
121121

122122
/// Returns metadata from metadata table.
123-
- (NSDictionary *)loadConfigFromMetadataTable;
123+
- (void)loadConfigFromMetadataTable;
124124

125125
/// Updates internal content with the latest successful config response.
126126
- (void)updateInternalContentWithResponse:(NSDictionary *)response;

FirebaseRemoteConfig/Sources/Public/FirebaseRemoteConfig/FIRRemoteConfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ NS_SWIFT_NAME(RemoteConfigValue)
151151
@property(nonatomic, readonly, nullable) id JSONValue NS_SWIFT_NAME(jsonValue);
152152
/// Identifies the source of the fetched value.
153153
@property(nonatomic, readonly) FIRRemoteConfigSource source;
154+
155+
/// TODO: internal API for temporary bridging
156+
/// Designated initializer.
157+
- (instancetype _Nonnull)initWithData:(NSData *_Nonnull)data
158+
source:(FIRRemoteConfigSource)source NS_DESIGNATED_INITIALIZER;
154159
@end
155160

156161
#pragma mark - FIRRemoteConfigSettings

FirebaseRemoteConfig/Sources/RCNConfigContent.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@
1616

1717
#import <Foundation/Foundation.h>
1818

19+
#import "FirebaseRemoteConfig/FirebaseRemoteConfig-Swift.h"
1920
#import "FirebaseRemoteConfig/Sources/Public/FirebaseRemoteConfig/FIRRemoteConfig.h"
2021

21-
typedef NS_ENUM(NSInteger, RCNDBSource) {
22-
RCNDBSourceActive,
23-
RCNDBSourceDefault,
24-
RCNDBSourceFetched,
25-
};
26-
2722
@class RCNConfigDBManager;
2823

2924
/// This class handles all the config content that is fetched from the server, cached in local

FirebaseRemoteConfig/Sources/RCNConfigContent.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#import "FirebaseRemoteConfig/Sources/Private/FIRRemoteConfig_Private.h"
2222
#import "FirebaseRemoteConfig/Sources/Public/FirebaseRemoteConfig/FIRRemoteConfig.h"
2323
#import "FirebaseRemoteConfig/Sources/RCNConfigConstants.h"
24-
#import "FirebaseRemoteConfig/Sources/RCNConfigDBManager.h"
2524
#import "FirebaseRemoteConfig/Sources/RCNConfigDefines.h"
2625
#import "FirebaseRemoteConfig/Sources/RCNConfigValue_Internal.h"
2726

FirebaseRemoteConfig/Sources/RCNConfigDBManager.h

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

0 commit comments

Comments
 (0)