diff --git a/Example/DynamicLinks/Tests/FIRDLScionLoggingTest.m b/Example/DynamicLinks/Tests/FIRDLScionLoggingTest.m index e7cb81847c..8b509d02a1 100644 --- a/Example/DynamicLinks/Tests/FIRDLScionLoggingTest.m +++ b/Example/DynamicLinks/Tests/FIRDLScionLoggingTest.m @@ -95,6 +95,8 @@ static FakeAnalyticsLogEventWithOriginNameParametersHandler _handler; - (void)setConditionalUserProperty:(nonnull NSDictionary *)conditionalUserProperty { } +- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback { +} @end @interface FIRDLScionLoggingTest : XCTestCase diff --git a/Example/Messaging/Tests/FIRMessagingAnalyticsTest.m b/Example/Messaging/Tests/FIRMessagingAnalyticsTest.m index 19b335bef0..adaa4ddfdb 100644 --- a/Example/Messaging/Tests/FIRMessagingAnalyticsTest.m +++ b/Example/Messaging/Tests/FIRMessagingAnalyticsTest.m @@ -115,6 +115,8 @@ static FakeAnalyticsLogEventHandler _userPropertyHandler; - (void)setConditionalUserProperty:(nonnull NSDictionary *)conditionalUserProperty { } +- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback { +} @end @interface FIRMessagingAnalytics (ExposedForTest) diff --git a/FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.m b/FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.m index 4de3f2bb27..53bda07e76 100644 --- a/FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.m +++ b/FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.m @@ -137,4 +137,6 @@ - (void)unregisterAnalyticsListenerWithOrigin:(nonnull NSString *)origin { } +- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback { +} @end diff --git a/FirebaseAnalyticsInterop.podspec b/FirebaseAnalyticsInterop.podspec index f6625172a2..9b3e0cb86e 100644 --- a/FirebaseAnalyticsInterop.podspec +++ b/FirebaseAnalyticsInterop.podspec @@ -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 diff --git a/InAppMessaging/Example/Tests/FIRIAMAnalyticsEventLoggerImplTests.m b/InAppMessaging/Example/Tests/FIRIAMAnalyticsEventLoggerImplTests.m index 767e02aaae..f8de3312a9 100644 --- a/InAppMessaging/Example/Tests/FIRIAMAnalyticsEventLoggerImplTests.m +++ b/InAppMessaging/Example/Tests/FIRIAMAnalyticsEventLoggerImplTests.m @@ -130,6 +130,8 @@ typedef void (^FakeAnalyticsLastNotificationHandler)(NSString *origin, LastNotif - (void)setConditionalUserProperty:(nonnull NSDictionary *)conditionalUserProperty { } +- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback { +} @end @implementation FIRIAMAnalyticsEventLoggerImplTests diff --git a/Interop/Analytics/Public/FIRAnalyticsInterop.h b/Interop/Analytics/Public/FIRAnalyticsInterop.h index dd706e742e..6581b5368d 100644 --- a/Interop/Analytics/Public/FIRAnalyticsInterop.h +++ b/Interop/Analytics/Public/FIRAnalyticsInterop.h @@ -20,6 +20,9 @@ NS_ASSUME_NONNULL_BEGIN +/// Block typedef callback parameter to getUserPropertiesWithCallback:. +typedef void (^FIRAInteropUserPropertiesCallback)(NSDictionary *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