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
4936111e
Commit
4936111e
authored
Aug 16, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
264335e1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
1 deletion
+52
-1
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
BaseAppCompatActivity.java
...in/java/com/duben/library/base/BaseAppCompatActivity.java
+3
-1
MintsApplication.java
...src/main/java/com/duben/xixiplaylet/MintsApplication.java
+4
-0
TalkingDataManager.kt
.../java/com/duben/xixiplaylet/manager/TalkingDataManager.kt
+43
-0
No files found.
video/app/build.gradle
View file @
4936111e
...
@@ -69,6 +69,7 @@ android {
...
@@ -69,6 +69,7 @@ android {
buildConfigField
"String"
,
"GROMORE_MAIN_EXPRESS_CODE"
,
GROMORE_MAIN_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_MAIN_EXPRESS_CODE"
,
GROMORE_MAIN_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_BANNER_CODE"
,
GROMORE_BANNER_CODE
buildConfigField
"String"
,
"GROMORE_BANNER_CODE"
,
GROMORE_BANNER_CODE
buildConfigField
"String"
,
"WEIXIN_APP_PAY_ID"
,
WEIXIN_APP_PAY_ID
buildConfigField
"String"
,
"WEIXIN_APP_PAY_ID"
,
WEIXIN_APP_PAY_ID
buildConfigField
"String"
,
"RELEASE_TALKING_DATA_KEY"
,
RELEASE_TALKING_DATA_KEY
//混淆
//混淆
minifyEnabled
false
minifyEnabled
false
...
@@ -92,6 +93,7 @@ android {
...
@@ -92,6 +93,7 @@ android {
buildConfigField
"String"
,
"GROMORE_MAIN_EXPRESS_CODE"
,
GROMORE_MAIN_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_MAIN_EXPRESS_CODE"
,
GROMORE_MAIN_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_BANNER_CODE"
,
GROMORE_BANNER_CODE
buildConfigField
"String"
,
"GROMORE_BANNER_CODE"
,
GROMORE_BANNER_CODE
buildConfigField
"String"
,
"WEIXIN_APP_PAY_ID"
,
WEIXIN_APP_PAY_ID
buildConfigField
"String"
,
"WEIXIN_APP_PAY_ID"
,
WEIXIN_APP_PAY_ID
buildConfigField
"String"
,
"RELEASE_TALKING_DATA_KEY"
,
RELEASE_TALKING_DATA_KEY
//混淆
//混淆
minifyEnabled
true
minifyEnabled
true
...
...
video/app/libs/SaaS_AppAnalytics_Android_SDK_V4.0.69.jar
0 → 100644
View file @
4936111e
File added
video/app/src/main/java/com/duben/library/base/BaseAppCompatActivity.java
View file @
4936111e
...
@@ -14,6 +14,7 @@ import android.view.MenuItem;
...
@@ -14,6 +14,7 @@ import android.view.MenuItem;
import
android.view.Window
;
import
android.view.Window
;
import
android.view.WindowManager
;
import
android.view.WindowManager
;
import
com.duben.xixiplaylet.manager.TalkingDataManager
;
import
com.google.android.material.snackbar.Snackbar
;
import
com.google.android.material.snackbar.Snackbar
;
import
com.duben.library.utils.CommonUtils
;
import
com.duben.library.utils.CommonUtils
;
import
com.duben.xixiplaylet.R
;
import
com.duben.xixiplaylet.R
;
...
@@ -106,12 +107,13 @@ public abstract class BaseAppCompatActivity extends TransitionActivity {
...
@@ -106,12 +107,13 @@ public abstract class BaseAppCompatActivity extends TransitionActivity {
@Override
@Override
protected
void
onResume
()
{
protected
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
TalkingDataManager
.
INSTANCE
.
onResume
(
this
,
getClass
().
getSimpleName
());
}
}
@Override
@Override
protected
void
onPause
()
{
protected
void
onPause
()
{
super
.
onPause
();
super
.
onPause
();
TalkingDataManager
.
INSTANCE
.
onPause
(
this
,
getClass
().
getSimpleName
());
}
}
@Override
@Override
...
...
video/app/src/main/java/com/duben/xixiplaylet/MintsApplication.java
View file @
4936111e
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
import
com.duben.xixiplaylet.ad.TTAdManagerHolder
;
import
com.duben.xixiplaylet.ad.TTAdManagerHolder
;
import
com.duben.xixiplaylet.common.Constant
;
import
com.duben.xixiplaylet.common.Constant
;
import
com.duben.xixiplaylet.manager.TXCSDKService
;
import
com.duben.xixiplaylet.manager.TXCSDKService
;
import
com.duben.xixiplaylet.manager.TalkingDataManager
;
import
com.duben.xixiplaylet.manager.UmengManager
;
import
com.duben.xixiplaylet.manager.UmengManager
;
import
com.duben.xixiplaylet.net.LoanService
;
import
com.duben.xixiplaylet.net.LoanService
;
import
com.duben.xixiplaylet.net.V6Service
;
import
com.duben.xixiplaylet.net.V6Service
;
...
@@ -77,12 +78,15 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -77,12 +78,15 @@ public class MintsApplication extends MultiDexApplication {
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
return
;
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
return
;
initMiitHelper
();
initMiitHelper
();
TTAdManagerHolder
.
init
(
this
);
TTAdManagerHolder
.
init
(
this
);
TXCSDKService
.
init
(
this
);
TXCSDKService
.
init
(
this
);
TalkingDataManager
.
INSTANCE
.
init
(
this
);
// 判断应用是否在前台
// 判断应用是否在前台
ForegroundOrBackground
.
init
(
this
);
ForegroundOrBackground
.
init
(
this
);
...
...
video/app/src/main/java/com/duben/xixiplaylet/manager/TalkingDataManager.kt
0 → 100644
View file @
4936111e
package
com.duben.xixiplaylet.manager
import
android.app.Application
import
android.content.Context
import
com.duben.xixiplaylet.BuildConfig
import
com.duben.xixiplaylet.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