Skip to content

Commit

Permalink
minor imp
Browse files Browse the repository at this point in the history
  • Loading branch information
yarneo committed Jun 24, 2016
1 parent 3ea9087 commit c50e443
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Mixpanel/MixpanelPeople.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ - (NSDictionary *)collectAutomaticPeopleProperties
p[@"$ios_app_release"] = infoDictionary[@"CFBundleShortVersionString"];
}
__strong Mixpanel *strongMixpanel = self.mixpanel;
if ([strongMixpanel deviceModel]) {
p[@"$ios_device_model"] = [strongMixpanel deviceModel];
NSString *deviceModel = [strongMixpanel deviceModel];
if (deviceModel) {
p[@"$ios_device_model"] = deviceModel;
}
if ([strongMixpanel IFA]) {
p[@"$ios_ifa"] = [strongMixpanel IFA];
NSString *ifa = [strongMixpanel IFA];
if (ifa) {
p[@"$ios_ifa"] = ifa;
}
return [p copy];
}
Expand Down

0 comments on commit c50e443

Please sign in to comment.