Authored by 刘金林

net & resourcefetechType & update to 1.0.4

@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 10
11 s.name = "YHEventReport" 11 s.name = "YHEventReport"
12 - s.version = "1.0.3" 12 + s.version = "1.0.4"
13 s.summary = "YHEventReport." 13 s.summary = "YHEventReport."
14 s.description = "无埋点SDK" 14 s.description = "无埋点SDK"
15 s.homepage = "http://git.yoho.cn/mobile/YH_EventReport" 15 s.homepage = "http://git.yoho.cn/mobile/YH_EventReport"
@@ -106,6 +106,7 @@ @@ -106,6 +106,7 @@
106 @"protocol": transMetrics.networkProtocolName ?:@"", 106 @"protocol": transMetrics.networkProtocolName ?:@"",
107 @"proxyConnection": transMetrics.proxyConnection ? @"1" : @"0", 107 @"proxyConnection": transMetrics.proxyConnection ? @"1" : @"0",
108 @"reusedConnection": transMetrics.reusedConnection ? @"1" : @"0", 108 @"reusedConnection": transMetrics.reusedConnection ? @"1" : @"0",
  109 + @"resourceFetchType": @(transMetrics.resourceFetchType),
109 @"fetch": transMetrics.totalTime.SToIntMS, 110 @"fetch": transMetrics.totalTime.SToIntMS,
110 @"dns": transMetrics.dnsTime.SToIntMS, 111 @"dns": transMetrics.dnsTime.SToIntMS,
111 @"connect": transMetrics.connectTime.SToIntMS, 112 @"connect": transMetrics.connectTime.SToIntMS,
@@ -60,6 +60,7 @@ static NSString *const kParamKeyType = @"type"; @@ -60,6 +60,7 @@ static NSString *const kParamKeyType = @"type";
60 _queue = yh_gcdSerialQueue(@"cn.yoho.buy.eventReport.serial"); 60 _queue = yh_gcdSerialQueue(@"cn.yoho.buy.eventReport.serial");
61 _intnetReachability = [YH_Reachability reachabilityForInternetConnection]; 61 _intnetReachability = [YH_Reachability reachabilityForInternetConnection];
62 [_intnetReachability startNotifier]; 62 [_intnetReachability startNotifier];
  63 + [_appInfo updateNetStatusWithReachability:_intnetReachability];
63 [self startTimer]; 64 [self startTimer];
64 [self yh_observeNotificationName:UIApplicationDidReceiveMemoryWarningNotification action:@selector(handleMemoryWarning)]; 65 [self yh_observeNotificationName:UIApplicationDidReceiveMemoryWarningNotification action:@selector(handleMemoryWarning)];
65 [self yh_observeNotificationName:UIApplicationDidEnterBackgroundNotification action:@selector(handleApplicationBackgrounding)]; 66 [self yh_observeNotificationName:UIApplicationDidEnterBackgroundNotification action:@selector(handleApplicationBackgrounding)];