Commit 0b4b8a74 authored by 李震's avatar 李震

Merge branch 'jql/phobos' into 'master'

辨别测试数据字段埋点

See merge request !31
parents c4026dea 1b5f5d05
......@@ -10,6 +10,13 @@
#import "PhobosPVProtocol.h"
#import <CoreLocation/CLLocation.h>
typedef NS_ENUM (NSInteger, PhobosSigningType) {
PhobosSigningTypeUndefined = 0,
PhobosSigningTypeAppStore,
PhobosSigningTypeRelease,
PhobosSigningTypeDebug
};
@interface Phobos : NSObject
/**
......@@ -77,6 +84,11 @@
*/
@property (copy, nonatomic) NSString *serverAPI;
/**
包的类型:APPSTORE、RELEASE、DEBUG
*/
@property (nonatomic, assign) PhobosSigningType signingType;
/**
从主项目获取当前显示的controller
*/
......
......@@ -61,6 +61,7 @@ static NSString *sdkVersion = @"110";
_userType = [[NSMutableDictionary alloc] initWithCapacity:0];
_appVersion = [PhobosUtil getAppVersion];
_APIArray = [NSMutableArray array];
_signingType = PhobosSigningTypeUndefined;
[self setupNotification];
[self handleSessionStart];
[self synchronizePhobosKey];
......@@ -411,6 +412,10 @@ static NSString *sdkVersion = @"110";
_userType,@"user_type",
self.currentCityId,@"current_city_id",
@(_serialId++), @"serial_id",nil];
if (_signingType == PhobosSigningTypeDebug || _signingType == PhobosSigningTypeRelease) {
[dict setObject:@(0) forKey:@"is_release"];
}
[dict setObject:eventId forKey:@"type"];
[dict setObject:appParams forKey:@"app"];
[dict setObject:sdkVersion forKey:@"version"];
......
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