From 4edca8b642ba6a49981e9d1e6be544003faf80a4 Mon Sep 17 00:00:00 2001 From: Redouane Abou En Nassim Date: Wed, 2 Feb 2022 12:13:23 +0100 Subject: [PATCH] fix duplicate symbol for architecture x86_64 --- lib/ios/WEGWebEngageBridge.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ios/WEGWebEngageBridge.m b/lib/ios/WEGWebEngageBridge.m index f2e250b..6927fa9 100644 --- a/lib/ios/WEGWebEngageBridge.m +++ b/lib/ios/WEGWebEngageBridge.m @@ -13,7 +13,7 @@ NSString * const DATE_FORMAT = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"; int const DATE_FORMAT_LENGTH = 24; -bool hasListeners = NO; +bool hasListenersBool = NO; @implementation WEGWebEngageBridge @@ -252,7 +252,7 @@ - (void)notificationShown:(NSMutableDictionary *)inAppNotificationData { -(void)WEGHandleDeeplink:(NSString *)deeplink userData:(NSDictionary *)data{ RCTLogInfo(@"webengageBridge: push notification clicked with deeplink: %@", deeplink); NSDictionary *pushData = @{@"deeplink":deeplink, @"userData":data}; - if (hasListeners) { + if (hasListenersBool) { [self sendEventWithName:@"pushNotificationClicked" body:pushData]; } else { if (self.pendingEventsDict == nil) { @@ -267,7 +267,7 @@ -(void)WEGHandleDeeplink:(NSString *)deeplink userData:(NSDictionary *)data{ - (void)sendUniversalLinkLocation:(NSString *)location{ RCTLogInfo(@"webengageBridge: universal link clicked with location: %@", location); NSDictionary *data = @{@"location":location}; - if (hasListeners) { + if (hasListenersBool) { [self sendEventWithName:@"universalLinkClicked" body:data]; } else { if (self.pendingEventsDict == nil) { @@ -281,7 +281,7 @@ - (void)sendUniversalLinkLocation:(NSString *)location{ // Will be called when this module's first listener is added. - (void) startObserving { - hasListeners = YES; + hasListenersBool = YES; if (self.pendingEventsDict != nil) { for (id key in self.pendingEventsDict) { [self sendEventWithName:key body:self.pendingEventsDict[key]]; @@ -291,6 +291,6 @@ - (void) startObserving { } - (void)stopObserving { - hasListeners = NO; + hasListenersBool = NO; } @end