Authored by 刘金林

net & resourcefetechType & update to 1.0.4

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