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
0b4b8a74
Commit
0b4b8a74
authored
Feb 22, 2019
by
李震
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jql/phobos' into 'master'
辨别测试数据字段埋点 See merge request
!31
parents
c4026dea
1b5f5d05
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 @
0b4b8a74
...
...
@@ -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
*/
...
...
GMPhobos/Classes/Phobos.m
View file @
0b4b8a74
...
...
@@ -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"
];
...
...
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