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
48ca55e9
Commit
48ca55e9
authored
Mar 25, 2019
by
李震
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加全局埋点grey_type
parent
baa328e8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
5 deletions
+20
-5
project.pbxproj
Example/GMPhobos.xcodeproj/project.pbxproj
+2
-2
Podfile.lock
Example/Podfile.lock
+3
-3
Phobos.m
GMPhobos/Classes/Phobos.m
+1
-0
PhobosPVProtocol.h
GMPhobos/Classes/PhobosPVProtocol.h
+5
-0
UIResponder+PhobosPV.m
GMPhobos/Classes/UIResponder+PhobosPV.m
+9
-0
No files found.
Example/GMPhobos.xcodeproj/project.pbxproj
View file @
48ca55e9
...
...
@@ -353,7 +353,7 @@
files
=
(
);
inputPaths
=
(
"${
SRCROOT}/Pods
/Target Support Files/Pods-GMPhobos_Example/Pods-GMPhobos_Example-frameworks.sh"
,
"${
PODS_ROOT}
/Target Support Files/Pods-GMPhobos_Example/Pods-GMPhobos_Example-frameworks.sh"
,
"${BUILT_PRODUCTS_DIR}/GMCache/GMCache.framework"
,
"${BUILT_PRODUCTS_DIR}/GMKit/GMKit.framework"
,
"${BUILT_PRODUCTS_DIR}/GMPhobos/GMPhobos.framework"
,
...
...
@@ -372,7 +372,7 @@
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"\"${
SRCROOT}/Pods
/Target Support Files/Pods-GMPhobos_Example/Pods-GMPhobos_Example-frameworks.sh\"\n"
;
shellScript
=
"\"${
PODS_ROOT}
/Target Support Files/Pods-GMPhobos_Example/Pods-GMPhobos_Example-frameworks.sh\"\n"
;
showEnvVarsInLog
=
0
;
};
/* End PBXShellScriptBuildPhase section */
...
...
Example/Podfile.lock
View file @
48ca55e9
...
...
@@ -35,7 +35,7 @@ PODS:
- GMKit/Protocol (0.8.4):
- Masonry (= 1.1.0)
- SDWebImage (= 3.7.6)
- GMPhobos (
0.5
.7):
- GMPhobos (
1.0
.7):
- GMCache (= 0.2.3)
- GMKit
- Masonry (1.1.0)
...
...
@@ -63,11 +63,11 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
GMCache: 09a3029c96fe130e3a21faef70b3d9d2ce92d639
GMKit: a30da06b84e5c4a357d427c70d1b5ec672a1f6a1
GMPhobos:
1203fee705f0c103c7e730642462a96a22d9d48a
GMPhobos:
dd0026c837b0909013a9002b7f3e04f28786e24b
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
PODFILE CHECKSUM: ea0fac2144ac80baf8f21576cde49526c19991ad
COCOAPODS: 1.
5.3
COCOAPODS: 1.
6.0.beta.2
GMPhobos/Classes/Phobos.m
View file @
48ca55e9
...
...
@@ -354,6 +354,7 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
page
.
extraParam
?
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
page
.
referrerTabName
?
:
@""
forKey
:
@"referrer_tab_name"
];
[
dict
setObject
:
page
.
isPush
.
intValue
?
@
(
page
.
isPush
.
intValue
)
:
@
(
0
)
forKey
:
@"is_push"
];
[
dict
setObject
:
page
.
greyType
?:
@""
forKey
:
@"grey_type"
];
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
...
...
GMPhobos/Classes/PhobosPVProtocol.h
View file @
48ca55e9
...
...
@@ -75,4 +75,9 @@
*/
@property
(
nonatomic
,
copy
)
NSString
*
isPush
;
/**
灰度组, since 7.7.65
*/
@property
(
nonatomic
,
copy
)
NSString
*
greyType
;
@end
GMPhobos/Classes/UIResponder+PhobosPV.m
View file @
48ca55e9
...
...
@@ -190,4 +190,13 @@
return
isPush
==
nil
?
@""
:
isPush
;
}
-
(
void
)
setGreyType
:
(
NSString
*
)
greyType
{
objc_setAssociatedObject
(
self
,
@selector
(
greyType
),
greyType
,
OBJC_ASSOCIATION_COPY
);
}
-
(
NSString
*
)
greyType
{
NSString
*
greyType
=
objc_getAssociatedObject
(
self
,
@selector
(
greyType
));
return
greyType
==
nil
?
@""
:
greyType
;
}
@end
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