Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
a074d0a3
Commit
a074d0a3
authored
Dec 06, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点方案
parent
d78ab1dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHBaseViewController.swift
galaxy/galaxy/Classes/Base/C/YHBaseViewController.swift
+24
-0
YHAnalyticsUnit.swift
galaxy/galaxy/Classes/Tools/Analytics/YHAnalyticsUnit.swift
+13
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
a074d0a3
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
04013E422CFADF6B001A8E40
/* YHShareAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
;
};
04013E422CFADF6B001A8E40
/* YHShareAlertView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
;
};
04013E442CFD7F66001A8E40
/* YHLiveStateViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
;
};
04013E442CFD7F66001A8E40
/* YHLiveStateViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
;
};
04013E462CFDA9AD001A8E40
/* YHLiveShopView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E452CFDA9AD001A8E40
/* YHLiveShopView.swift */
;
};
04013E462CFDA9AD001A8E40
/* YHLiveShopView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E452CFDA9AD001A8E40
/* YHLiveShopView.swift */
;
};
04013E482D02A4C3001A8E40
/* YHAnalyticsUnit.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04013E472D02A4C3001A8E40
/* YHAnalyticsUnit.swift */
;
};
040450CF2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
;
};
040450CF2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
;
};
0408C3632BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
;
};
0408C3632BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
;
};
0409BEEB2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
;
};
0409BEEB2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
;
};
...
@@ -1127,6 +1128,7 @@
...
@@ -1127,6 +1128,7 @@
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHShareAlertView.swift
;
sourceTree
=
"<group>"
;
};
04013E412CFADF6B001A8E40
/* YHShareAlertView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHShareAlertView.swift
;
sourceTree
=
"<group>"
;
};
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLiveStateViewController.swift
;
sourceTree
=
"<group>"
;
};
04013E432CFD7F66001A8E40
/* YHLiveStateViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLiveStateViewController.swift
;
sourceTree
=
"<group>"
;
};
04013E452CFDA9AD001A8E40
/* YHLiveShopView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLiveShopView.swift
;
sourceTree
=
"<group>"
;
};
04013E452CFDA9AD001A8E40
/* YHLiveShopView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLiveShopView.swift
;
sourceTree
=
"<group>"
;
};
04013E472D02A4C3001A8E40
/* YHAnalyticsUnit.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHAnalyticsUnit.swift
;
sourceTree
=
"<group>"
;
};
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentMultiLineTipsCell.swift
;
sourceTree
=
"<group>"
;
};
040450CE2CC8A0F400D1CFE5
/* YHResignDocumentMultiLineTipsCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHResignDocumentMultiLineTipsCell.swift
;
sourceTree
=
"<group>"
;
};
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerControlView.swift
;
sourceTree
=
"<group>"
;
};
0408C3622BEC7C6900DB1E25
/* YHVideoPlayerControlView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVideoPlayerControlView.swift
;
sourceTree
=
"<group>"
;
};
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleProfileListCell.swift
;
sourceTree
=
"<group>"
;
};
0409BEEA2C5B41D4003FCFD7
/* YHPrincipleProfileListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleProfileListCell.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -3733,6 +3735,7 @@
...
@@ -3733,6 +3735,7 @@
children
=
(
children
=
(
0468D42A2B55019900CFB916
/* YHAnalytics.swift */
,
0468D42A2B55019900CFB916
/* YHAnalytics.swift */
,
04EA37732BEA0A3400DBAF64
/* YHShareManager.swift */
,
04EA37732BEA0A3400DBAF64
/* YHShareManager.swift */
,
04013E472D02A4C3001A8E40
/* YHAnalyticsUnit.swift */
,
);
);
path
=
Analytics
;
path
=
Analytics
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -6858,6 +6861,7 @@
...
@@ -6858,6 +6861,7 @@
A517A4E52BB6C4BB000DEECD
/* YHDocumentFileItemView.swift in Sources */
,
A517A4E52BB6C4BB000DEECD
/* YHDocumentFileItemView.swift in Sources */
,
045EEEFE2B9F171A0022A143
/* YHFormItemInputTextCell.swift in Sources */
,
045EEEFE2B9F171A0022A143
/* YHFormItemInputTextCell.swift in Sources */
,
0419A0A42C49184300A5FCFA
/* YHInvitationNumberItemView.swift in Sources */
,
0419A0A42C49184300A5FCFA
/* YHInvitationNumberItemView.swift in Sources */
,
04013E482D02A4C3001A8E40
/* YHAnalyticsUnit.swift in Sources */
,
042B20E12CEC91CD00655093
/* YHMajorSearchViewController.swift in Sources */
,
042B20E12CEC91CD00655093
/* YHMajorSearchViewController.swift in Sources */
,
045EEEDD2B9F171A0022A143
/* YHCollegeNameCell.swift in Sources */
,
045EEEDD2B9F171A0022A143
/* YHCollegeNameCell.swift in Sources */
,
04F2432D2C94645000DF2C74
/* YHResignDocumentStatusCell.swift in Sources */
,
04F2432D2C94645000DF2C74
/* YHResignDocumentStatusCell.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Base/C/YHBaseViewController.swift
View file @
a074d0a3
...
@@ -29,6 +29,12 @@ class YHBaseViewController: UIViewController {
...
@@ -29,6 +29,12 @@ class YHBaseViewController: UIViewController {
IQKeyboardManager
.
shared
.
isEnabled
=
true
IQKeyboardManager
.
shared
.
isEnabled
=
true
#endif
#endif
// navigationController?.interactivePopGestureRecognizer?.delegate = self
// navigationController?.interactivePopGestureRecognizer?.delegate = self
let
key
=
String
(
describing
:
type
(
of
:
self
))
if
YHAnalyticsUnit
.
events
.
keys
.
contains
(
key
)
{
guard
let
event
=
YHAnalyticsUnit
.
events
[
key
]
else
{
return
}
YHAnalytics
.
track
(
event
)
}
}
}
override
var
prefersStatusBarHidden
:
Bool
{
override
var
prefersStatusBarHidden
:
Bool
{
...
@@ -45,6 +51,24 @@ class YHBaseViewController: UIViewController {
...
@@ -45,6 +51,24 @@ class YHBaseViewController: UIViewController {
#endif
#endif
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
let
key
=
String
(
describing
:
type
(
of
:
self
))
if
YHAnalyticsUnit
.
events
.
keys
.
contains
(
key
)
{
guard
let
event
=
YHAnalyticsUnit
.
events
[
key
]
else
{
return
}
YHAnalytics
.
timeStrat
(
event
)
}
}
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
super
.
viewWillDisappear
(
animated
)
let
key
=
String
(
describing
:
type
(
of
:
self
))
if
YHAnalyticsUnit
.
events
.
keys
.
contains
(
key
)
{
guard
let
event
=
YHAnalyticsUnit
.
events
[
key
]
else
{
return
}
YHAnalytics
.
timeEnd
(
event
)
}
}
override
func
viewDidAppear
(
_
animated
:
Bool
)
{
override
func
viewDidAppear
(
_
animated
:
Bool
)
{
super
.
viewDidAppear
(
animated
)
super
.
viewDidAppear
(
animated
)
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
true
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
true
...
...
galaxy/galaxy/Classes/Tools/Analytics/YHAnalyticsUnit.swift
0 → 100644
View file @
a074d0a3
//
// YHAnalyticsUnit.swift
// galaxy
//
// Created by EDY on 2024/12/6.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHAnalyticsUnit
:
NSObject
{
static
var
events
:
[
String
:
String
]
=
[
"YHHomeInformationViewController"
:
"APP_HomeTab_News"
]
}
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