From 11cffd3d68bd5b4b81cca78330b857e2fa3e0269 Mon Sep 17 00:00:00 2001 From: Brandon Sneed Date: Tue, 11 Feb 2020 15:12:07 -0800 Subject: [PATCH] Address Issue #851; Expect dictionary as well for for integration enablement. --- Analytics/Classes/Integrations/SEGIntegrationsManager.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Analytics/Classes/Integrations/SEGIntegrationsManager.m b/Analytics/Classes/Integrations/SEGIntegrationsManager.m index 69de79335..2b0c8d713 100644 --- a/Analytics/Classes/Integrations/SEGIntegrationsManager.m +++ b/Analytics/Classes/Integrations/SEGIntegrationsManager.m @@ -425,8 +425,10 @@ + (BOOL)isIntegration:(NSString *)key enabledInOptions:(NSDictionary *)options if ([value isKindOfClass:[NSNumber class]]) { NSNumber *numberValue = (NSNumber *)value; return [numberValue boolValue]; + } if ([value isKindOfClass:[NSDictionary class]]) { + return YES; } else { - NSString *msg = [NSString stringWithFormat: @"Value for `%@` in integration options is supposed to be a boolean and it is not!" + NSString *msg = [NSString stringWithFormat: @"Value for `%@` in integration options is supposed to be a boolean or dictionary and it is not!" "This is likely due to a user-added value in `integrations` that overwrites a value received from the server", key]; SEGLog(msg); NSAssert(NO, msg);