File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ - (BOOL)isMeasurementEnabled {
386
386
return NO ;
387
387
}
388
388
NSNumber *value = self.analyticsOptionsDictionary [kFIRIsMeasurementEnabled ];
389
- if (! value) {
389
+ if (value == nil ) {
390
390
return YES ; // Enable Measurement by default when the key is not in the dictionary.
391
391
}
392
392
return [value boolValue ];
@@ -397,15 +397,15 @@ - (BOOL)isAnalyticsCollectionEnabled {
397
397
return NO ;
398
398
}
399
399
NSNumber *value = self.analyticsOptionsDictionary [kFIRIsAnalyticsCollectionEnabled ];
400
- if (! value) {
400
+ if (value == nil ) {
401
401
return self.isMeasurementEnabled ; // Fall back to older plist flag.
402
402
}
403
403
return [value boolValue ];
404
404
}
405
405
406
406
- (BOOL )isAnalyticsCollectionDeactivated {
407
407
NSNumber *value = self.analyticsOptionsDictionary [kFIRIsAnalyticsCollectionDeactivated ];
408
- if (! value) {
408
+ if (value == nil ) {
409
409
return NO ; // Analytics Collection is not deactivated when the key is not in the dictionary.
410
410
}
411
411
return [value boolValue ];
You can’t perform that action at this time.
0 commit comments