Skip to content

Commit

Permalink
Fix lint for tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjenkins committed Aug 15, 2018
1 parent c5f9473 commit 7997af0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mParticle-Localytics/MPKitLocalytics.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 7997af0

Please sign in to comment.