Skip to content

Commit

Permalink
Fix missing symbol for tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjenkins committed Nov 28, 2018
1 parent da780cc commit bfd52c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mParticle-Appboy/MPKitAppboy.m
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,18 @@ - (MPKitExecStatus *)setUserAttribute:(NSString *)key value:(NSString *)value {
} else if ([key isEqualToString:mParticleUserAttributeCity]) {
appboyInstance.user.homeCity = value;
} else if ([key isEqualToString:mParticleUserAttributeGender]) {
#if TARGET_OS_IOS == 1
appboyInstance.user.gender = ABKUserGenderOther;
if ([value isEqualToString:mParticleGenderMale]) {
appboyInstance.user.gender = ABKUserGenderMale;
} else if ([value isEqualToString:mParticleGenderFemale]) {
appboyInstance.user.gender = ABKUserGenderFemale;
} else if ([value isEqualToString:mParticleGenderNotAvailable]) {
appboyInstance.user.gender = ABKUserGenderOther;
appboyInstance.user.gender = ABKUserGenderNotApplicable;
}
#elif TARGET_OS_TV == 1
appboyInstance.user.gender = [value isEqualToString:mParticleGenderMale] ? ABKUserGenderMale : ABKUserGenderFemale;
#endif
} else if ([key isEqualToString:mParticleUserAttributeMobileNumber] || [key isEqualToString:@"$MPUserMobile"]) {
appboyInstance.user.phone = value;
} else {
Expand Down

0 comments on commit bfd52c7

Please sign in to comment.