Commit b566f80e authored by Matthijs van der Kroon's avatar Matthijs van der Kroon

Merge branch 'cleaning' into 'dev'

#45 remove ipaddress

See merge request !15
parents adc333c6 d888aee6
......@@ -31,7 +31,6 @@ typedef NS_ENUM(NSUInteger, ScrollDirection) {
NSMutableArray *savedPayloads;
NSString *sid;
NSString *did;
NSString *externalIPAddress;
}
@property (nonatomic,strong) NSString *trackingConnectionString;
......
......@@ -29,12 +29,6 @@
}
#pragma mark - CustomFunctions
-(NSString *)getExternalIP{
NSURL *url = [NSURL URLWithString:@"https://api.ipify.org/"];
NSString *ipAddress = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
return ipAddress;
}
-(BOOL)isNetworkAvailable{
CFNetDiagnosticRef dReference;
#pragma clang diagnostic push
......@@ -63,7 +57,6 @@
@"sdkId":@(2),
@"sdkVersion":@"0.0.2",
@"type":type.uppercaseString,
@"ipaddress":(externalIPAddress ?: @""),
@"eventObject":(eventObject ?: @{})
}];
......@@ -110,8 +103,6 @@
sid = [[NSUUID UUID] UUIDString];
did = UIDevice.currentDevice.identifierForVendor.UUIDString;
externalIPAddress = self.getExternalIP;
}
return self;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment