Commit 48ca55e9 authored by 李震's avatar 李震

添加全局埋点grey_type

parent baa328e8
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
files = ( files = (
); );
inputPaths = ( 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}/GMCache/GMCache.framework",
"${BUILT_PRODUCTS_DIR}/GMKit/GMKit.framework", "${BUILT_PRODUCTS_DIR}/GMKit/GMKit.framework",
"${BUILT_PRODUCTS_DIR}/GMPhobos/GMPhobos.framework", "${BUILT_PRODUCTS_DIR}/GMPhobos/GMPhobos.framework",
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh; 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; showEnvVarsInLog = 0;
}; };
/* End PBXShellScriptBuildPhase section */ /* End PBXShellScriptBuildPhase section */
......
...@@ -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.7): - GMPhobos (1.0.7):
- GMCache (= 0.2.3) - GMCache (= 0.2.3)
- GMKit - GMKit
- Masonry (1.1.0) - Masonry (1.1.0)
...@@ -63,11 +63,11 @@ EXTERNAL SOURCES: ...@@ -63,11 +63,11 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
GMCache: 09a3029c96fe130e3a21faef70b3d9d2ce92d639 GMCache: 09a3029c96fe130e3a21faef70b3d9d2ce92d639
GMKit: a30da06b84e5c4a357d427c70d1b5ec672a1f6a1 GMKit: a30da06b84e5c4a357d427c70d1b5ec672a1f6a1
GMPhobos: 1203fee705f0c103c7e730642462a96a22d9d48a GMPhobos: dd0026c837b0909013a9002b7f3e04f28786e24b
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9 SDWebImage: c325cf02c30337336b95beff20a13df489ec0ec9
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
PODFILE CHECKSUM: ea0fac2144ac80baf8f21576cde49526c19991ad PODFILE CHECKSUM: ea0fac2144ac80baf8f21576cde49526c19991ad
COCOAPODS: 1.5.3 COCOAPODS: 1.6.0.beta.2
...@@ -354,6 +354,7 @@ static NSString *sdkVersion = @"110"; ...@@ -354,6 +354,7 @@ static NSString *sdkVersion = @"110";
[dict setObject:page.extraParam ? : @"" forKey:@"extra_param"]; [dict setObject:page.extraParam ? : @"" forKey:@"extra_param"];
[dict setObject:page.referrerTabName ? : @"" forKey:@"referrer_tab_name"]; [dict setObject:page.referrerTabName ? : @"" forKey:@"referrer_tab_name"];
[dict setObject:page.isPush.intValue ? @(page.isPush.intValue) : @(0) forKey:@"is_push"]; [dict setObject:page.isPush.intValue ? @(page.isPush.intValue) : @(0) forKey:@"is_push"];
[dict setObject:page.greyType ?: @"" forKey:@"grey_type"];
if (page.inTime.length > 0) { if (page.inTime.length > 0) {
// 页面显示时间为空时不记录页面pv事件 // 页面显示时间为空时不记录页面pv事件
[Phobos track:@"page_view" attributes:dict]; [Phobos track:@"page_view" attributes:dict];
......
...@@ -75,4 +75,9 @@ ...@@ -75,4 +75,9 @@
*/ */
@property (nonatomic, copy) NSString *isPush; @property (nonatomic, copy) NSString *isPush;
/**
灰度组, since 7.7.65
*/
@property (nonatomic, copy) NSString *greyType;
@end @end
...@@ -190,4 +190,13 @@ ...@@ -190,4 +190,13 @@
return isPush == nil ? @"" : isPush; 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 @end
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