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
649e16f4
Commit
649e16f4
authored
Aug 22, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7ce9642e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
13 deletions
+23
-13
.gitignore
video/.gitignore
+4
-1
build.gradle
video/app/build.gradle
+4
-2
MintsApplication.java
...pp/src/main/java/com/duben/xixifree/MintsApplication.java
+3
-2
TalkingDataManager.kt
...ain/java/com/duben/xixifree/manager/TalkingDataManager.kt
+9
-8
gradle.properties
video/gradle.properties
+3
-0
No files found.
video/.gitignore
View file @
649e16f4
...
@@ -10,4 +10,7 @@
...
@@ -10,4 +10,7 @@
app/build
app/build
picture_library/build
picture_library/build
ucrop/build
ucrop/build
videocache/build
videocache/build
\ No newline at end of file
alipay/build
rxpay/build
wxpay/build
\ No newline at end of file
video/app/build.gradle
View file @
649e16f4
...
@@ -12,8 +12,8 @@ android {
...
@@ -12,8 +12,8 @@ android {
applicationId
"com.duben.xixifree"
applicationId
"com.duben.xixifree"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
3
versionCode
1
4
versionName
"1.1.
2
"
versionName
"1.1.
3
"
flavorDimensions
"default"
flavorDimensions
"default"
// dex突破65535的限制
// dex突破65535的限制
...
@@ -67,6 +67,7 @@ android {
...
@@ -67,6 +67,7 @@ android {
buildConfigField
"String"
,
"GROMORE_EXPRESS_CODE"
,
GROMORE_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_EXPRESS_CODE"
,
GROMORE_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
...
@@ -89,6 +90,7 @@ android {
...
@@ -89,6 +90,7 @@ android {
buildConfigField
"String"
,
"GROMORE_EXPRESS_CODE"
,
GROMORE_EXPRESS_CODE
buildConfigField
"String"
,
"GROMORE_EXPRESS_CODE"
,
GROMORE_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/src/main/java/com/duben/xixifree/MintsApplication.java
View file @
649e16f4
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
...
@@ -12,6 +12,7 @@ import com.downloader.PRDownloaderConfig;
import
com.duben.xixifree.ad.TTAdManagerHolder
;
import
com.duben.xixifree.ad.TTAdManagerHolder
;
import
com.duben.xixifree.common.Constant
;
import
com.duben.xixifree.common.Constant
;
import
com.duben.xixifree.manager.TXCSDKService
;
import
com.duben.xixifree.manager.TXCSDKService
;
import
com.duben.xixifree.manager.TalkingDataManager
;
import
com.duben.xixifree.net.LoanService
;
import
com.duben.xixifree.net.LoanService
;
import
com.duben.xixifree.net.V6Service
;
import
com.duben.xixifree.net.V6Service
;
import
com.duben.xixifree.utils.AppPreferencesManager
;
import
com.duben.xixifree.utils.AppPreferencesManager
;
...
@@ -70,12 +71,12 @@ public class MintsApplication extends MultiDexApplication {
...
@@ -70,12 +71,12 @@ public class MintsApplication extends MultiDexApplication {
if
(
AppPreferencesManager
.
INSTANCE
.
get
()
if
(
AppPreferencesManager
.
INSTANCE
.
get
()
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
return
;
.
getBoolean
(
Constant
.
LOAN_PERMISSION_FLAG
,
true
))
return
;
initMiitHelper
();
initMiitHelper
();
TTAdManagerHolder
.
init
(
this
);
TTAdManagerHolder
.
init
(
this
);
TalkingDataManager
.
INSTANCE
.
init
(
this
);
TXCSDKService
.
init
(
this
);
TXCSDKService
.
init
(
this
);
// 判断应用是否在前台
// 判断应用是否在前台
...
...
video/app/src/main/java/com/duben/xixifree/manager/TalkingDataManager.kt
View file @
649e16f4
...
@@ -2,8 +2,8 @@ package com.duben.xixifree.manager
...
@@ -2,8 +2,8 @@ package com.duben.xixifree.manager
import
android.app.Application
import
android.app.Application
import
android.content.Context
import
android.content.Context
import
com.
mints.helivideo
.BuildConfig
import
com.
duben.xixifree
.BuildConfig
import
com.
mints.helivideo
.utils.MateUtils
import
com.
duben.xixifree
.utils.MateUtils
import
com.tendcloud.tenddata.TCAgent
import
com.tendcloud.tenddata.TCAgent
/**
/**
...
@@ -11,10 +11,10 @@ import com.tendcloud.tenddata.TCAgent
...
@@ -11,10 +11,10 @@ import com.tendcloud.tenddata.TCAgent
*/
*/
object
TalkingDataManager
{
object
TalkingDataManager
{
private
const
val
APP_KEY
=
BuildConfig
.
RELEASE_TALKING_DATA_KEY
private
const
val
APP_KEY
=
BuildConfig
.
RELEASE_TALKING_DATA_KEY
fun
init
(
application
:
Application
)
{
fun
init
(
application
:
Application
)
{
try
{
try
{
//打开日志
//打开日志
TCAgent
.
LOG_ON
=
BuildConfig
.
LOG_DEBUG
TCAgent
.
LOG_ON
=
BuildConfig
.
LOG_DEBUG
...
@@ -22,8 +22,9 @@ object TalkingDataManager {
...
@@ -22,8 +22,9 @@ object TalkingDataManager {
* 动态获取渠道ID(类似友盟)
* 动态获取渠道ID(类似友盟)
* AppID说是xml文件里的密钥?
* AppID说是xml文件里的密钥?
*/
*/
TCAgent
.
init
(
application
,
APP_KEY
TCAgent
.
init
(
,
MateUtils
.
getAppMetaData
(
application
,
"CHANNEL_NAME"
))
application
,
APP_KEY
,
MateUtils
.
getAppMetaData
(
application
,
"CHANNEL_NAME"
)
)
/**
/**
* true-开启自动捕获错误
* true-开启自动捕获错误
*/
*/
...
@@ -33,11 +34,11 @@ object TalkingDataManager {
...
@@ -33,11 +34,11 @@ object TalkingDataManager {
}
}
}
}
fun
onResume
(
cxt
:
Context
,
name
:
String
)
{
fun
onResume
(
cxt
:
Context
,
name
:
String
)
{
TCAgent
.
onPageStart
(
cxt
,
name
)
TCAgent
.
onPageStart
(
cxt
,
name
)
}
}
fun
onPause
(
cxt
:
Context
,
name
:
String
)
{
fun
onPause
(
cxt
:
Context
,
name
:
String
)
{
TCAgent
.
onPageEnd
(
cxt
,
name
)
TCAgent
.
onPageEnd
(
cxt
,
name
)
}
}
}
}
\ No newline at end of file
video/gradle.properties
View file @
649e16f4
...
@@ -46,3 +46,6 @@ GROMORE_VIDEO_CODE="102428643"
...
@@ -46,3 +46,6 @@ GROMORE_VIDEO_CODE="102428643"
GROMORE_EXPRESS_CODE="102429208"
GROMORE_EXPRESS_CODE="102429208"
GROMORE_DRAW_CODE
=
"102428352"
GROMORE_DRAW_CODE
=
"102428352"
GROMORE_BANNER_CODE="102427871"
GROMORE_BANNER_CODE="102427871"
#TalkingData
RELEASE_TALKING_DATA_KEY
=
"15DEBB2C366A4911A0BA5326A071B579"
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