Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
7afe7999
Commit
7afe7999
authored
Feb 22, 2019
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
辨别测试数据字段埋点
parent
c4026dea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Phobos.h
GMPhobos/Classes/Phobos.h
+12
-0
Phobos.m
GMPhobos/Classes/Phobos.m
+5
-0
No files found.
GMPhobos/Classes/Phobos.h
View file @
7afe7999
...
@@ -10,6 +10,13 @@
...
@@ -10,6 +10,13 @@
#import "PhobosPVProtocol.h"
#import "PhobosPVProtocol.h"
#import <CoreLocation/CLLocation.h>
#import <CoreLocation/CLLocation.h>
typedef
NS_ENUM
(
NSInteger
,
PhobosSigningType
)
{
PhobosSigningTypeUndefined
=
0
,
PhobosSigningTypeAppStore
,
PhobosSigningTypeRelease
,
PhobosSigningTypeDebug
};
@interface
Phobos
:
NSObject
@interface
Phobos
:
NSObject
/**
/**
...
@@ -77,6 +84,11 @@
...
@@ -77,6 +84,11 @@
*/
*/
@property
(
copy
,
nonatomic
)
NSString
*
serverAPI
;
@property
(
copy
,
nonatomic
)
NSString
*
serverAPI
;
/**
包的类型:APPSTORE、RELEASE、DEBUG
*/
@property
(
nonatomic
,
assign
)
PhobosSigningType
signingType
;
/**
/**
从主项目获取当前显示的controller
从主项目获取当前显示的controller
*/
*/
...
...
GMPhobos/Classes/Phobos.m
View file @
7afe7999
...
@@ -61,6 +61,7 @@ static NSString *sdkVersion = @"110";
...
@@ -61,6 +61,7 @@ static NSString *sdkVersion = @"110";
_userType
=
[[
NSMutableDictionary
alloc
]
initWithCapacity
:
0
];
_userType
=
[[
NSMutableDictionary
alloc
]
initWithCapacity
:
0
];
_appVersion
=
[
PhobosUtil
getAppVersion
];
_appVersion
=
[
PhobosUtil
getAppVersion
];
_APIArray
=
[
NSMutableArray
array
];
_APIArray
=
[
NSMutableArray
array
];
_signingType
=
PhobosSigningTypeUndefined
;
[
self
setupNotification
];
[
self
setupNotification
];
[
self
handleSessionStart
];
[
self
handleSessionStart
];
[
self
synchronizePhobosKey
];
[
self
synchronizePhobosKey
];
...
@@ -411,6 +412,10 @@ static NSString *sdkVersion = @"110";
...
@@ -411,6 +412,10 @@ static NSString *sdkVersion = @"110";
_userType
,
@"user_type"
,
_userType
,
@"user_type"
,
self
.
currentCityId
,
@"current_city_id"
,
self
.
currentCityId
,
@"current_city_id"
,
@
(
_serialId
++
),
@"serial_id"
,
nil
];
@
(
_serialId
++
),
@"serial_id"
,
nil
];
if
(
_signingType
==
PhobosSigningTypeDebug
||
_signingType
==
PhobosSigningTypeRelease
)
{
[
dict
setValue
:
@
(
0
)
forKey
:
@"is_release"
];
}
[
dict
setObject
:
eventId
forKey
:
@"type"
];
[
dict
setObject
:
eventId
forKey
:
@"type"
];
[
dict
setObject
:
appParams
forKey
:
@"app"
];
[
dict
setObject
:
appParams
forKey
:
@"app"
];
[
dict
setObject
:
sdkVersion
forKey
:
@"version"
];
[
dict
setObject
:
sdkVersion
forKey
:
@"version"
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment