Skip to content

Commit

Permalink
fix: a typo in a method name
Browse files Browse the repository at this point in the history
  • Loading branch information
MojtabaHs committed Oct 3, 2024
1 parent 9e7fbce commit 0f8f6f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ - (void)setupAnalyticsEventListening {
}
}

if (self.analycisEventDislayCheckFlow) {
if (self.analycisEventDisplayCheckFlow) {
if ([self.firebaseAnalyticEventsToWatch count] > 0) {
FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM160010",
@"There are analytics event trigger based messages, enable listening");
[self.analycisEventDislayCheckFlow start];
[self.analycisEventDisplayCheckFlow start];
} else {
FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM160011",
@"No analytics event trigger based messages, disable listening");
[self.analycisEventDislayCheckFlow stop];
[self.analycisEventDisplayCheckFlow stop];
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ API_AVAILABLE(ios(13.0), tvos(13.0))
// analytics event listening based on the latest message definitions
// make it weak to avoid retaining cycle
@property(nonatomic, weak, nullable)
FIRIAMDisplayCheckOnAnalyticEventsFlow *analycisEventDislayCheckFlow;
FIRIAMDisplayCheckOnAnalyticEventsFlow *analycisEventDisplayCheckFlow;

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithBookkeeper:(id<FIRIAMBookKeeper>)bookKeeper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ - (void)internalStartRuntimeWithSDKSettings:(FIRIAMSDKSettings *)settings {
self.displayOnFIRAnalyticEventsFlow =
[[FIRIAMDisplayCheckOnAnalyticEventsFlow alloc] initWithDisplayFlow:self.displayExecutor];

self.messageCache.analycisEventDislayCheckFlow = self.displayOnFIRAnalyticEventsFlow;
self.messageCache.analycisEventDisplayCheckFlow = self.displayOnFIRAnalyticEventsFlow;
[self.messageCache
loadMessageDataFromServerFetchStorage:self.fetchResultStorage
withCompletion:^(BOOL success) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ - (void)testCallingStartAnalyticsEventListenFlow_ok {

FIRIAMDisplayCheckOnAnalyticEventsFlow *mockAnalyticsEventFlow =
OCMClassMock(FIRIAMDisplayCheckOnAnalyticEventsFlow.class);
self.clientCache.analycisEventDislayCheckFlow = mockAnalyticsEventFlow;
self.clientCache.analycisEventDisplayCheckFlow = mockAnalyticsEventFlow;

// m2 and m4 are messages rendered on 'test_event' Firebase Analytics event
// so we espect the analytics event listening flow to be started
Expand All @@ -339,7 +339,7 @@ - (void)testCallingStopAnalyticsEventListenFlow_ok {

FIRIAMDisplayCheckOnAnalyticEventsFlow *mockAnalyticsEventFlow =
OCMClassMock(FIRIAMDisplayCheckOnAnalyticEventsFlow.class);
self.clientCache.analycisEventDislayCheckFlow = mockAnalyticsEventFlow;
self.clientCache.analycisEventDisplayCheckFlow = mockAnalyticsEventFlow;

// m1 and m3 are messages rendered on app foreground triggers
OCMExpect([mockAnalyticsEventFlow stop]);
Expand All @@ -352,7 +352,7 @@ - (void)testCallingStartAndThenStopAnalyticsEventListenFlow_ok {

FIRIAMDisplayCheckOnAnalyticEventsFlow *mockAnalyticsEventFlow =
OCMClassMock(FIRIAMDisplayCheckOnAnalyticEventsFlow.class);
self.clientCache.analycisEventDislayCheckFlow = mockAnalyticsEventFlow;
self.clientCache.analycisEventDisplayCheckFlow = mockAnalyticsEventFlow;

// start is triggered on the setMessageData: call
OCMExpect([mockAnalyticsEventFlow start]);
Expand Down

0 comments on commit 0f8f6f7

Please sign in to comment.