Add interop API to prepare for RC open sourcing (#3582)

This commit is contained in:
Paul Beusterien authored and GitHub committed 2019-08-13 18:23:59 -07:00
1 parent 31fa353d0a
commit dbd960db22
6 files changed
+15 -1

No files matched your search

@@ -95,6 +95,8 @@ static FakeAnalyticsLogEventWithOriginNameParametersHandler _handler;
- (void)setConditionalUserProperty:(nonnull NSDictionary<NSString *, id> *)conditionalUserProperty {
}
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
}
@end
@interface FIRDLScionLoggingTest : XCTestCase
@@ -115,6 +115,8 @@ static FakeAnalyticsLogEventHandler _userPropertyHandler;
- (void)setConditionalUserProperty:(nonnull NSDictionary<NSString *,id> *)conditionalUserProperty {
}
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
}
@end
@interface FIRMessagingAnalytics (ExposedForTest)
@@ -137,4 +137,6 @@
- (void)unregisterAnalyticsListenerWithOrigin:(nonnull NSString *)origin {
}
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
}
@end
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'FirebaseAnalyticsInterop'
s.version = '1.3.0'
s.version = '1.4.0'
s.summary = 'Interfaces that allow other Firebase SDKs to use Analytics functionality.'
s.description = <<-DESC
@@ -130,6 +130,8 @@ typedef void (^FakeAnalyticsLastNotificationHandler)(NSString *origin, LastNotif
- (void)setConditionalUserProperty:(nonnull NSDictionary<NSString *, id> *)conditionalUserProperty {
}
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
}
@end
@implementation FIRIAMAnalyticsEventLoggerImplTests
@@ -20,6 +20,9 @@
NS_ASSUME_NONNULL_BEGIN
/// Block typedef callback parameter to getUserPropertiesWithCallback:.
typedef void (^FIRAInteropUserPropertiesCallback)(NSDictionary<NSString *, id> *userProperties);
/// Connector for bridging communication between Firebase SDKs and FirebaseAnalytics API.
@protocol FIRAnalyticsInterop
@@ -40,6 +43,9 @@ NS_ASSUME_NONNULL_BEGIN
/// Returns the maximum number of user properties.
- (NSInteger)maxUserProperties:(NSString *)origin;
/// Returns the user properties to a callback function.
- (void)getUserPropertiesWithCallback:(FIRAInteropUserPropertiesCallback)callback;
/// Logs events.
- (void)logEventWithOrigin:(NSString *)origin
name:(NSString *)name