Authored by 朱小军

增加获取device和status接口

Pod::Spec.new do |s|
s.name = "YH_Analytics"
s.version = "3.2.0"
s.version = "3.2.1"
s.summary = "Analytics Kit"
s.description = <<-DESC
Analytics Kit
... ...
... ... @@ -8,6 +8,8 @@
#import <Foundation/Foundation.h>
#import "YHAnalyItemData.h"
#import "YHDevice.h"
#import "YHStatus.h"
/*
用于组装数据
... ... @@ -41,10 +43,8 @@
- (void)setPS:(NSString *)ps;
- (NSString *)udid;
- (YHStatus *)getCurrentStatus;
- (NSString *)sid;
- (NSString *)ak;
- (YHDevice *)getCurrentDevice;
@end
... ...
... ... @@ -12,8 +12,6 @@
#import "YHAssemblyAssistant.h"
#import "YHEvent.h"
#import "YHError.h"
#import "YHDevice.h"
#import "YHStatus.h"
#import "YHPerformance.h"
#import "YHPatch.h"
... ... @@ -975,19 +973,14 @@ static dispatch_queue_t persisting_queue() {
#pragma mark - Getter
- (NSString *)udid
- (YHStatus *)getCurrentStatus
{
return self.device.udid?:@"";
return self.currentStatus;
}
- (NSString *)sid
- (YHDevice *)getCurrentDevice
{
return self.currentStatus.sid?:@"";
}
- (NSString *)ak
{
return self.device.ak?:@"";
return self.device;
}
@end
... ...