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
ff98aa59
Commit
ff98aa59
authored
Aug 11, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入talkingdata
parent
de46dbe1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
0 deletions
+53
-0
build.gradle
video/app/build.gradle
+2
-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
+2
-0
TalkingDataManager.kt
...in/java/com/mints/helivideo/manager/TalkingDataManager.kt
+43
-0
BaseAppCompatActivity.java
...in/java/com/mints/library/base/BaseAppCompatActivity.java
+3
-0
gradle.properties
video/gradle.properties
+3
-0
No files found.
video/app/build.gradle
View file @
ff98aa59
...
...
@@ -67,6 +67,7 @@ android {
buildConfigField
"String"
,
"GROMORE_DRAW_CODE"
,
GROMORE_DRAW_CODE
buildConfigField
"String"
,
"GROMORE_EXPRESS_CODE"
,
GROMORE_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_BANNER_CODE"
,
GROMORE_BANNER_CODE
buildConfigField
"String"
,
"RELEASE_TALKING_DATA_KEY"
,
RELEASE_TALKING_DATA_KEY
buildConfigField
"String"
,
"WEIXIN_APP_PAY_ID"
,
WEIXIN_APP_PAY_ID
//混淆
...
...
@@ -89,6 +90,7 @@ android {
buildConfigField
"String"
,
"GROMORE_DRAW_CODE"
,
GROMORE_DRAW_CODE
buildConfigField
"String"
,
"GROMORE_EXPRESS_CODE"
,
GROMORE_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_BANNER_CODE"
,
GROMORE_BANNER_CODE
buildConfigField
"String"
,
"RELEASE_TALKING_DATA_KEY"
,
RELEASE_TALKING_DATA_KEY
buildConfigField
"String"
,
"WEIXIN_APP_PAY_ID"
,
WEIXIN_APP_PAY_ID
//混淆
...
...
video/app/libs/SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
0 → 100644
View file @
ff98aa59
File added
video/app/src/main/java/com/mints/helivideo/MintsApplication.java
View file @
ff98aa59
...
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
import
com.mints.helivideo.ad.TTAdManagerHolder
;
import
com.mints.helivideo.common.Constant
;
import
com.mints.helivideo.manager.TXCSDKService
;
import
com.mints.helivideo.manager.TalkingDataManager
;
import
com.mints.helivideo.manager.UmengManager
;
import
com.mints.helivideo.net.LoanService
;
import
com.mints.helivideo.net.V6Service
;
...
...
@@ -86,6 +87,7 @@ public class MintsApplication extends MultiDexApplication {
TXCSDKService
.
init
(
this
);
TalkingDataManager
.
INSTANCE
.
init
(
this
);
// PR下载附件
initPRDownloader
();
...
...
video/app/src/main/java/com/mints/helivideo/manager/TalkingDataManager.kt
0 → 100644
View file @
ff98aa59
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
video/app/src/main/java/com/mints/library/base/BaseAppCompatActivity.java
View file @
ff98aa59
...
...
@@ -15,6 +15,7 @@ import android.view.Window;
import
android.view.WindowManager
;
import
com.google.android.material.snackbar.Snackbar
;
import
com.mints.helivideo.manager.TalkingDataManager
;
import
com.mints.helivideo.manager.UmengManager
;
import
com.mints.library.utils.CommonUtils
;
import
com.mints.helivideo.R
;
...
...
@@ -109,6 +110,7 @@ public abstract class BaseAppCompatActivity extends TransitionActivity {
super
.
onResume
();
UmengManager
.
INSTANCE
.
onResume
(
this
);
TalkingDataManager
.
INSTANCE
.
onResume
(
this
,
getClass
().
getSimpleName
());
}
@Override
...
...
@@ -116,6 +118,7 @@ public abstract class BaseAppCompatActivity extends TransitionActivity {
super
.
onPause
();
UmengManager
.
INSTANCE
.
onPause
(
this
);
TalkingDataManager
.
INSTANCE
.
onPause
(
this
,
getClass
().
getSimpleName
());
}
@Override
...
...
video/gradle.properties
View file @
ff98aa59
...
...
@@ -40,6 +40,9 @@ WEIXIN_APP_PAY_ID ="wx7e946f66585ca00a"
WEIXIN_APP_ID =wx7e946f66585ca00a
WEIXIN_APP_SECRET
=
6fe41783e736bea36504b271cea484f1
#TalkingData
RELEASE_TALKING_DATA_KEY
=
"E91735A7978140A8ABD1BB32D337CCAB"
#umeng
RELEASE_UMENG_KEY=64b8de13a1a164591b5133df
...
...
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