Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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
android
android_vedio
Commits
7ce9642e
Commit
7ce9642e
authored
Aug 22, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加talkingdata
parent
85b94657
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
video/app/libs/SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
+0
-0
TalkingDataManager.kt
...ain/java/com/duben/xixifree/manager/TalkingDataManager.kt
+43
-0
No files found.
video/app/libs/SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
0 → 100644
View file @
7ce9642e
File added
video/app/src/main/java/com/duben/xixifree/manager/TalkingDataManager.kt
0 → 100644
View file @
7ce9642e
package
com.duben.xixifree.manager
import
android.app.Application
import
android.content.Context
import
com.mints.helivideo.BuildConfig
import
com.mints.helivideo.utils.MateUtils
import
com.tendcloud.tenddata.TCAgent
/**
* TalkingData
*/
object
TalkingDataManager
{
private
const
val
APP_KEY
=
BuildConfig
.
RELEASE_TALKING_DATA_KEY
fun
init
(
application
:
Application
)
{
try
{
//打开日志
TCAgent
.
LOG_ON
=
BuildConfig
.
LOG_DEBUG
/**
* 动态获取渠道ID(类似友盟)
* AppID说是xml文件里的密钥?
*/
TCAgent
.
init
(
application
,
APP_KEY
,
MateUtils
.
getAppMetaData
(
application
,
"CHANNEL_NAME"
))
/**
* true-开启自动捕获错误
*/
TCAgent
.
setReportUncaughtExceptions
(
true
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
}
fun
onResume
(
cxt
:
Context
,
name
:
String
){
TCAgent
.
onPageStart
(
cxt
,
name
)
}
fun
onPause
(
cxt
:
Context
,
name
:
String
){
TCAgent
.
onPageEnd
(
cxt
,
name
)
}
}
\ No newline at end of file
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