Skip to content

Commit

Permalink
Address Issue #851; Expect dictionary as well for for integration ena…
Browse files Browse the repository at this point in the history
…blement.
  • Loading branch information
Brandon Sneed committed Feb 11, 2020
1 parent 9ce3779 commit 11cffd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Analytics/Classes/Integrations/SEGIntegrationsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 11cffd3

Please sign in to comment.