From ae7375f2097fbd8a1446164adeed7c339148e540 Mon Sep 17 00:00:00 2001 From: Seyed Mojtaba Hosseini Zeidabadi Date: Tue, 1 Oct 2024 12:08:38 +0330 Subject: [PATCH] fix: a typo in a method name --- .../Sources/Flows/FIRIAMMessageClientCache.m | 6 +++--- .../Sources/Private/Flows/FIRIAMMessageClientCache.h | 2 +- .../Sources/Runtime/FIRIAMRuntimeManager.m | 2 +- .../Tests/Unit/FIRIAMMessageClientCacheTests.m | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m b/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m index 844272ceaa0..23501fad793 100644 --- a/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m +++ b/FirebaseInAppMessaging/Sources/Flows/FIRIAMMessageClientCache.m @@ -108,15 +108,15 @@ - (void)setupAnalyticsEventListening { } } - if (self.analycisEventDislayCheckFlow) { + if (self.analyticsEventDisplayCheckFlow) { if ([self.firebaseAnalyticEventsToWatch count] > 0) { FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM160010", @"There are analytics event trigger based messages, enable listening"); - [self.analycisEventDislayCheckFlow start]; + [self.analyticsEventDisplayCheckFlow start]; } else { FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM160011", @"No analytics event trigger based messages, disable listening"); - [self.analycisEventDislayCheckFlow stop]; + [self.analyticsEventDisplayCheckFlow stop]; } } } diff --git a/FirebaseInAppMessaging/Sources/Private/Flows/FIRIAMMessageClientCache.h b/FirebaseInAppMessaging/Sources/Private/Flows/FIRIAMMessageClientCache.h index 6d40355cea0..180a6824b82 100644 --- a/FirebaseInAppMessaging/Sources/Private/Flows/FIRIAMMessageClientCache.h +++ b/FirebaseInAppMessaging/Sources/Private/Flows/FIRIAMMessageClientCache.h @@ -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 *analyticsEventDisplayCheckFlow; - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithBookkeeper:(id)bookKeeper diff --git a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m index afaf6058b98..4dac79c274b 100644 --- a/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m +++ b/FirebaseInAppMessaging/Sources/Runtime/FIRIAMRuntimeManager.m @@ -369,7 +369,7 @@ - (void)internalStartRuntimeWithSDKSettings:(FIRIAMSDKSettings *)settings { self.displayOnFIRAnalyticEventsFlow = [[FIRIAMDisplayCheckOnAnalyticEventsFlow alloc] initWithDisplayFlow:self.displayExecutor]; - self.messageCache.analycisEventDislayCheckFlow = self.displayOnFIRAnalyticEventsFlow; + self.messageCache.analyticsEventDisplayCheckFlow = self.displayOnFIRAnalyticEventsFlow; [self.messageCache loadMessageDataFromServerFetchStorage:self.fetchResultStorage withCompletion:^(BOOL success) { diff --git a/FirebaseInAppMessaging/Tests/Unit/FIRIAMMessageClientCacheTests.m b/FirebaseInAppMessaging/Tests/Unit/FIRIAMMessageClientCacheTests.m index 2c7855be8f7..c9efa55a3d5 100644 --- a/FirebaseInAppMessaging/Tests/Unit/FIRIAMMessageClientCacheTests.m +++ b/FirebaseInAppMessaging/Tests/Unit/FIRIAMMessageClientCacheTests.m @@ -325,7 +325,7 @@ - (void)testCallingStartAnalyticsEventListenFlow_ok { FIRIAMDisplayCheckOnAnalyticEventsFlow *mockAnalyticsEventFlow = OCMClassMock(FIRIAMDisplayCheckOnAnalyticEventsFlow.class); - self.clientCache.analycisEventDislayCheckFlow = mockAnalyticsEventFlow; + self.clientCache.analyticsEventDisplayCheckFlow = mockAnalyticsEventFlow; // m2 and m4 are messages rendered on 'test_event' Firebase Analytics event // so we espect the analytics event listening flow to be started @@ -339,7 +339,7 @@ - (void)testCallingStopAnalyticsEventListenFlow_ok { FIRIAMDisplayCheckOnAnalyticEventsFlow *mockAnalyticsEventFlow = OCMClassMock(FIRIAMDisplayCheckOnAnalyticEventsFlow.class); - self.clientCache.analycisEventDislayCheckFlow = mockAnalyticsEventFlow; + self.clientCache.analyticsEventDisplayCheckFlow = mockAnalyticsEventFlow; // m1 and m3 are messages rendered on app foreground triggers OCMExpect([mockAnalyticsEventFlow stop]); @@ -352,7 +352,7 @@ - (void)testCallingStartAndThenStopAnalyticsEventListenFlow_ok { FIRIAMDisplayCheckOnAnalyticEventsFlow *mockAnalyticsEventFlow = OCMClassMock(FIRIAMDisplayCheckOnAnalyticEventsFlow.class); - self.clientCache.analycisEventDislayCheckFlow = mockAnalyticsEventFlow; + self.clientCache.analyticsEventDisplayCheckFlow = mockAnalyticsEventFlow; // start is triggered on the setMessageData: call OCMExpect([mockAnalyticsEventFlow start]);