From bfd52c7d0e06fd7d31923417fabded4cfe243d1f Mon Sep 17 00:00:00 2001 From: Peter Jenkins Date: Wed, 28 Nov 2018 16:46:55 -0500 Subject: [PATCH] Fix missing symbol for tvOS --- mParticle-Appboy/MPKitAppboy.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mParticle-Appboy/MPKitAppboy.m b/mParticle-Appboy/MPKitAppboy.m index 20b6b66..ed23351 100644 --- a/mParticle-Appboy/MPKitAppboy.m +++ b/mParticle-Appboy/MPKitAppboy.m @@ -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 {