Skip to content

Commit dbd960d

Browse files
authored
Add interop API to prepare for RC open sourcing (#3582)
1 parent 31fa353 commit dbd960d

File tree

6 files changed

+15
-1
lines changed

6 files changed

+15
-1
lines changed

Example/DynamicLinks/Tests/FIRDLScionLoggingTest.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ - (void)clearConditionalUserProperty:(nonnull NSString *)userPropertyName
9595
- (void)setConditionalUserProperty:(nonnull NSDictionary<NSString *, id> *)conditionalUserProperty {
9696
}
9797

98+
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
99+
}
98100
@end
99101

100102
@interface FIRDLScionLoggingTest : XCTestCase

Example/Messaging/Tests/FIRMessagingAnalyticsTest.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ - (void)clearConditionalUserProperty:(nonnull NSString *)userPropertyName forOri
115115
- (void)setConditionalUserProperty:(nonnull NSDictionary<NSString *,id> *)conditionalUserProperty {
116116
}
117117

118+
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
119+
}
118120
@end
119121

120122
@interface FIRMessagingAnalytics (ExposedForTest)

FirebaseABTesting/Tests/Unit/ABTFakeFIRAConditionalUserPropertyController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,6 @@ - (void)registerAnalyticsListener:(nonnull id<FIRAnalyticsInteropListener>)liste
137137
- (void)unregisterAnalyticsListenerWithOrigin:(nonnull NSString *)origin {
138138
}
139139

140+
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
141+
}
140142
@end

FirebaseAnalyticsInterop.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FirebaseAnalyticsInterop'
3-
s.version = '1.3.0'
3+
s.version = '1.4.0'
44
s.summary = 'Interfaces that allow other Firebase SDKs to use Analytics functionality.'
55

66
s.description = <<-DESC

InAppMessaging/Example/Tests/FIRIAMAnalyticsEventLoggerImplTests.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ - (void)clearConditionalUserProperty:(nonnull NSString *)userPropertyName
130130
- (void)setConditionalUserProperty:(nonnull NSDictionary<NSString *, id> *)conditionalUserProperty {
131131
}
132132

133+
- (void)getUserPropertiesWithCallback:(nonnull FIRAInteropUserPropertiesCallback)callback {
134+
}
133135
@end
134136

135137
@implementation FIRIAMAnalyticsEventLoggerImplTests

Interop/Analytics/Public/FIRAnalyticsInterop.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
NS_ASSUME_NONNULL_BEGIN
2222

23+
/// Block typedef callback parameter to getUserPropertiesWithCallback:.
24+
typedef void (^FIRAInteropUserPropertiesCallback)(NSDictionary<NSString *, id> *userProperties);
25+
2326
/// Connector for bridging communication between Firebase SDKs and FirebaseAnalytics API.
2427
@protocol FIRAnalyticsInterop
2528

@@ -40,6 +43,9 @@ NS_ASSUME_NONNULL_BEGIN
4043
/// Returns the maximum number of user properties.
4144
- (NSInteger)maxUserProperties:(NSString *)origin;
4245

46+
/// Returns the user properties to a callback function.
47+
- (void)getUserPropertiesWithCallback:(FIRAInteropUserPropertiesCallback)callback;
48+
4349
/// Logs events.
4450
- (void)logEventWithOrigin:(NSString *)origin
4551
name:(NSString *)name

0 commit comments

Comments
 (0)