From 7997af0b84037ad713c8380b90e7de954d12adc7 Mon Sep 17 00:00:00 2001 From: Peter Jenkins Date: Wed, 15 Aug 2018 13:42:12 -0400 Subject: [PATCH] Fix lint for tvOS --- mParticle-Localytics/MPKitLocalytics.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mParticle-Localytics/MPKitLocalytics.m b/mParticle-Localytics/MPKitLocalytics.m index 1f51aa0..7eba395 100644 --- a/mParticle-Localytics/MPKitLocalytics.m +++ b/mParticle-Localytics/MPKitLocalytics.m @@ -116,7 +116,12 @@ - (void)dealloc { } - (void)start { +#if TARGET_OS_IOS==1 [Localytics integrate:self.configuration[@"appKey"] withLocalyticsOptions:nil]; +#elif TARGET_OS_TV==1 + [Localytics integrate:self.configuration[@"appKey"]]; +#endif + if ([UIApplication sharedApplication].applicationState != UIApplicationStateBackground) { [Localytics openSession]; }