Skip to content

Commit e68fcc9

Browse files
committed
review
1 parent 5583b3e commit e68fcc9

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

FirebasePerformance/Sources/Configurations/FPRRemoteConfigFlags+Private.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@
1818

1919
NS_ASSUME_NONNULL_BEGIN
2020

21+
@interface FIRRemoteConfig ()
22+
+ (FIRRemoteConfig *)remoteConfigWithFIRNamespace:(NSString *)remoteConfigNamespace
23+
app:(FIRApp *)app;
24+
@end
25+
26+
@interface FIRRemoteConfigValue ()
27+
@property(nonatomic, readwrite, assign) FIRRemoteConfigSource source;
28+
29+
/// Designated initializer.
30+
- (instancetype)initWithData:(nullable NSData *)data
31+
source:(FIRRemoteConfigSource)source NS_DESIGNATED_INITIALIZER;
32+
@end
33+
2134
@class GULUserDefaults;
2235

2336
static NSString *const kFPRConfigPrefix = @"com.fireperf";

FirebaseRemoteConfig/Sources/Public/FirebaseRemoteConfig/FIRRemoteConfig.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -354,18 +354,5 @@ typedef void (^FIRRemoteConfigUpdateCompletion)(FIRRemoteConfigUpdate *_Nullable
354354
userDefaults:(nullable NSUserDefaults *)userDefaults
355355
analytics:(nullable id<FIRAnalyticsInterop>)analytics;
356356

357-
/// Firebase INTERNAL use only!
358-
/// Returns the FIRRemoteConfig instance for your namespace and for the default 3P developer's app.
359-
/// This singleton object contains the complete set of Remote Config parameter values available to
360-
/// the app, including the Active Config and Default Config. This object also caches values fetched
361-
/// from the Remote Config Server until they are copied to the Active Config by calling
362-
/// activateFetched. When you fetch values from the Remote Config Server using the default Firebase
363-
/// namespace service, you should use this class method to create a shared instance of the
364-
/// FIRRemoteConfig object to ensure that your app will function properly with the Remote Config
365-
/// Server and the Firebase service.
366-
+ (FIRRemoteConfig *)remoteConfigWithFIRNamespace:(NSString *)remoteConfigNamespace
367-
app:(FIRApp *)app
368-
NS_SWIFT_NAME(remoteConfig(FIRNamespace:app:));
369-
370357
@end
371358
NS_ASSUME_NONNULL_END

FirebaseRemoteConfig/SwiftNew/RemoteConfigValue.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import FirebaseCore
1616
import Foundation
1717

18+
// TODO: Some objc's and public's should be removed.
19+
1820
@objc(FIRRemoteConfigValue)
1921
public class RemoteConfigValue: NSObject, NSCopying {
2022
/// Data backing the config value.
@@ -24,8 +26,8 @@ public class RemoteConfigValue: NSObject, NSCopying {
2426
@objc public let source: RemoteConfigSource
2527

2628
/// Designated initializer. Only for Firebase internal use.
27-
@objc public init(data: Data, source: RemoteConfigSource) {
28-
dataValue = data
29+
@objc public init(data: Data?, source: RemoteConfigSource) {
30+
dataValue = data ?? Data()
2931
self.source = source
3032
}
3133

0 commit comments

Comments
 (0)