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
0c91aee4
Commit
0c91aee4
authored
Aug 22, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
538254fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
video/app/libs/SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
+0
-0
MintsApplication.java
...p/src/main/java/com/mints/helivideo/MintsApplication.java
+3
-0
TalkingDataManager.kt
...in/java/com/mints/helivideo/manager/TalkingDataManager.kt
+43
-0
No files found.
video/app/libs/SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
0 → 100644
View file @
0c91aee4
File added
video/app/src/main/java/com/mints/helivideo/MintsApplication.java
View file @
0c91aee4
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
import
com.mints.helivideo.ad.TTAdManagerHolder
;
import
com.mints.helivideo.ad.TTAdManagerHolder
;
import
com.mints.helivideo.common.Constant
;
import
com.mints.helivideo.common.Constant
;
import
com.mints.helivideo.manager.TXCSDKService
;
import
com.mints.helivideo.manager.TXCSDKService
;
import
com.mints.helivideo.manager.TalkingDataManager
;
import
com.mints.helivideo.net.LoanService
;
import
com.mints.helivideo.net.LoanService
;
import
com.mints.helivideo.net.V6Service
;
import
com.mints.helivideo.net.V6Service
;
import
com.mints.helivideo.utils.AppPreferencesManager
;
import
com.mints.helivideo.utils.AppPreferencesManager
;
...
@@ -79,6 +80,8 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -79,6 +80,8 @@ public class MintsApplication extends MultiDexApplication {
TXCSDKService
.
init
(
this
);
TXCSDKService
.
init
(
this
);
TalkingDataManager
.
INSTANCE
.
init
(
this
);
// PR下载附件
// PR下载附件
initPRDownloader
();
initPRDownloader
();
...
...
video/app/src/main/java/com/mints/helivideo/manager/TalkingDataManager.kt
0 → 100644
View file @
0c91aee4
package
com.mints.helivideo.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