From 7d36baf7f5b2cd691450b76dc1920f3744ec0a63 Mon Sep 17 00:00:00 2001 From: arnab Date: Sat, 18 Apr 2020 19:14:34 +0530 Subject: [PATCH] Changed userAgent from local string to unknown --- Rudder.podspec | 4 ++-- Rudder/Classes/RudderContext.m | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Rudder.podspec b/Rudder.podspec index 81a3d890..766fe8f4 100644 --- a/Rudder.podspec +++ b/Rudder.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Rudder' - s.version = "1.0.1-patch.2" + s.version = "1.0.1-patch.3" s.summary = "Privacy and Security focused Segment-alternative. iOS SDK" s.description = <<-DESC Rudder is a platform for collecting, storing and routing customer event data to dozens of tools. Rudder is open-source, can run in your cloud environment (AWS, GCP, Azure or even your data-centre) and provides a powerful transformation framework to process your event data on the fly. @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.license = { :type => "Apache", :file => "LICENSE" } s.author = { "Rudderstack" => "arnab@rudderlabs.com" } s.platform = :ios, "9.0" - s.source = { :git => "https://github.com/rudderlabs/rudder-sdk-ios.git", :commit => "3b31c4b39d28608ae92944155e9a9e3f5298819a" } + s.source = { :git => "https://github.com/rudderlabs/rudder-sdk-ios.git", :commit => "083749df1a06e591aae29ad698d7fad3aa907829" } s.ios.deployment_target = '8.0' diff --git a/Rudder/Classes/RudderContext.m b/Rudder/Classes/RudderContext.m index 5303c269..92df43b8 100644 --- a/Rudder/Classes/RudderContext.m +++ b/Rudder/Classes/RudderContext.m @@ -95,14 +95,6 @@ - (void)putDeviceToken:(NSString *)deviceToken { _device.token = deviceToken; } -- (NSString*) getLocalUAString { - return [[NSString alloc] initWithFormat:@"%@/%@ %@/%@ %@/%@", - _app.name, _app.version, - _device.model, _device.name, - _os.name, _os.version - ]; -} - - (NSDictionary *)dict { NSMutableDictionary *tempDict = [[NSMutableDictionary alloc] init]; [tempDict setObject:[_app dict] forKey:@"app"]; @@ -110,7 +102,7 @@ - (NSString*) getLocalUAString { [tempDict setObject:[_library dict] forKey:@"library"]; [tempDict setObject:[_os dict] forKey:@"os"]; [tempDict setObject:[_screen dict] forKey:@"screen"]; - [tempDict setObject:_userAgent ?: [self getLocalUAString] forKey:@"userAgent"]; + [tempDict setObject:_userAgent ?: @"unknown" forKey:@"userAgent"]; [tempDict setObject:_locale forKey:@"locale"]; [tempDict setObject:[_device dict] forKey:@"device"]; [tempDict setObject:[_network dict] forKey:@"network"];