Skip to content

Commit

Permalink
Fix compile on iOS 7 - Remove iOS 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
cstenac committed Nov 7, 2014
1 parent 0957697 commit cdef9b2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ios/src/WT1Tracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,7 @@ - (void)sendNow {
- (NSData*)makeRequest:(NSArray*)evts {
NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];

NSString* vid;
if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
vid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
} else {
NSLog(@"Using IOS5");
vid = [[UIDevice currentDevice] uniqueIdentifier];
}
NSString* vid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
[dict setObject:vid forKey:@"visitorId"];

if (self.sessionParams != nil) {
Expand Down

0 comments on commit cdef9b2

Please sign in to comment.