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
10d3f1dc
Commit
10d3f1dc
authored
Nov 12, 2018
by
李震
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lz/gmPhobos' into 'master'
修改埋点库添加extra_param See merge request
!16
parents
3b0150ec
1b8a754c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
Podfile.lock
Example/Podfile.lock
+2
-2
Phobos.m
GMPhobos/Classes/Phobos.m
+2
-0
PhobosPVProtocol.h
GMPhobos/Classes/PhobosPVProtocol.h
+5
-0
UIResponder+PhobosPV.m
GMPhobos/Classes/UIResponder+PhobosPV.m
+10
-0
No files found.
Example/Podfile.lock
View file @
10d3f1dc
...
@@ -35,7 +35,7 @@ PODS:
...
@@ -35,7 +35,7 @@ PODS:
- GMKit/Protocol (0.8.4):
- GMKit/Protocol (0.8.4):
- Masonry (= 1.1.0)
- Masonry (= 1.1.0)
- SDWebImage (= 3.7.6)
- SDWebImage (= 3.7.6)
- GMPhobos (0.5.
6
):
- GMPhobos (0.5.
7
):
- GMCache (= 0.2.3)
- GMCache (= 0.2.3)
- GMKit
- GMKit
- Masonry (1.1.0)
- Masonry (1.1.0)
...
@@ -63,7 +63,7 @@ EXTERNAL SOURCES:
...
@@ -63,7 +63,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
SPEC CHECKSUMS:
GMCache: 09a3029c96fe130e3a21faef70b3d9d2ce92d639
GMCache: 09a3029c96fe130e3a21faef70b3d9d2ce92d639
GMKit: a30da06b84e5c4a357d427c70d1b5ec672a1f6a1
GMKit: a30da06b84e5c4a357d427c70d1b5ec672a1f6a1
GMPhobos:
cbb6997625f8eb6f0fcf7146c754f2a5564db070
GMPhobos:
1203fee705f0c103c7e730642462a96a22d9d48a
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
...
...
GMPhobos/Classes/Phobos.m
View file @
10d3f1dc
...
@@ -320,6 +320,8 @@ static NSString *sdkVersion = @"110";
...
@@ -320,6 +320,8 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
page
.
referer
?:
@""
forKey
:
@"referrer"
];
[
dict
setObject
:
page
.
referer
?:
@""
forKey
:
@"referrer"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"fake"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"fake"
];
[
dict
setObject
:
page
.
referrerId
?
:
@""
forKey
:
@"referrer_id"
];
[
dict
setObject
:
page
.
referrerId
?
:
@""
forKey
:
@"referrer_id"
];
[
dict
setObject
:
page
.
extraParam
?
:
@""
forKey
:
@"extra_param"
];
NSAssert
(
page
.
inTime
.
length
>
0
,
@"页面显示时间不应该为空!"
);
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
}
}
@catch
(
NSException
*
exception
)
{
@catch
(
NSException
*
exception
)
{
...
...
GMPhobos/Classes/PhobosPVProtocol.h
View file @
10d3f1dc
...
@@ -53,4 +53,9 @@
...
@@ -53,4 +53,9 @@
*/
*/
@property
(
nonatomic
,
assign
)
BOOL
needLogPV
;
@property
(
nonatomic
,
assign
)
BOOL
needLogPV
;
/**
需要额外添加参数
*/
@property
(
nonatomic
,
copy
,
nonnull
)
NSString
*
extraParam
;
@end
@end
GMPhobos/Classes/UIResponder+PhobosPV.m
View file @
10d3f1dc
...
@@ -124,4 +124,14 @@
...
@@ -124,4 +124,14 @@
-
(
void
)
setNeedLogPV
:
(
BOOL
)
needLogPV
{
-
(
void
)
setNeedLogPV
:
(
BOOL
)
needLogPV
{
objc_setAssociatedObject
(
self
,
@selector
(
needLogPV
),
@
(
needLogPV
),
OBJC_ASSOCIATION_RETAIN_NONATOMIC
);
objc_setAssociatedObject
(
self
,
@selector
(
needLogPV
),
@
(
needLogPV
),
OBJC_ASSOCIATION_RETAIN_NONATOMIC
);
}
}
-
(
void
)
setExtraParam
:
(
NSString
*
)
extraParam
{
objc_setAssociatedObject
(
self
,
@selector
(
extraParam
),
extraParam
,
OBJC_ASSOCIATION_COPY
);
}
-
(
NSString
*
)
extraParam
{
NSString
*
extraParam
=
objc_getAssociatedObject
(
self
,
@selector
(
extraParam
));
return
extraParam
==
nil
?
@""
:
extraParam
;
}
@end
@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